aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/etherpeek.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-04-08 10:01:26 +0000
committerGuy Harris <guy@alum.mit.edu>2002-04-08 10:01:26 +0000
commit8b9f8e4f3b02b4a99e5c075cb8e7c7c1b5235e7e (patch)
tree97aa09b773994a319c9926c55b21fd4195f3afa1 /wiretap/etherpeek.c
parentb2c46086c3474a945f7f4c112c8c5979fb63e4a5 (diff)
The length passed into "seek_read" routines is the length supplied by
the "read" routine, which means it's already had any end-of-frame padding/FCS removed; we don't need to remove it in the "seek_read" routine. svn path=/trunk/; revision=5124
Diffstat (limited to 'wiretap/etherpeek.c')
-rw-r--r--wiretap/etherpeek.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/wiretap/etherpeek.c b/wiretap/etherpeek.c
index 000458c3e5..ee55db7405 100644
--- a/wiretap/etherpeek.c
+++ b/wiretap/etherpeek.c
@@ -2,7 +2,7 @@
* Routines for opening EtherPeek (and TokenPeek?) files
* Copyright (c) 2001, Daniel Thompson <d.thompson@gmx.net>
*
- * $Id: etherpeek.c,v 1.18 2002/04/08 09:44:42 guy Exp $
+ * $Id: etherpeek.c,v 1.19 2002/04/08 10:01:26 guy Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu>
@@ -466,11 +466,6 @@ etherpeek_seek_read_v7(wtap *wth, long seek_off,
wtap_file_read_expected_bytes(&radio_hdr, 4, wth->random_fh,
err);
- /*
- * We don't treat the radio information as packet data.
- */
- length -= 4;
-
pseudo_header->ieee_802_11.channel = radio_hdr.channel;
pseudo_header->ieee_802_11.data_rate = radio_hdr.data_rate;
pseudo_header->ieee_802_11.signal_level = radio_hdr.signal_level;