diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-12-08 06:41:48 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-12-08 06:41:48 +0000 |
commit | 475cbb65a26799d24278e606d7ffcd0d407a1619 (patch) | |
tree | 2553b2a2b59a716626785e76b2f2782370b8199a /packet-sctp.c | |
parent | a80c006d929d575c46b2df54453504c62c391de0 (diff) |
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.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4358 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-sctp.c')
-rw-r--r-- | packet-sctp.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/packet-sctp.c b/packet-sctp.c index fc99a60347..2d9a3612ae 100644 --- a/packet-sctp.c +++ b/packet-sctp.c @@ -2,7 +2,7 @@ * Routines for Stream Control Transmission Protocol dissection * Copyright 2000, Michael Tüxen <Michael.Tuexen@icn.siemens.de> * - * $Id: packet-sctp.c,v 1.22 2001/12/03 03:59:39 guy Exp $ + * $Id: packet-sctp.c,v 1.23 2001/12/08 06:41:42 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -1932,8 +1932,10 @@ proto_register_sctp(void) proto_register_subtree_array(ett, array_length(ett)); /* subdissector code */ - sctp_port_dissector_table = register_dissector_table("sctp.port"); - sctp_ppi_dissector_table = register_dissector_table("sctp.ppi"); + sctp_port_dissector_table = register_dissector_table("sctp.port", + "SCTP port", FT_UINT16, BASE_DEC); + sctp_ppi_dissector_table = register_dissector_table("sctp.ppi", + "SCTP payload protocol identifier", FT_UINT32, BASE_HEX); }; |