aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-02-27 00:27:27 +0000
committerGuy Harris <guy@alum.mit.edu>2001-02-27 00:27:27 +0000
commit30ab306064c35601b722bac0c8b13d01c6256556 (patch)
tree252e9c97d5ab5c2e4164ac340eb008be2abed3c9
parentc61ee2b4ad8c9f76bf6b646cf69129973237ec8e (diff)
RFC 3024 reverse tunneling support for the Mobile IP dissector, from
Peter Lei. svn path=/trunk/; revision=3078
-rw-r--r--AUTHORS4
-rw-r--r--doc/ethereal.pod.template1
-rw-r--r--packet-mip.c16
3 files changed, 20 insertions, 1 deletions
diff --git a/AUTHORS b/AUTHORS
index af6ca76e7e..9fd5ec1450 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -517,6 +517,10 @@ James E. Flemer <jflemer@acm.jhu.edu> {
Hidden Boolean fields set if the IP or ICMP checksums are bad
}
+Peter Lei <peterlei@cisco.com> {
+ RFC 3024 reverse tunneling support for the Mobile IP dissector
+}
+
Alain Magloire <alainm@rcsm.ece.mcgill.ca> 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<http://www.ethereal.com>.
Simharajan Srishylam <Simharajan.Srishylam@netapp.com>
Greg Kilfoyle <gregk@redback.com>
James E. Flemer <jflemer@acm.jhu.edu>
+ Peter Lei <peterlei@cisco.com>
Alain Magloire <alainm@rcsm.ece.mcgill.ca> 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 <sraab@cisco.com>
*
- * $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 <gerald@unicom.net>
@@ -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,