aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaap Keuter <jaap.keuter@xs4all.nl>2009-05-19 07:34:33 +0000
committerJaap Keuter <jaap.keuter@xs4all.nl>2009-05-19 07:34:33 +0000
commit95dfe6a326e50ce008a2d105e90895422aedceea (patch)
treeec53516f855c2a95b8aa635a116b80445646c184
parent61d2248b3f86df1d84c19ab126348c6e23a9466f (diff)
Update IP protocol numbers according to current IANA registery.
svn path=/trunk/; revision=28408
-rw-r--r--epan/dissectors/packet-ipv6.c2
-rw-r--r--epan/ipproto.c14
-rw-r--r--epan/ipproto.h12
3 files changed, 16 insertions, 12 deletions
diff --git a/epan/dissectors/packet-ipv6.c b/epan/dissectors/packet-ipv6.c
index 3cb4bd94be..132f2a491c 100644
--- a/epan/dissectors/packet-ipv6.c
+++ b/epan/dissectors/packet-ipv6.c
@@ -240,6 +240,7 @@ again:
offset += advance;
goto again;
case IP_PROTO_SHIM6:
+ case IP_PROTO_SHIM6_OLD:
if (!BYTES_ARE_IN_FRAME(offset, len, 2)) {
ld->other++;
return;
@@ -1439,6 +1440,7 @@ again:
goto again;
case IP_PROTO_SHIM6:
+ case IP_PROTO_SHIM6_OLD:
shim6 = TRUE;
advance = dissect_shim6(tvb, offset, ipv6_tree, pinfo);
nxt = tvb_get_guint8(tvb, offset);
diff --git a/epan/ipproto.c b/epan/ipproto.c
index 9ddae2f462..aa49c03a71 100644
--- a/epan/ipproto.c
+++ b/epan/ipproto.c
@@ -1,5 +1,5 @@
/* ipproto.c
- * Routines for converting IPv4 protocol/v6 nxthdr field into string
+ * Routines for converting IPv4 protocol/IPv6 nxthdr field into string
*
* $Id$
*
@@ -79,9 +79,6 @@ static const value_string ipproto_val[] = {
{ IP_PROTO_BULK, "Bulk Data" },
{ IP_PROTO_MFE_NSP, "MFE NSP" },
{ IP_PROTO_MERIT, "Merit Internodal" },
-#if 0
- { IP_PROTO_SEP, "Sequential Exchange" },
-#endif
{ IP_PROTO_DCCP, "Datagram Congestion Control Protocol" },
{ IP_PROTO_3PC, "3rd Party Connect" },
{ IP_PROTO_IDPR, "Interdomain routing" },
@@ -97,7 +94,7 @@ static const value_string ipproto_val[] = {
{ IP_PROTO_IDRP, "IDRP" },
{ IP_PROTO_RSVP, "RSVP" },
{ IP_PROTO_GRE, "GRE" },
- { IP_PROTO_MHRP, "MHRP" },
+ { IP_PROTO_DSR, "Dynamic source routing" },
{ IP_PROTO_BNA, "BNA" },
{ IP_PROTO_ESP, "ESP" },
{ IP_PROTO_AH, "AH" },
@@ -109,7 +106,7 @@ static const value_string ipproto_val[] = {
{ IP_PROTO_ICMPV6, "ICMPv6" },
{ IP_PROTO_NONE, "IPv6 no next header" },
{ IP_PROTO_DSTOPTS, "IPv6 destination option" },
- { IP_PROTO_SHIM6, "SHIM6 header" },
+ { IP_PROTO_SHIM6_OLD, "SHIM6 header" },
{ IP_PROTO_MIPV6_OLD, "Mobile IPv6 (old)" },
{ IP_PROTO_SATEXPAK,"SATNET EXPAK" },
{ IP_PROTO_KRYPTOLAN, "Kryptolan" },
@@ -126,7 +123,7 @@ static const value_string ipproto_val[] = {
{ IP_PROTO_SUNND, "Sun ND Protocol" },
{ IP_PROTO_WBMON, "Wideband Mon" },
{ IP_PROTO_WBEXPAK, "Wideband Expak" },
- { IP_PROTO_EON, "EON" },
+ { IP_PROTO_ISOIP, "ISO Internet Protocol" },
{ IP_PROTO_VMTP, "VMTP" },
{ IP_PROTO_SVMTP, "Secure VMTP" },
{ IP_PROTO_VINES, "VINES" },
@@ -182,6 +179,9 @@ static const value_string ipproto_val[] = {
{ IP_PROTO_MIPV6, "Mobile IPv6" },
{ IP_PROTO_UDPLITE, "UDPlite" },
{ IP_PROTO_MPLS_IN_IP, "MPLS in IP" },
+ { IP_PROTO_MANET, "MANET" },
+ { IP_PROTO_HIP, "HIP" },
+ { IP_PROTO_SHIM6, "Shim6 header" },
{ IP_PROTO_AX4000, "AX/4000 Testframe" },
{ IP_PROTO_NCS_HEARTBEAT,"Novell NCS Heartbeat" },
{ 0, NULL },
diff --git a/epan/ipproto.h b/epan/ipproto.h
index 886b2aa8a2..50ac589e92 100644
--- a/epan/ipproto.h
+++ b/epan/ipproto.h
@@ -65,7 +65,6 @@
#define IP_PROTO_BULK 30 /* Bulk Data Transfer Protocol - RFC969 */
#define IP_PROTO_MFE_NSP 31 /* MFE Network Services Protocol */
#define IP_PROTO_MERIT 32 /* MERIT Internodal Protocol */
-/* #define IP_PROTO_SEP 33 Sequential Exchange Protocol */
#define IP_PROTO_DCCP 33 /* Datagram Congestion Control Protocol */
#define IP_PROTO_3PC 34 /* Third party connect protocol */
#define IP_PROTO_IDPR 35 /* Interdomain policy routing protocol */
@@ -81,7 +80,7 @@
#define IP_PROTO_IDRP 45 /* Inter-Domain Routing Protocol */
#define IP_PROTO_RSVP 46 /* Resource ReSerVation protocol */
#define IP_PROTO_GRE 47 /* General Routing Encapsulation */
-#define IP_PROTO_MHRP 48 /* Mobile Host Routing Protocol */
+#define IP_PROTO_DSR 48 /* Dynamic Source Routing Protocol */
#define IP_PROTO_BNA 49 /* BNA */
#define IP_PROTO_ESP 50 /* Encap Security Payload for IPv6 - RFC2406 */
#define IP_PROTO_AH 51 /* Authentication Header for IPv6 - RFC2402*/
@@ -97,7 +96,7 @@
#define IP_PROTO_DSTOPTS 60 /* IP6 destination options - RFC1883 */
/* 61 is reserved by IANA for any host internal protocol */
/* 61 is used by UCL's SHIM6 implementation as Next Header for SHIM6 */
-#define IP_PROTO_SHIM6 61 /* SHIM6 */
+#define IP_PROTO_SHIM6_OLD 61 /* SHIM6 */
/*
* The current Protocol Numbers list says that the IP protocol number for
@@ -127,14 +126,14 @@
#define IP_PROTO_SUNND 77 /* SUN ND Protocol - Temporary */
#define IP_PROTO_WBMON 78 /* Wideband Monitoring */
#define IP_PROTO_WBEXPAK 79 /* Wideband EXPAK */
-#define IP_PROTO_EON 80 /* ISO cnlp */
+#define IP_PROTO_ISOIP 80 /* ISO IP */
#define IP_PROTO_VMTP 81
#define IP_PROTO_SVMTP 82 /* Secure VMTP */
#define IP_PROTO_VINES 83 /* Vines over raw IP */
#define IP_PROTO_TTP 84
#define IP_PROTO_NSFNETIGP 85 /* NSFNET IGP */
#define IP_PROTO_DGP 86 /* Dissimilar Gateway Protocol */
-#define IP_PROTO_TCF 87
+#define IP_PROTO_TCF 87
#define IP_PROTO_EIGRP 88
#define IP_PROTO_OSPF 89 /* OSPF Interior Gateway Protocol - RFC1583 */
#define IP_PROTO_SPRITE 90 /* SPRITE RPC protocol */
@@ -185,6 +184,9 @@
#define IP_PROTO_MIPV6 135 /* Mobile IPv6 */
#define IP_PROTO_UDPLITE 136 /* Lightweight user datagram protocol - RFC3828 */
#define IP_PROTO_MPLS_IN_IP 137 /* MPLS in IP - RFC4023 */
+#define IP_PROTO_MANET 138 /* MANET Protocols */
+#define IP_PROTO_HIP 139 /* Host Identity Protocol */
+#define IP_PROTO_SHIM6 140 /* Shim6 Protocol */
#define IP_PROTO_AX4000 173 /* AX/4000 Testblock - non IANA */
#define IP_PROTO_NCS_HEARTBEAT 224 /* Novell NCS Heartbeat - http://support.novell.com/cgi-bin/search/searchtid.cgi?/10071158.htm */