summaryrefslogtreecommitdiff
path: root/ipproto.h
diff options
context:
space:
mode:
authorguy <guy>2003-11-24 20:30:51 +0000
committerguy <guy>2003-11-24 20:30:51 +0000
commit4bf6f976ab87405ccf6847b8bf3d4bf1057267b1 (patch)
tree4ecac6849a5430d26e41b73fbdb80d38e641fa8c /ipproto.h
parent58e719c622db7374892c46aa61507374fd979e39 (diff)
downloadtcpdump-4bf6f976ab87405ccf6847b8bf3d4bf1057267b1.tar.gz
135 appears to be the current IP protocol number for mobility headers;
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).
Diffstat (limited to 'ipproto.h')
-rw-r--r--ipproto.h19
1 files changed, 16 insertions, 3 deletions
diff --git a/ipproto.h b/ipproto.h
index 8fc92786..1efb8557 100644
--- 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
@@ -97,8 +97,18 @@
#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.) */
@@ -121,3 +131,6 @@
#ifndef IPPROTO_SCTP
#define IPPROTO_SCTP 132
#endif
+#ifndef IPPROTO_MOBILITY
+#define IPPROTO_MOBILITY 135
+#endif