]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ip6.c
Fix some "unsigned int" vs. "size_t" issues (they're not necessarily the
[tcpdump] / print-ip6.c
index bbec2cb5f1bba9286d288c4479957c2d0a944293..f43d61aab2e82e203abd5c09ff646c514fa723e1 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.50 2005-09-20 06:01:23 guy Exp $";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -116,7 +116,7 @@ ip6_print(register const u_char *bp, register u_int length)
 
                if (cp == (const u_char *)(ip6 + 1) &&
                    nh != IPPROTO_TCP && nh != IPPROTO_UDP &&
-                   nh != IPPROTO_SCTP) {
+                   nh != IPPROTO_DCCP && nh != IPPROTO_SCTP) {
                        (void)printf("%s > %s: ", ip6addr_string(&ip6->ip6_src),
                                     ip6addr_string(&ip6->ip6_dst));
                }
@@ -160,6 +160,9 @@ ip6_print(register const u_char *bp, register u_int length)
                case IPPROTO_SCTP:
                        sctp_print(cp, (const u_char *)ip6, len);
                        return;
+               case IPPROTO_DCCP:
+                       dccp_print(cp, (const u_char *)ip6, len);
+                       return;
                case IPPROTO_TCP:
                        tcp_print(cp, len, (const u_char *)ip6, fragmented);
                        return;
@@ -192,6 +195,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 +212,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;