summaryrefslogtreecommitdiff
path: root/packet-chdlc.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-12-08 06:41:48 +0000
committerGuy Harris <guy@alum.mit.edu>2001-12-08 06:41:48 +0000
commit75cc056222900115ffab82bd5e976cd359582dea (patch)
tree2553b2a2b59a716626785e76b2f2782370b8199a /packet-chdlc.c
parent421e391953575a91959ba2323a735958b45d80fe (diff)
downloadwireshark-75cc056222900115ffab82bd5e976cd359582dea.tar.gz
Attach a descriptive name field type and base to dissector tables; that
specifies how the selector values used as keys in those tables are to be displayed, and the title to use when displaying the table. Use that information in the code to display the initial and current entries of various dissector tables. Have the dissector for BACnet APDUs register itself by name, and have the BACnet NPDU dissector call it iff the BAC_CONTROL_NET bit isn't set, rather than doing it with a dissector table. svn path=/trunk/; revision=4358
Diffstat (limited to 'packet-chdlc.c')
-rw-r--r--packet-chdlc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/packet-chdlc.c b/packet-chdlc.c
index 5c66ee6b46..60919a49b6 100644
--- a/packet-chdlc.c
+++ b/packet-chdlc.c
@@ -1,7 +1,7 @@
/* packet-chdlc.c
* Routines for Cisco HDLC packet disassembly
*
- * $Id: packet-chdlc.c,v 1.7 2001/12/03 03:59:33 guy Exp $
+ * $Id: packet-chdlc.c,v 1.8 2001/12/08 06:41:41 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -189,7 +189,8 @@ proto_register_chdlc(void)
proto_register_subtree_array(ett, array_length(ett));
/* subdissector code */
- subdissector_table = register_dissector_table("chdlctype");
+ subdissector_table = register_dissector_table("chdlctype",
+ "Cisco HDLC frame type", FT_UINT16, BASE_HEX);
register_dissector("chdlc", dissect_chdlc, proto_chdlc);
}