diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-12-03 05:07:18 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-12-03 05:07:18 +0000 |
commit | 21b9a88b2942558536c9b0f5191261a874b8034a (patch) | |
tree | 9f1b2b33fa6322b2481df30e43dc0405a2d34242 /epan/packet.h | |
parent | d304535254ee7b9b21c5c26e9ae40afca29d1fe5 (diff) |
Add a routine tro look for a given port in a given dissector table and,
if found, return the dissector handle for that port.
Use that routine in the X.25 dissector; revert to attaching a dissector
handle to an X.25 virtual circuit.
svn path=/trunk/; revision=4310
Diffstat (limited to 'epan/packet.h')
-rw-r--r-- | epan/packet.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/epan/packet.h b/epan/packet.h index 83f69c2ee2..c4235eecf9 100644 --- a/epan/packet.h +++ b/epan/packet.h @@ -1,7 +1,7 @@ /* packet.h * Definitions for packet disassembly structures and routines * - * $Id: packet.h,v 1.43 2001/12/03 04:00:14 guy Exp $ + * $Id: packet.h,v 1.44 2001/12/03 05:07:18 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -131,6 +131,11 @@ extern void dissector_reset(const char *name, guint32 pattern); extern gboolean dissector_try_port(dissector_table_t sub_dissectors, guint32 port, tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree); +/* Look for a given port in a given dissector table and, if found, return + the dissector handle for that port. */ +extern dissector_handle_t dissector_get_port_handle( + dissector_table_t sub_dissectors, guint32 port); + /* List of "heuristic" dissectors (which get handed a packet, look at it, and either recognize it as being for their protocol, dissect it, and return TRUE, or don't recognize it and return FALSE) to be called |