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

index fd19e59d3914a29e4f1166d0dc00bef700395824..47f074a683ea4140f1fd04c3b458f40f5cf560cf 100644 (file)
@@ -21,7 +21,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-ip6.c,v 1.47.2.1 2005-05-20 21:15:47 hannes Exp $";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-ip6.c,v 1.47.2.2 2005-07-03 20:36:33 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;