]> The Tcpdump Group git mirrors - tcpdump/commitdiff
135 appears to be the current IP protocol number for mobility headers;
authorguy <guy>
Mon, 24 Nov 2003 20:30:51 +0000 (20:30 +0000)
committerguy <guy>
Mon, 24 Nov 2003 20:30:51 +0000 (20:30 +0000)
support it, as well as 62 (which presumably was one that was used
before, even though it was already assigned to some protocol named
CFTP).

ipproto.h
print-ip6.c

index 8fc927862ce8cbeb06c8873b278ea495daff59b4..1efb8557571dfc419b7d9994125fffb6d7c4184b 100644 (file)
--- a/ipproto.h
+++ b/ipproto.h
@@ -30,7 +30,7 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
- * @(#) $Header: /tcpdump/master/tcpdump/ipproto.h,v 1.1 2003-06-07 11:57:52 guy Exp $ (LBL)
+ * @(#) $Header: /tcpdump/master/tcpdump/ipproto.h,v 1.2 2003-11-24 20:30:51 guy Exp $ (LBL)
  *
  * From:
  *     @(#)in.h        8.3 (Berkeley) 1/3/94
 #ifndef IPPROTO_DSTOPTS
 #define IPPROTO_DSTOPTS                60              /* IPv6 destination options */
 #endif
-#ifndef IPPROTO_MOBILITY
-#define IPPROTO_MOBILITY       62
+#ifndef IPPROTO_MOBILITY_OLD
+/*
+ * The current Protocol Numbers list says that the IP protocol number for
+ * mobility headers is 135; it cites draft-ietf-mobileip-ipv6-24, but
+ * that draft doesn't actually give a number.
+ *
+ * It appears that 62 used to be used, even though that's assigned to
+ * a protocol called CFTP; however, the only reference for CFTP is a
+ * Network Message from BBN back in 1982, so, for now, we support 62,
+ * aas well as 135, as a protocol number for mobility headers.
+ */
+#define IPPROTO_MOBILITY_OLD   62
 #endif
 #ifndef IPPROTO_ND
 #define        IPPROTO_ND              77              /* Sun net disk proto (temp.) */
 #ifndef IPPROTO_SCTP
 #define IPPROTO_SCTP           132
 #endif
+#ifndef IPPROTO_MOBILITY
+#define IPPROTO_MOBILITY       135
+#endif
index a49705c7cb26ed94bfe8217ba02595a45cc94188..87364717c5e9b309adeb1b0b9e9a6d7eb6607b2b 100644 (file)
@@ -21,7 +21,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-ip6.c,v 1.39 2003-11-19 06:31:28 guy Exp $";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-ip6.c,v 1.40 2003-11-24 20:30:52 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;