aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-eth.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2011-09-13 21:17:45 +0000
committerGuy Harris <guy@alum.mit.edu>2011-09-13 21:17:45 +0000
commit5fe4eb3c3339a3af4afc33ddcf8fd617c0e1d90a (patch)
tree31fb0a5ebdaa5044ce70c1e0c184561c9e8b981a /epan/dissectors/packet-eth.c
parent70c3a7d727de1e14adab806ac6a7bd6b5b101283 (diff)
Always pass the FCS length to dissect_802_3() and ethertype(), so it
will process the FCS if it's known to be present and will attempt to guess whether it's present if it's not known not to be present. svn path=/trunk/; revision=38990
Diffstat (limited to 'epan/dissectors/packet-eth.c')
-rw-r--r--epan/dissectors/packet-eth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-eth.c b/epan/dissectors/packet-eth.c
index 09dfdb9a5e..420182279a 100644
--- a/epan/dissectors/packet-eth.c
+++ b/epan/dissectors/packet-eth.c
@@ -474,10 +474,10 @@ dissect_eth_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree,
}
dissect_802_3(ehdr->type, is_802_2, tvb, offset, pinfo, parent_tree, fh_tree,
- hf_eth_len, hf_eth_trailer, 0);
+ hf_eth_len, hf_eth_trailer, fcs_len);
} else {
ethertype(ehdr->type, tvb, offset, pinfo, parent_tree, fh_tree,
- hf_eth_type, hf_eth_trailer, 0);
+ hf_eth_type, hf_eth_trailer, fcs_len);
}
}
}