update comments as to what caused the defines to change
This commit is contained in:
parent
ef7ccac9da
commit
2f135fc6bf
@ -236,15 +236,16 @@ static void sendping(int junk)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* libc defines have changed around on us, whee ! */
|
/* RFC3542 changed some definitions from RFC2292 for no good reason, whee !
|
||||||
#ifndef ICMP6_MEMBERSHIP_QUERY
|
* the newer 3542 uses a MLD_ prefix where as 2292 uses ICMP6_ prefix */
|
||||||
# define ICMP6_MEMBERSHIP_QUERY MLD_LISTENER_QUERY
|
#ifndef MLD_LISTENER_QUERY
|
||||||
|
# define MLD_LISTENER_QUERY ICMP6_MEMBERSHIP_QUERY
|
||||||
#endif
|
#endif
|
||||||
#ifndef ICMP6_MEMBERSHIP_REPORT
|
#ifndef MLD_LISTENER_REPORT
|
||||||
# define ICMP6_MEMBERSHIP_REPORT MLD_LISTENER_REPORT
|
# define MLD_LISTENER_REPORT ICMP6_MEMBERSHIP_REPORT
|
||||||
#endif
|
#endif
|
||||||
#ifndef ICMP6_MEMBERSHIP_REDUCTION
|
#ifndef MLD_LISTENER_REDUCTION
|
||||||
# define ICMP6_MEMBERSHIP_REDUCTION MLD_LISTENER_REDUCTION
|
# define MLD_LISTENER_REDUCTION ICMP6_MEMBERSHIP_REDUCTION
|
||||||
#endif
|
#endif
|
||||||
static char *icmp6_type_name (int id)
|
static char *icmp6_type_name (int id)
|
||||||
{
|
{
|
||||||
@ -255,9 +256,9 @@ static char *icmp6_type_name (int id)
|
|||||||
case ICMP6_PARAM_PROB: return "Parameter Problem";
|
case ICMP6_PARAM_PROB: return "Parameter Problem";
|
||||||
case ICMP6_ECHO_REPLY: return "Echo Reply";
|
case ICMP6_ECHO_REPLY: return "Echo Reply";
|
||||||
case ICMP6_ECHO_REQUEST: return "Echo Request";
|
case ICMP6_ECHO_REQUEST: return "Echo Request";
|
||||||
case ICMP6_MEMBERSHIP_QUERY: return "Membership Query";
|
case MLD_LISTENER_QUERY: return "Listener Query";
|
||||||
case ICMP6_MEMBERSHIP_REPORT: return "Membership Report";
|
case MLD_LISTENER_REPORT: return "Listener Report";
|
||||||
case ICMP6_MEMBERSHIP_REDUCTION: return "Membership Reduction";
|
case MLD_LISTENER_REDUCTION: return "Listener Reduction";
|
||||||
default: return "unknown ICMP type";
|
default: return "unknown ICMP type";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user