diff options
author | assar <assar> | 2000-06-26 20:04:53 +0000 |
---|---|---|
committer | assar <assar> | 2000-06-26 20:04:53 +0000 |
commit | 2b1907d4d8025da2757c9249519605c8f7c63acd (patch) | |
tree | 4f8729a7f872245293dcadb943749f661268db5c /print-icmp6.c | |
parent | 2e065e6bcde70f8c54a19d9ff7e4710f60f296af (diff) | |
download | tcpdump-2b1907d4d8025da2757c9249519605c8f7c63acd.tar.gz |
handle the case of not having any mld6 struct at all. From Juergen
Schoenwaelder <schoenw@ibr.cs.tu-bs.de>
Diffstat (limited to 'print-icmp6.c')
-rw-r--r-- | print-icmp6.c | 8 |
1 files changed, 3 insertions, 5 deletions
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 |