aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-03-13 23:48:18 +0000
committerMike Frysinger <vapier@gentoo.org>2006-03-13 23:48:18 +0000
commit2f135fc6bf5184bf782ec6cdd39c49a708670163 (patch)
tree2c2a87ced0124898a3fe51663556612731fe9ca4
parentef7ccac9da7963fa5bd8c77f93e4f4e416001f54 (diff)
downloadbusybox-w32-2f135fc6bf5184bf782ec6cdd39c49a708670163.tar.gz
busybox-w32-2f135fc6bf5184bf782ec6cdd39c49a708670163.tar.bz2
busybox-w32-2f135fc6bf5184bf782ec6cdd39c49a708670163.zip
update comments as to what caused the defines to change
-rw-r--r--networking/ping6.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/networking/ping6.c b/networking/ping6.c
index 47ab7c154..a892a7e40 100644
--- a/networking/ping6.c
+++ b/networking/ping6.c
@@ -236,15 +236,16 @@ static void sendping(int junk)
236 } 236 }
237} 237}
238 238
239/* libc defines have changed around on us, whee ! */ 239/* RFC3542 changed some definitions from RFC2292 for no good reason, whee !
240#ifndef ICMP6_MEMBERSHIP_QUERY 240 * the newer 3542 uses a MLD_ prefix where as 2292 uses ICMP6_ prefix */
241# define ICMP6_MEMBERSHIP_QUERY MLD_LISTENER_QUERY 241#ifndef MLD_LISTENER_QUERY
242# define MLD_LISTENER_QUERY ICMP6_MEMBERSHIP_QUERY
242#endif 243#endif
243#ifndef ICMP6_MEMBERSHIP_REPORT 244#ifndef MLD_LISTENER_REPORT
244# define ICMP6_MEMBERSHIP_REPORT MLD_LISTENER_REPORT 245# define MLD_LISTENER_REPORT ICMP6_MEMBERSHIP_REPORT
245#endif 246#endif
246#ifndef ICMP6_MEMBERSHIP_REDUCTION 247#ifndef MLD_LISTENER_REDUCTION
247# define ICMP6_MEMBERSHIP_REDUCTION MLD_LISTENER_REDUCTION 248# define MLD_LISTENER_REDUCTION ICMP6_MEMBERSHIP_REDUCTION
248#endif 249#endif
249static char *icmp6_type_name (int id) 250static char *icmp6_type_name (int id)
250{ 251{
@@ -255,9 +256,9 @@ static char *icmp6_type_name (int id)
255 case ICMP6_PARAM_PROB: return "Parameter Problem"; 256 case ICMP6_PARAM_PROB: return "Parameter Problem";
256 case ICMP6_ECHO_REPLY: return "Echo Reply"; 257 case ICMP6_ECHO_REPLY: return "Echo Reply";
257 case ICMP6_ECHO_REQUEST: return "Echo Request"; 258 case ICMP6_ECHO_REQUEST: return "Echo Request";
258 case ICMP6_MEMBERSHIP_QUERY: return "Membership Query"; 259 case MLD_LISTENER_QUERY: return "Listener Query";
259 case ICMP6_MEMBERSHIP_REPORT: return "Membership Report"; 260 case MLD_LISTENER_REPORT: return "Listener Report";
260 case ICMP6_MEMBERSHIP_REDUCTION: return "Membership Reduction"; 261 case MLD_LISTENER_REDUCTION: return "Listener Reduction";
261 default: return "unknown ICMP type"; 262 default: return "unknown ICMP type";
262 } 263 }
263} 264}