aboutsummaryrefslogtreecommitdiffstats
path: root/packet-isakmp.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2001-12-03 04:00:26 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2001-12-03 04:00:26 +0000
commitb6afcc102f8ba453034eda35648ff746ed329f4a (patch)
tree6303e298a7b136a1e1da306950398c99e3e71432 /packet-isakmp.c
parentcc6c7a4721cbfeee3556dacd8f019d9cc78ef293 (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-isakmp.c')
-rw-r--r--packet-isakmp.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/packet-isakmp.c b/packet-isakmp.c
index 41668adb0d..900f56345c 100644
--- a/packet-isakmp.c
+++ b/packet-isakmp.c
@@ -4,7 +4,7 @@
* for ISAKMP (RFC 2407)
* Brad Robel-Forrest <brad.robel-forrest@watchguard.com>
*
- * $Id: packet-isakmp.c,v 1.49 2001/11/14 20:02:23 gram Exp $
+ * $Id: packet-isakmp.c,v 1.50 2001/12/03 03:59:35 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -1341,12 +1341,15 @@ proto_register_isakmp(void)
void
proto_reg_handoff_isakmp(void)
{
+ dissector_handle_t isakmp_handle;
+
/*
* Get handle for the AH & ESP dissectors.
*/
esp_handle = find_dissector("esp");
ah_handle = find_dissector("ah");
- dissector_add("udp.port", UDP_PORT_ISAKMP, dissect_isakmp, proto_isakmp);
- dissector_add("tcp.port", TCP_PORT_ISAKMP, dissect_isakmp, proto_isakmp);
+ isakmp_handle = create_dissector_handle(dissect_isakmp, proto_isakmp);
+ dissector_add("udp.port", UDP_PORT_ISAKMP, isakmp_handle);
+ dissector_add("tcp.port", TCP_PORT_ISAKMP, isakmp_handle);
}