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-sna.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-sna.c')
-rw-r--r-- | packet-sna.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/packet-sna.c b/packet-sna.c index 26d1f05416..9fb1f2976b 100644 --- a/packet-sna.c +++ b/packet-sna.c @@ -2,7 +2,7 @@ * Routines for SNA * Gilbert Ramirez <gram@xiexie.org> * - * $Id: packet-sna.c,v 1.13 2000/04/13 20:39:14 gram Exp $ + * $Id: packet-sna.c,v 1.14 2000/04/17 00:32:42 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -34,6 +34,7 @@ #include <glib.h> #include "packet.h" +#include "llcsaps.h" #include "packet-sna.h" /* @@ -301,7 +302,7 @@ static int dissect_fid5 (const u_char*, int, frame_data*, proto_tree*); static int dissect_fidf (const u_char*, int, frame_data*, proto_tree*); static void dissect_rh (const u_char*, int, frame_data*, proto_tree*); -void +static void dissect_sna(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) { proto_tree *sna_tree = NULL, *th_tree = NULL, *rh_tree = NULL; @@ -1201,3 +1202,9 @@ proto_register_sna(void) proto_register_field_array(proto_sna, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); } + +void +proto_reg_handoff_sna(void) +{ + dissector_add("llc.dsap", SAP_SNA_PATHCTRL, dissect_sna); +} |