diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-12-08 06:41:48 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-12-08 06:41:48 +0000 |
commit | 75cc056222900115ffab82bd5e976cd359582dea (patch) | |
tree | 2553b2a2b59a716626785e76b2f2782370b8199a /packet-bacapp.c | |
parent | 421e391953575a91959ba2323a735958b45d80fe (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.
svn path=/trunk/; revision=4358
Diffstat (limited to 'packet-bacapp.c')
-rw-r--r-- | packet-bacapp.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/packet-bacapp.c b/packet-bacapp.c index c0337319f5..33f85276d9 100644 --- a/packet-bacapp.c +++ b/packet-bacapp.c @@ -2,7 +2,7 @@ * Routines for BACnet (APDU) dissection * Copyright 2001, Hartmut Mueller <hartmut@abmlinux.org>, FH Dortmund * - * $Id: packet-bacapp.c,v 1.6 2001/12/03 03:59:33 guy Exp $ + * $Id: packet-bacapp.c,v 1.7 2001/12/08 06:41:41 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -123,13 +123,12 @@ proto_register_bacapp(void) "BACapp", "bacapp"); proto_register_field_array(proto_bacapp, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); + register_dissector("bacapp", dissect_bacapp, proto_bacapp); } + void proto_reg_handoff_bacapp(void) { - dissector_handle_t bacapp_handle; - - bacapp_handle = create_dissector_handle(dissect_bacapp, proto_bacapp); - dissector_add("bacnet_control_net", 0, bacapp_handle); data_handle = find_dissector("data"); } + |