diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-06-04 08:51:36 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-06-04 08:51:36 +0000 |
commit | 82a9e1f19ce4288ebb3fd8c270d06edd678c04a8 (patch) | |
tree | 1e2bd2a6f3b779aa5cfa83ccd25526bf731f6ce0 /packet-asf.c | |
parent | 15d46471fc8823bed55c983362166135614bd927 (diff) |
Have the RMCP dissector reject packets with an unknown class byte value,
so we don't mis-dissect non-RMCP traffic going to or from the RMCP port.
Use the dissector table set up for RMCP classes - use
"dissector_try_port()" rather than explicitly checking class values, and
have the sub-dissectors register in the dissector table rather than
registering their dissectors.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7782 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-asf.c')
-rw-r--r-- | packet-asf.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/packet-asf.c b/packet-asf.c index a379a418f6..b9097e594b 100644 --- a/packet-asf.c +++ b/packet-asf.c @@ -3,7 +3,7 @@ * * Duncan Laurie <duncan@sun.com> * - * $Id: packet-asf.c,v 1.1 2003/04/23 00:24:36 guy Exp $ + * $Id: packet-asf.c,v 1.2 2003/06/04 08:51:36 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -132,16 +132,15 @@ proto_register_asf(void) proto_register_field_array(proto_asf, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); - - register_dissector("asf", dissect_asf, proto_asf); } void proto_reg_handoff_asf(void) { dissector_handle_t asf_handle; - asf_handle = create_dissector_handle(dissect_asf, proto_asf); - dissector_add("rmcp.class", RMCP_CLASS_ASF, asf_handle); data_handle = find_dissector("data"); + + asf_handle = create_dissector_handle(dissect_asf, proto_asf); + dissector_add("rmcp.class", RMCP_CLASS_ASF, asf_handle); } |