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-prism.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-prism.c')
-rw-r--r-- | packet-prism.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/packet-prism.c b/packet-prism.c index 3e478d0411..4fc9885f70 100644 --- a/packet-prism.c +++ b/packet-prism.c @@ -1,15 +1,15 @@ /* * packet-prism.c - * Decode packets with a prism header + * Decode packets with a Prism header * - * prism wlan devices have a monitoring mode that sticks + * Prism II-based wlan devices have a monitoring mode that sticks * a proprietary header on each packet with lots of good * information. This file is responsible for decoding that * data. * * By Tim Newsham * - * $Id: packet-prism.c,v 1.3 2001/11/30 07:14:20 guy Exp $ + * $Id: packet-prism.c,v 1.4 2001/12/03 03:59:38 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -202,8 +202,11 @@ proto_register_prism(void) void proto_reg_handoff_prism(void) { + dissector_handle_t prism_handle; + /* handle for 802.11 dissector */ ieee80211_handle = find_dissector("wlan"); - dissector_add("wtap_encap", WTAP_ENCAP_PRISM_HEADER, dissect_prism, proto_prism); + prism_handle = create_dissector_handle(dissect_prism, proto_prism); + dissector_add("wtap_encap", WTAP_ENCAP_PRISM_HEADER, prism_handle); } |