diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-12-03 04:00:26 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-12-03 04:00:26 +0000 |
commit | b6afcc102f8ba453034eda35648ff746ed329f4a (patch) | |
tree | 6303e298a7b136a1e1da306950398c99e3e71432 /packet-quake.c | |
parent | cc6c7a4721cbfeee3556dacd8f019d9cc78ef293 (diff) |
Make "dissector_add()", "dissector_delete()", and "dissector_change()"
take a dissector handle as an argument, rather than a pointer to a
dissector function and a protocol ID. Associate dissector handles with
dissector table entries.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4308 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-quake.c')
-rw-r--r-- | packet-quake.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/packet-quake.c b/packet-quake.c index 172aa2ebe9..6ca9d82fec 100644 --- a/packet-quake.c +++ b/packet-quake.c @@ -4,7 +4,7 @@ * Uwe Girlich <uwe@planetquake.com> * http://www.idsoftware.com/q1source/q1source.zip * - * $Id: packet-quake.c,v 1.21 2001/11/27 07:13:26 guy Exp $ + * $Id: packet-quake.c,v 1.22 2001/12/03 03:59:38 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -599,7 +599,7 @@ proto_reg_handoff_quake(void) static int ServerPort=0; if (Initialized) { - dissector_delete("udp.port", ServerPort, dissect_quake); + dissector_delete("udp.port", ServerPort, quake_handle); } else { Initialized=TRUE; } @@ -607,8 +607,7 @@ proto_reg_handoff_quake(void) /* set port for future deletes */ ServerPort=gbl_quakeServerPort; - dissector_add("udp.port", gbl_quakeServerPort, - dissect_quake, proto_quake); + dissector_add("udp.port", gbl_quakeServerPort, quake_handle); data_handle = find_dissector("data"); } |