diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-04-17 00:32:43 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-04-17 00:32:43 +0000 |
commit | 0ba3e2b233c719f12627694f562c4974f8ecbfe2 (patch) | |
tree | beec035095e135d72c17c3cdee265524a117611f /packet-netbios.c | |
parent | 83a275737e3a5c00e3b81ef2f6e91d89bb559368 (diff) |
Register a "llc.dsap" dissector table for 802.2 LLC, and have dissectors
for protocols that run inside 802.2 LLC register themselves with it
using "dissector_add()".
Make various dissectors static if they can be, and remove from header
files declarations of those dissectors.
svn path=/trunk/; revision=1872
Diffstat (limited to 'packet-netbios.c')
-rw-r--r-- | packet-netbios.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/packet-netbios.c b/packet-netbios.c index ffb4269018..5b92ef4829 100644 --- a/packet-netbios.c +++ b/packet-netbios.c @@ -5,7 +5,7 @@ * * derived from the packet-nbns.c * - * $Id: packet-netbios.c,v 1.17 2000/03/07 05:20:54 guy Exp $ + * $Id: packet-netbios.c,v 1.18 2000/04/17 00:32:40 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -40,6 +40,7 @@ #include <glib.h> #include "packet.h" +#include "llcsaps.h" #include "packet-netbios.h" #include "packet-smb.h" @@ -960,7 +961,7 @@ void (*dissect_netb[])(const u_char *, int, frame_data *, proto_tree *) = { }; -void dissect_netbios(const u_char *pd, int offset, frame_data *fd, +static void dissect_netbios(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) { @@ -1081,3 +1082,9 @@ void proto_register_netbios(void) proto_netbios = proto_register_protocol("NetBIOS", "netbios"); proto_register_subtree_array(ett, array_length(ett)); } + +void +proto_reg_handoff_netbios(void) +{ + dissector_add("llc.dsap", SAP_NETBIOS, dissect_netbios); +} |