diff options
author | Ed Warnicke <hagbard@physics.rutgers.edu> | 2001-11-25 22:19:25 +0000 |
---|---|---|
committer | Ed Warnicke <hagbard@physics.rutgers.edu> | 2001-11-25 22:19:25 +0000 |
commit | a810a01338337a3802ff19ef9d952999181458c3 (patch) | |
tree | 1f481119d56632ad3f9030bd985f5e9f8bc53ea9 /packet-quake3.c | |
parent | 3054b1127a250514b15ac214bbe9e32a125ea7cf (diff) |
Switched from calling dissect_data to using call_dissector
svn path=/trunk/; revision=4263
Diffstat (limited to 'packet-quake3.c')
-rw-r--r-- | packet-quake3.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/packet-quake3.c b/packet-quake3.c index e3796827d6..fea1d62a68 100644 --- a/packet-quake3.c +++ b/packet-quake3.c @@ -3,7 +3,7 @@ * * Uwe Girlich <uwe@planetquake.com> * - * $Id: packet-quake3.c,v 1.4 2001/10/13 07:43:25 guy Exp $ + * $Id: packet-quake3.c,v 1.5 2001/11/25 22:19:24 hagbard Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -77,6 +77,7 @@ static gint ett_quake3_game_seq2 = -1; static gint ett_quake3_game_clc = -1; static gint ett_quake3_game_svc = -1; +static dissector_handle_t data_handle; #define QUAKE3_SERVER_PORT 27960 #define QUAKE3_MASTER_PORT 27950 @@ -353,7 +354,7 @@ dissect_quake3_client_commands(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { /* this shouldn't be too difficult */ - dissect_data(tvb, 0, pinfo, tree); + call_dissector(data_handle,tvb, pinfo, tree); } @@ -363,7 +364,7 @@ dissect_quake3_server_commands(tvbuff_t *tvb, packet_info *pinfo, { /* It is totally forbidden to decode this any further, I wont do it. */ - dissect_data(tvb, 0, pinfo, tree); + call_dissector(data_handle,tvb, pinfo, tree); } @@ -580,6 +581,7 @@ proto_reg_handoff_quake3(void) for (i=0;i<4;i++) dissector_add("udp.port", gbl_quake3_master_port + i, dissect_quake3, proto_quake3); + data_handle = find_dissector("data"); } |