]> The Tcpdump Group git mirrors - tcpdump/commitdiff
add fallback for IPV6_RTHDR_TYPE_0, noticed by Juergen Schoenwaelder
authorassar <assar>
Fri, 16 Jun 2000 19:41:31 +0000 (19:41 +0000)
committerassar <assar>
Fri, 16 Jun 2000 19:41:31 +0000 (19:41 +0000)
<[email protected]>

print-rt6.c

index ecf58f1a2fb2f55f48454e54b61aae81a2bc853a..5fce586c4299aaa8f031d0e4461a272cb2ee3153 100644 (file)
@@ -21,7 +21,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-rt6.c,v 1.8 2000-05-10 05:13:20 itojun Exp $";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-rt6.c,v 1.9 2000-06-16 19:41:31 assar Exp $";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -83,6 +83,9 @@ rt6_print(register const u_char *bp, register const u_char *bp2)
        printf(", segleft=%d", dp->ip6r_segleft);
 
        switch (dp->ip6r_type) {
+#ifndef IPV6_RTHDR_TYPE_0
+#define IPV6_RTHDR_TYPE_0 0
+#endif
        case IPV6_RTHDR_TYPE_0:
                dp0 = (struct ip6_rthdr0 *)dp;