]> The Tcpdump Group git mirrors - tcpdump/commitdiff
add GRE and RSVP to the supported IPv6 protos
authorhannes <hannes>
Sun, 3 Jul 2005 20:33:06 +0000 (20:33 +0000)
committerhannes <hannes>
Sun, 3 Jul 2005 20:33:06 +0000 (20:33 +0000)
print-ip6.c

index bbec2cb5f1bba9286d288c4479957c2d0a944293..a3bc90d5da0dcfa1462496dba020672319aff73b 100644 (file)
@@ -21,7 +21,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-ip6.c,v 1.48 2005-05-20 21:02:30 hannes Exp $";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-ip6.c,v 1.49 2005-07-03 20:33:06 hannes Exp $";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -192,6 +192,7 @@ ip6_print(register const u_char *bp, register u_int length)
                case IPPROTO_PIM:
                        pim_print(cp, len);
                        return;
+
                case IPPROTO_OSPF:
                        ospf6_print(cp, len);
                        return;
@@ -208,6 +209,14 @@ ip6_print(register const u_char *bp, register u_int length)
                         pgm_print(cp, len, (const u_char *)ip6);
                         return;
 
+               case IPPROTO_GRE:
+                       gre_print(cp, len);
+                       return;
+
+               case IPPROTO_RSVP:
+                       rsvp_print(cp, len);
+                       return;
+
                case IPPROTO_NONE:
                        (void)printf("no next header");
                        return;