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-ieee8023.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-ieee8023.h')
-rw-r--r-- | packet-ieee8023.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-ieee8023.h b/packet-ieee8023.h index 60ad4d329f..533b59cd96 100644 --- a/packet-ieee8023.h +++ b/packet-ieee8023.h @@ -2,7 +2,7 @@ * Declaration of routine for dissecting 802.3 (as opposed to D/I/X Ethernet) * packets. * - * $Id: packet-ieee8023.h,v 1.2 2002/08/28 21:00:17 jmayer Exp $ + * $Id: packet-ieee8023.h,v 1.3 2003/10/01 07:11:44 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -29,6 +29,6 @@ void dissect_802_3(int length, gboolean is_802_2, tvbuff_t *tvb, int offset_after_length, packet_info *pinfo, proto_tree *tree, - proto_tree *fh_tree, int length_id, int trailer_id); + proto_tree *fh_tree, int length_id, int trailer_id, int fcs_len); #endif |