diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-12-31 01:07:09 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-12-31 01:07:09 +0000 |
commit | c45a2852f08450ed85b49df7bf37905e9fc52d2b (patch) | |
tree | ce01324cc2bb04fa8f3b5351ae9cd8c0a157c3aa /wiretap/dbs-etherwatch.c | |
parent | 33709f95b96f50e0d0146b940d4e33d23b2470c4 (diff) | |
download | wireshark-c45a2852f08450ed85b49df7bf37905e9fc52d2b.tar.gz |
For WTAP_ENCAP_ETHERNET, you have to fill in the "eth.fcs_len" member of
the pseudo-header; these captures don't appear to have an FCS in them,
so set that member to 0.
svn path=/trunk/; revision=9502
Diffstat (limited to 'wiretap/dbs-etherwatch.c')
-rw-r--r-- | wiretap/dbs-etherwatch.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/wiretap/dbs-etherwatch.c b/wiretap/dbs-etherwatch.c index a4d14c9ed6..4d29e327fd 100644 --- a/wiretap/dbs-etherwatch.c +++ b/wiretap/dbs-etherwatch.c @@ -1,6 +1,6 @@ /* dbs-etherwatch.c * - * $Id: dbs-etherwatch.c,v 1.12 2003/12/29 00:36:12 guy Exp $ + * $Id: dbs-etherwatch.c,v 1.13 2003/12/31 01:07:09 guy Exp $ * * Wiretap Library * Copyright (c) 2001 by Marc Milgram <ethereal@mmilgram.NOSPAMmail.net> @@ -222,6 +222,11 @@ static gboolean dbs_etherwatch_read(wtap *wth, int *err, long *data_offset) if (pkt_len == -1) return FALSE; + /* + * We don't have an FCS in this frame. + */ + wth->pseudo_header.eth.fcs_len = 0; + wth->data_offset = offset; *data_offset = offset; return TRUE; @@ -245,6 +250,12 @@ dbs_etherwatch_seek_read (wtap *wth, long seek_off, *err = WTAP_ERR_BAD_RECORD; return FALSE; } + + /* + * We don't have an FCS in this frame. + */ + pseudo_header->eth.fcs_len = 0; + return TRUE; } |