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-fw1.c | |
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-fw1.c')
-rw-r--r-- | packet-fw1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-fw1.c b/packet-fw1.c index 55f2d3e183..5795e29b61 100644 --- a/packet-fw1.c +++ b/packet-fw1.c @@ -2,7 +2,7 @@ * Routines for Ethernet header disassembly of FW1 "monitor" files * Copyright 2002,2003, Alfred Koebler <ako@icon.de> * - * $Id: packet-fw1.c,v 1.8 2003/08/16 00:29:15 guy Exp $ + * $Id: packet-fw1.c,v 1.9 2003/10/01 07:11:44 guy Exp $ * * Ethereal - Network traffic analyzer * By Alfred Koebler <ako@icon.de> @@ -233,7 +233,7 @@ dissect_fw1(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) } } ethertype(etype, tvb, ETH_HEADER_SIZE, pinfo, tree, fh_tree, hf_fw1_type, - hf_fw1_trailer); + hf_fw1_trailer, 0); } void |