aboutsummaryrefslogtreecommitdiffstats
path: root/packet-gre.c
diff options
context:
space:
mode:
authorhagbard <hagbard@f5534014-38df-0310-8fa8-9805f1628bb7>2001-11-25 22:51:14 +0000
committerhagbard <hagbard@f5534014-38df-0310-8fa8-9805f1628bb7>2001-11-25 22:51:14 +0000
commit6833b53c6548df864424d572874230c2a0edb76d (patch)
tree20244c5cfd8f43e50e4dccd78b8a9ce386894d49 /packet-gre.c
parentee3072b1292e6b00cf80c5c496a409ff07ae33d4 (diff)
Moved from using dissect_data to using call_dissector()
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4264 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-gre.c')
-rw-r--r--packet-gre.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/packet-gre.c b/packet-gre.c
index 584a195491..8d3f5f3abf 100644
--- a/packet-gre.c
+++ b/packet-gre.c
@@ -2,7 +2,7 @@
* Routines for the Generic Routing Encapsulation (GRE) protocol
* Brad Robel-Forrest <brad.robel-forrest@watchguard.com>
*
- * $Id: packet-gre.c,v 1.45 2001/10/23 19:02:59 guy Exp $
+ * $Id: packet-gre.c,v 1.46 2001/11/25 22:51:13 hagbard Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -58,6 +58,7 @@ static gint ett_gre_flags = -1;
static gint ett_gre_wccp2_redirect_header = -1;
static dissector_table_t gre_dissector_table;
+static dissector_handle_t data_handle;
/* bit positions for flags in header */
#define GH_B_C 0x8000
@@ -274,7 +275,7 @@ dissect_gre(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
}
next_tvb = tvb_new_subset(tvb, offset, -1, -1);
if (!dissector_try_port(gre_dissector_table, type, next_tvb, pinfo, tree))
- dissect_data(next_tvb, 0, pinfo, gre_tree);
+ call_dissector(data_handle,next_tvb, pinfo, gre_tree);
}
static void
@@ -381,4 +382,5 @@ void
proto_reg_handoff_gre(void)
{
dissector_add("ip.proto", IP_PROTO_GRE, dissect_gre, proto_gre);
+ data_handle = find_dissector("data");
}