diff options
author | Ed Warnicke <hagbard@physics.rutgers.edu> | 2001-11-25 22:51:14 +0000 |
---|---|---|
committer | Ed Warnicke <hagbard@physics.rutgers.edu> | 2001-11-25 22:51:14 +0000 |
commit | 34dbc86e65d64bf747d948051ba8d4d3e967d6d1 (patch) | |
tree | 20244c5cfd8f43e50e4dccd78b8a9ce386894d49 /packet-gre.c | |
parent | a810a01338337a3802ff19ef9d952999181458c3 (diff) | |
download | wireshark-34dbc86e65d64bf747d948051ba8d4d3e967d6d1.tar.gz wireshark-34dbc86e65d64bf747d948051ba8d4d3e967d6d1.tar.bz2 wireshark-34dbc86e65d64bf747d948051ba8d4d3e967d6d1.zip |
Moved from using dissect_data to using call_dissector()
svn path=/trunk/; revision=4264
Diffstat (limited to 'packet-gre.c')
-rw-r--r-- | packet-gre.c | 6 |
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"); } |