diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 2000-11-29 05:16:15 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 2000-11-29 05:16:15 +0000 |
commit | d673500082461b67f57914dca6176447f73f6c27 (patch) | |
tree | 5469fa22c76501813519d37f54fc09a373e07c8c /packet-ppp.c | |
parent | d6d2a9ccc99fadfb5a0fd6b1c9052bf6c2bcdb54 (diff) | |
download | wireshark-d673500082461b67f57914dca6176447f73f6c27.tar.gz wireshark-d673500082461b67f57914dca6176447f73f6c27.tar.bz2 wireshark-d673500082461b67f57914dca6176447f73f6c27.zip |
Wrap the dissect_fddi() call (with a 4th argument) with
dissect_fddi_not_bitswapped() and dissect_fddi_bitswapped(), both of which
use the standard 3-argument tvbuffified-dissector argument list.
Add a dissector table called "wtap_encap" which is used to call dissectors
from dissect_frame(). The switch() statement from this top-level dissector
is removed.
The link-layer dissectors register themselves with the "wtap_encap"
dissector table. The dissectors are now static where possible.
svn path=/trunk/; revision=2708
Diffstat (limited to 'packet-ppp.c')
-rw-r--r-- | packet-ppp.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/packet-ppp.c b/packet-ppp.c index a96e6cf55c..031cfacee1 100644 --- a/packet-ppp.c +++ b/packet-ppp.c @@ -1,7 +1,7 @@ /* packet-ppp.c * Routines for ppp packet disassembly * - * $Id: packet-ppp.c,v 1.44 2000/11/19 08:54:01 guy Exp $ + * $Id: packet-ppp.c,v 1.45 2000/11/29 05:16:15 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -1224,3 +1224,10 @@ proto_register_mp(void) proto_register_field_array(proto_mp, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); } + +void +proto_reg_handoff_ppp(void) +{ + dissector_add("wtap_encap", WTAP_ENCAP_PPP, dissect_ppp); + dissector_add("wtap_encap", WTAP_ENCAP_PPP_WITH_PHDR, dissect_ppp); +} |