aboutsummaryrefslogtreecommitdiffstats
path: root/packet-lapb.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-12-29 02:27:21 +0000
committerGuy Harris <guy@alum.mit.edu>2000-12-29 02:27:21 +0000
commit00828b3f2bfe8523886257e54e37d34f18155f7d (patch)
tree394aaadfda75aa13496077a9d4b5c8dc4e4ca64c /packet-lapb.c
parent1d3ed65598890403eda732caa15e2ceac25b7e21 (diff)
"dissect_lapb()" is static to "packet-lapb.c", so it can't be directly
called by "dissect_lapbether()". "packet-lapbether.c" included "packet-lapb.h", to get "dissect_lapb()" declared, but that header file doesn't exist. Dissectors should call other dissectors indirectly, so have the LAPB dissector register itself and have the LAPB-over-Ethernet dissector get that handle and call the LAPB dissector through that handle, rather than making the LAPB dissector non-static and adding a "packet-lapb.h" header to declare it. Remove some unnecessary includes from "packet-lapbether.c". svn path=/trunk/; revision=2799
Diffstat (limited to 'packet-lapb.c')
-rw-r--r--packet-lapb.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/packet-lapb.c b/packet-lapb.c
index b817095d73..0c3b1a6459 100644
--- a/packet-lapb.c
+++ b/packet-lapb.c
@@ -2,7 +2,7 @@
* Routines for lapb frame disassembly
* Olivier Abad <oabad@cybercable.fr>
*
- * $Id: packet-lapb.c,v 1.24 2000/11/29 05:16:15 gram Exp $
+ * $Id: packet-lapb.c,v 1.25 2000/12/29 02:27:21 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -134,10 +134,12 @@ proto_register_lapb(void)
proto_lapb = proto_register_protocol ("Link Access Procedure Balanced (LAPB)", "lapb");
proto_register_field_array (proto_lapb, hf, array_length(hf));
proto_register_subtree_array(ett, array_length(ett));
+
+ register_dissector("lapb", dissect_lapb);
}
void
proto_reg_handoff_lapb(void)
{
- dissector_add("wtap_encap", WTAP_ENCAP_LAPB, dissect_lapb);
+ dissector_add("wtap_encap", WTAP_ENCAP_LAPB, dissect_lapb);
}