diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2000-12-03 09:18:20 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2000-12-03 09:18:20 +0000 |
commit | f9021e7502dbe7d1dd3283943cb1994ef66493a2 (patch) | |
tree | 444ac0b4bb26bebba25caddf29946f3eda0149aa /packet-nbipx.c | |
parent | 71cd7cec7cbe235408fae5e6e07b20e36b858192 (diff) |
Register "dissect_nbipx()", and have the IPX dissector look up its
handle and call it through the handle. Make it static; this renders
"packet-nbipx.h" unnecessary.
Get rid of the "tvb_compat()" call in the IPX dissector - it calls all
dissectors through handles or lookup tables, and thus any
backwards-compatibility stuff is done by the code in libethereal.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2735 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-nbipx.c')
-rw-r--r-- | packet-nbipx.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packet-nbipx.c b/packet-nbipx.c index ae67f2a8c9..48bf4a8070 100644 --- a/packet-nbipx.c +++ b/packet-nbipx.c @@ -2,7 +2,7 @@ * Routines for NetBIOS over IPX packet disassembly * Gilbert Ramirez <gram@xiexie.org> * - * $Id: packet-nbipx.c,v 1.29 2000/11/19 08:54:00 guy Exp $ + * $Id: packet-nbipx.c,v 1.30 2000/12/03 09:18:20 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -112,7 +112,7 @@ static const value_string nwlink_data_stream_type_vals[] = { }; /* NetWare */ -void +static void dissect_nbipx(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { CHECK_DISPLAY_AS_DATA(proto_nbipx, tvb, pinfo, tree); @@ -451,6 +451,8 @@ proto_register_nbipx(void) proto_nbipx = proto_register_protocol("NetBIOS over IPX", "nbipx"); /* proto_register_field_array(proto_nbipx, hf, array_length(hf));*/ proto_register_subtree_array(ett, array_length(ett)); + + register_dissector("nbipx", dissect_nbipx); } void |