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=8578
This commit is contained in:
Guy Harris 2003-10-01 18:19:16 +00:00
parent 7a0164ee7c
commit 8f0aa18626
1 changed files with 0 additions and 1 deletions

View File

@ -1,7 +1,6 @@
EXPORTS
wtap_buf_ptr
wtap_close
wtap_def_seek_read
wtap_dump
wtap_dump_can_open
wtap_dump_can_write_encap