From 30ab306064c35601b722bac0c8b13d01c6256556 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Tue, 27 Feb 2001 00:27:27 +0000 Subject: RFC 3024 reverse tunneling support for the Mobile IP dissector, from Peter Lei. svn path=/trunk/; revision=3078 --- AUTHORS | 4 ++++ doc/ethereal.pod.template | 1 + packet-mip.c | 16 +++++++++++++++- 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index af6ca76e7e..9fd5ec1450 100644 --- a/AUTHORS +++ b/AUTHORS @@ -517,6 +517,10 @@ James E. Flemer { Hidden Boolean fields set if the IP or ICMP checksums are bad } +Peter Lei { + RFC 3024 reverse tunneling support for the Mobile IP dissector +} + Alain Magloire was kind enough to give his permission to use his version of snprintf.c. diff --git a/doc/ethereal.pod.template b/doc/ethereal.pod.template index e31b8db7a7..aeb42aa8f7 100644 --- a/doc/ethereal.pod.template +++ b/doc/ethereal.pod.template @@ -1081,6 +1081,7 @@ B. Simharajan Srishylam Greg Kilfoyle James E. Flemer + Peter Lei Alain Magloire was kind enough to give his permission to use his version of snprintf.c. diff --git a/packet-mip.c b/packet-mip.c index 70eaf54932..4edf154e81 100644 --- a/packet-mip.c +++ b/packet-mip.c @@ -2,7 +2,7 @@ * Routines for Mobile IP dissection * Copyright 2000, Stefan Raab * - * $Id: packet-mip.c,v 1.15 2001/02/14 20:03:05 guy Exp $ + * $Id: packet-mip.c,v 1.16 2001/02/27 00:27:26 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -57,6 +57,7 @@ static int hf_mip_d = -1; static int hf_mip_m = -1; static int hf_mip_g = -1; static int hf_mip_v = -1; +static int hf_mip_t = -1; static int hf_mip_code = -1; static int hf_mip_life = -1; static int hf_mip_homeaddr = -1; @@ -96,6 +97,10 @@ static const value_string mip_reply_codes[]= { {71, "Reg Deny (FA)- Poorly Formed Reply"}, {72, "Reg Deny (FA)- Requested Encapsulation Unavailable"}, {73, "Reg Deny (FA)- VJ Compression Unavailable"}, + {74, "Reg Deny (FA)- Requested Reverse Tunnel Unavailable"}, + {75, "Reg Deny (FA)- Reverse Tunnel is Mandatory and 'T' Bit Not Set"}, + {76, "Reg Deny (FA)- Mobile Node Too Distant"}, + {79, "Reg Deny (FA)- Delivery Style Not Supported"}, {80, "Reg Deny (FA)- Home Network Unreachable"}, {81, "Reg Deny (FA)- HA Host Unreachable"}, {82, "Reg Deny (FA)- HA Port Unreachable"}, @@ -113,6 +118,9 @@ static const value_string mip_reply_codes[]= { {134, "Reg Deny (HA)- Poorly Formed Request"}, {135, "Reg Deny (HA)- Too Many Simultaneous Bindings"}, {136, "Reg Deny (HA)- Unknown HA Address"}, + {137, "Reg Deny (HA)- Requested Reverse Tunnel Unavailable"}, + {138, "Reg Deny (HA)- Reverse Tunnel is Mandatory and 'T' Bit Not Set"}, + {139, "Reg Deny (HA)- Requested Encapsulation Unavailable"}, {0, NULL}, }; @@ -163,6 +171,7 @@ dissect_mip( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) proto_tree_add_boolean(mip_tree, hf_mip_m, tvb, 1, 1, code); proto_tree_add_boolean(mip_tree, hf_mip_g, tvb, 1, 1, code); proto_tree_add_boolean(mip_tree, hf_mip_v, tvb, 1, 1, code); + proto_tree_add_boolean(mip_tree, hf_mip_t, tvb, 1, 1, code); proto_tree_add_item(mip_tree, hf_mip_life, tvb, 2, 2, FALSE); proto_tree_add_item(mip_tree, hf_mip_homeaddr, tvb, 4, 4, FALSE); @@ -303,6 +312,11 @@ void proto_register_mip(void) FT_BOOLEAN, 8, NULL, 4, "Van Jacobson" } }, + { &hf_mip_t, + { "Reverse Tunneling", "mip.t", + FT_BOOLEAN, 8, NULL, 2, + "Reverse tunneling requested" } + }, { &hf_mip_code, { "Reply Code", "mip.code", FT_UINT8, BASE_DEC, VALS(mip_reply_codes), 0, -- cgit v1.2.3