]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ip6.c
135 appears to be the current IP protocol number for mobility headers;
[tcpdump] / print-ip6.c
index 23658533d588f9b0a48b971478b58e2125f94082..3b72a77f2261fb774eccd33dcdb4e646c813db05 100644 (file)
@@ -21,7 +21,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-ip6.c,v 1.32.2.7 2003-11-19 06:31:10 guy Exp $";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-ip6.c,v 1.32.2.8 2003-11-24 20:31:22 guy Exp $";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -111,10 +111,17 @@ ip6_print(register const u_char *bp, register u_int length)
                        fragmented = 1;
                        break;
 
+               case IPPROTO_MOBILITY_OLD:
                case IPPROTO_MOBILITY:
                        /*
-                        * XXX - we don't use "advance"; is this
-                        * header always a final header?
+                        * XXX - we don't use "advance"; the current
+                        * "Mobility Support in IPv6" draft
+                        * (draft-ietf-mobileip-ipv6-24) says that
+                        * the next header field in a mobility header
+                        * should be IPPROTO_NONE, but speaks of
+                        * the possiblity of a future extension in
+                        * which payload can be piggybacked atop a
+                        * mobility header.
                         */
                        advance = mobility_print(cp, (const u_char *)ip6);
                        nh = *cp;