From: assar Date: Mon, 26 Jun 2000 20:04:53 +0000 (+0000) Subject: handle the case of not having any mld6 struct at all. From Juergen X-Git-Tag: tcpdump-3.5.1~247 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/2b1907d4d8025da2757c9249519605c8f7c63acd?ds=sidebyside handle the case of not having any mld6 struct at all. From Juergen Schoenwaelder --- diff --git a/print-icmp6.c b/print-icmp6.c index 972e8e72..b158e8c7 100644 --- a/print-icmp6.c +++ b/print-icmp6.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-icmp6.c,v 1.16 2000-06-03 16:40:35 itojun Exp $"; + "@(#) $Header: /tcpdump/master/tcpdump/print-icmp6.c,v 1.17 2000-06-26 20:04:53 assar Exp $"; #endif #ifdef HAVE_CONFIG_H @@ -241,6 +241,7 @@ icmp6_print(register const u_char *bp, register const u_char *bp2) case ICMP6_ECHO_REPLY: printf("icmp6: echo reply"); break; +#if defined(HAVE_STRUCT_MLD6_HDR) || defined(HAVE_STRUCT_ICMP6_MLD) case ICMP6_MEMBERSHIP_QUERY: printf("icmp6: multicast listener query "); mld6_print((const u_char *)dp); @@ -253,6 +254,7 @@ icmp6_print(register const u_char *bp, register const u_char *bp2) printf("icmp6: multicast listener done "); mld6_print((const u_char *)dp); break; +#endif case ND_ROUTER_SOLICIT: printf("icmp6: router solicitation "); if (vflag) { @@ -571,10 +573,6 @@ mld6_print(register const u_char *bp) printf("addr: %s", ip6addr_string(&mp->icmp6m_group)); } -#else - -#error unknown mld6 struct - #endif #ifdef HAVE_STRUCT_ICMP6_NODEINFO