guy 2003/10/01 02:11:45 CDT
Modified files:
. packet-eth.c packet-eth.h
packet-ethertype.c packet-fw1.c
packet-ieee8023.c packet-ieee8023.h
packet-llc.c packet-null.c packet-sll.c
packet-vlan.c
Log:
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.
Revision Changes Path
1.88 +46 -14 ethereal/packet-eth.c
1.13 +2 -2 ethereal/packet-eth.h
1.38 +12 -10 ethereal/packet-ethertype.c
1.9 +2 -2 ethereal/packet-fw1.c
1.6 +5 -4 ethereal/packet-ieee8023.c
1.3 +2 -2 ethereal/packet-ieee8023.h
1.116 +2 -2 ethereal/packet-llc.c
1.60 +3 -2 ethereal/packet-null.c
1.20 +2 -2 ethereal/packet-sll.c
1.43 +3 -3 ethereal/packet-vlan.c