diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-12-03 04:00:26 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-12-03 04:00:26 +0000 |
commit | bced8711f67b5dba76e9d6cdfd1a0246b235df27 (patch) | |
tree | 6303e298a7b136a1e1da306950398c99e3e71432 /packet-isakmp.c | |
parent | 8d0ea8bc932de5cf57183a593be160515af064d9 (diff) | |
download | wireshark-bced8711f67b5dba76e9d6cdfd1a0246b235df27.tar.gz wireshark-bced8711f67b5dba76e9d6cdfd1a0246b235df27.tar.bz2 wireshark-bced8711f67b5dba76e9d6cdfd1a0246b235df27.zip |
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.
svn path=/trunk/; revision=4308
Diffstat (limited to 'packet-isakmp.c')
-rw-r--r-- | packet-isakmp.c | 9 |
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); } |