diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-10-01 07:11:49 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-10-01 07:11:49 +0000 |
commit | be2736adcf8ac583c2d56e37db9ef01f391913f9 (patch) | |
tree | defd8c4db6a77dd4d288de2b0b10f39d6c701b73 /packet-eth.h | |
parent | 44bb98184df93ebb56b5dce5dbd1deb6f37d716a (diff) |
Have a pseudo-header for Ethernet packets, giving the size of the FCS -
0 means "there is no FCS in the packet data", 4 means "there is an FCS
in the packet data", -1 means "I don't know whether there's an FCS in
the packet data, guess based on the packet size".
Assume that Ethernet encapsulated inside other protocols has no FCS, by
having the "eth" dissector assume that (and not check for an Ethernet
pseudo-header).
Have "ethertype()" take an argument giving the FCS size; pass 0 when
appropriate.
Fix up Wiretap routines to set the pseudo-header. This means we no
longer use the "generic" seek-and-read routine, so get rid of it.
svn path=/trunk/; revision=8574
Diffstat (limited to 'packet-eth.h')
-rw-r--r-- | packet-eth.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-eth.h b/packet-eth.h index 86b1fd7be6..d775264269 100644 --- a/packet-eth.h +++ b/packet-eth.h @@ -1,6 +1,6 @@ /* packet-eth.h * - * $Id: packet-eth.h,v 1.12 2003/08/23 09:09:32 sahlberg Exp $ + * $Id: packet-eth.h,v 1.13 2003/10/01 07:11:44 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -33,6 +33,6 @@ typedef struct _eth_hdr { void capture_eth(const guchar *, int, int, packet_counts *); void add_ethernet_trailer(proto_tree *fh_tree, int trailer_id, tvbuff_t *tvb, - tvbuff_t *trailer_tvb); + tvbuff_t *trailer_tvb, int fcs_len); #endif |