diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2000-12-29 02:27:21 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2000-12-29 02:27:21 +0000 |
commit | 55ff0d285de1f3d864ba9958a503b6d026cf8ad0 (patch) | |
tree | 394aaadfda75aa13496077a9d4b5c8dc4e4ca64c /packet-lapb.c | |
parent | 0200f936fcde0a4ead597bb1192edd1b414cd67e (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".
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2799 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-lapb.c')
-rw-r--r-- | packet-lapb.c | 6 |
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); } |