]> The Tcpdump Group git mirrors - tcpdump/commitdiff
handle the case of not having any mld6 struct at all. From Juergen
authorassar <assar>
Mon, 26 Jun 2000 20:04:53 +0000 (20:04 +0000)
committerassar <assar>
Mon, 26 Jun 2000 20:04:53 +0000 (20:04 +0000)
Schoenwaelder <[email protected]>

print-icmp6.c

index 972e8e728bb10b7614ad76c59338d841dd2a74c8..b158e8c75577afe7a27e55f529467533f58fb668 100644 (file)
@@ -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