aboutsummaryrefslogtreecommitdiffstats
path: root/packet-isis.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-04-17 01:36:31 +0000
committerGuy Harris <guy@alum.mit.edu>2000-04-17 01:36:31 +0000
commit27ca639e861f95cecb362538d86d3b52fd69f7c4 (patch)
tree2b95800609466ab25693d0d772194d5a3c15a2a8 /packet-isis.c
parent0ba3e2b233c719f12627694f562c4974f8ecbfe2 (diff)
Register an "osinl" dissector table for ISO/IEC TR 9577 NLPID values,
and have dissectors for protocols that run at the OSI network layer 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=1873
Diffstat (limited to 'packet-isis.c')
-rw-r--r--packet-isis.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/packet-isis.c b/packet-isis.c
index ef764fbeb2..81fd5b80ac 100644
--- a/packet-isis.c
+++ b/packet-isis.c
@@ -2,7 +2,7 @@
* Routines for ISO/OSI network and transport protocol packet disassembly, core
* bits.
*
- * $Id: packet-isis.c,v 1.7 2000/04/15 22:11:11 guy Exp $
+ * $Id: packet-isis.c,v 1.8 2000/04/17 01:36:31 guy Exp $
* Stuart Stanley <stuarts@mxmail.net>
*
* Ethereal - Network traffic analyzer
@@ -131,7 +131,7 @@ isis_dissect_unknown(int offset,guint length,proto_tree *tree,frame_data *fd,
* Output:
* void, but we will add to the proto_tree if it is not NULL.
*/
-void
+static void
dissect_isis(const u_char *pd, int offset, frame_data *fd,
proto_tree *tree) {
isis_hdr_t *ihdr;
@@ -309,3 +309,9 @@ proto_register_isis(void) {
proto_register_field_array(proto_isis, hf, array_length(hf));
proto_register_subtree_array(ett, array_length(ett));
}
+
+void
+proto_reg_handoff_isis(void)
+{
+ dissector_add("osinl", NLPID_ISO10589_ISIS, dissect_isis);
+}