diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-08-26 05:52:53 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-08-26 05:52:53 +0000 |
commit | f7e30628672367a757016ef3b2bfd604bbc93c1b (patch) | |
tree | 733504afac6821618f370545b556d2541c2176b9 /packet-ppp.h | |
parent | 42fdef2ff460e460016b841b640f47bee0bb8f21 (diff) | |
download | wireshark-f7e30628672367a757016ef3b2bfd604bbc93c1b.tar.gz wireshark-f7e30628672367a757016ef3b2bfd604bbc93c1b.tar.bz2 wireshark-f7e30628672367a757016ef3b2bfd604bbc93c1b.zip |
From Jesper Peterson:
Extract the FCS decoding section of the PPP_HDLC dissector to
allow the CHDLC dissector to use the same routine.
The ppp_options used for preferences has been renamed to
fcs_options and exported via packet-ppp.h so CHDLC gets a
separate (but identical) FCS preference.
This means prefs.h has to be included before packet-ppp.h so a
couple of ppp related files (packet-{gtp,null,raw,vj}.c) had
their includes slightly re-arranged.
From me: make the PPP/CHDLC FCS code use "crc32()" to check the 32-bit
FCS.
svn path=/trunk/; revision=8266
Diffstat (limited to 'packet-ppp.h')
-rw-r--r-- | packet-ppp.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/packet-ppp.h b/packet-ppp.h index 38922ed71f..b04ff23f56 100644 --- a/packet-ppp.h +++ b/packet-ppp.h @@ -1,6 +1,6 @@ /* packet-ppp.h * - * $Id: packet-ppp.h,v 1.13 2003/04/29 17:56:49 guy Exp $ + * $Id: packet-ppp.h,v 1.14 2003/08/26 05:52:52 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -29,9 +29,16 @@ extern gboolean ppp_vj_decomp;/* FALSE = No VJ header decompression, TRUE = Decompress VJ */ void capture_ppp_hdlc(const guchar *, int, int, packet_counts *); +tvbuff_t *decode_fcs(tvbuff_t *tvb, proto_tree *fh_tree, int fcs_decode, int proto_offset); + /* * Used by the GTP dissector as well. */ extern const value_string ppp_vals[]; +/* + * Used by CHDLC dissector as well. + */ +extern const enum_val_t fcs_options[]; + #endif |