diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-11-24 09:13:52 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-11-24 09:13:52 +0000 |
commit | 7c3027c5e9b169e6c4eaba78b4815123113ea398 (patch) | |
tree | 8a078ef2bb27f034ded036ea017e2b910df7de81 /epan/dissectors/packet-wfleet-hdlc.c | |
parent | b3b1679a577c1b282bf65dd2995d5a2227bbe52c (diff) | |
download | wireshark-7c3027c5e9b169e6c4eaba78b4815123113ea398.tar.gz |
Export two versions of the Ethereal dissector, for use with encapsulated
Ethernet frames, one for encapsulated frames that include an FCS and one
for encapsulated frames that don't include an FCS. Use the appropriate
versions.
In the ISL dissector, do the same sort of processing we do in the
Ethernet dissector to figure out whether the frame has a trailer or not
and whether it has an FCS or not.
svn path=/trunk/; revision=12593
Diffstat (limited to 'epan/dissectors/packet-wfleet-hdlc.c')
-rw-r--r-- | epan/dissectors/packet-wfleet-hdlc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-wfleet-hdlc.c b/epan/dissectors/packet-wfleet-hdlc.c index ecc8665c67..51f6712375 100644 --- a/epan/dissectors/packet-wfleet-hdlc.c +++ b/epan/dissectors/packet-wfleet-hdlc.c @@ -40,7 +40,7 @@ static int hf_wfleet_hdlc_cmd = -1; static gint ett_wfleet_hdlc = -1; -dissector_handle_t eth_handle; +dissector_handle_t eth_withoutfcs_handle; static const value_string wfleet_hdlc_cmd_vals[] = { { 0x03, "Un-numbered I frame"}, @@ -84,7 +84,7 @@ dissect_wfleet_hdlc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) next_tvb = tvb_new_subset(tvb, 2, -1, -1); - call_dissector(eth_handle, next_tvb, pinfo, tree); + call_dissector(eth_withoutfcs_handle, next_tvb, pinfo, tree); } @@ -123,5 +123,5 @@ proto_reg_handoff_wfleet_hdlc(void) * Find the eth dissector and save a ref to it */ - eth_handle = find_dissector("eth"); + eth_withoutfcs_handle = find_dissector("eth_withoutfcs"); } |