aboutsummaryrefslogtreecommitdiffstats
path: root/packet-sna.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2000-04-17 00:32:43 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2000-04-17 00:32:43 +0000
commit9ec8de619bf2a0570bb182426fc772e6d34b8781 (patch)
treebeec035095e135d72c17c3cdee265524a117611f /packet-sna.c
parent99c3bce667e07a5c303c05ac0c95f42b1abba3e9 (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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1872 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-sna.c')
-rw-r--r--packet-sna.c11
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);
+}