aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/vwr.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-02-24 15:21:40 -0800
committerGuy Harris <guy@alum.mit.edu>2016-02-24 23:24:00 +0000
commit75a522e67843334a3c2c261ebb4d185c37d749bd (patch)
treefa7d27c29e3cf72f7ee2e78261bd9cf11d63606d /wiretap/vwr.c
parent996cc44990839252ce949a0af4899615d76d14bb (diff)
Add 1 byte and 16 byte as separate values.
The 1 is for the byte written with vht_ndp_flag; the 16 is for the PLCP header. Separate them out; no change to the actual code (as any compiler worth its salt would do constant folding). Change-Id: I5e081c67e605203153270ed9a3f9e30b9e9b968c Reviewed-on: https://code.wireshark.org/review/14125 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wiretap/vwr.c')
-rw-r--r--wiretap/vwr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wiretap/vwr.c b/wiretap/vwr.c
index 2a2107d9c0..c65b25ea93 100644
--- a/wiretap/vwr.c
+++ b/wiretap/vwr.c
@@ -1465,8 +1465,8 @@ static gboolean vwr_read_s2_s3_W_rec(vwr_t *vwr, struct wtap_pkthdr *phdr,
*
* We include the length of the metadata headers in the packet lengths.
*/
- phdr->len = STATS_COMMON_FIELDS_LEN + EXT_WLAN_FIELDS_LEN + 17 + actual_octets;
- phdr->caplen = STATS_COMMON_FIELDS_LEN + EXT_WLAN_FIELDS_LEN + 17 + actual_octets;
+ phdr->len = STATS_COMMON_FIELDS_LEN + EXT_WLAN_FIELDS_LEN + 1 + 16 + actual_octets;
+ phdr->caplen = STATS_COMMON_FIELDS_LEN + EXT_WLAN_FIELDS_LEN + 1 + 16 + actual_octets;
phdr->ts.secs = (time_t)s_sec;
phdr->ts.nsecs = (int)(s_usec * 1000);