aboutsummaryrefslogtreecommitdiffstats
path: root/wlantest
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2011-01-05 10:41:51 +0200
committerJouni Malinen <j@w1.fi>2011-01-05 10:41:51 +0200
commit62a0255c1fc74e7ec6559bb2bd5c85b7814e769a (patch)
treeb11d3b1487c7a16e819893b389efa5642fa9f06d /wlantest
parentfb8f5fc6fd9534721a9ce2ce4af479e585062add (diff)
downloadexternal_wpa_supplicant_8_ti-62a0255c1fc74e7ec6559bb2bd5c85b7814e769a.zip
external_wpa_supplicant_8_ti-62a0255c1fc74e7ec6559bb2bd5c85b7814e769a.tar.gz
external_wpa_supplicant_8_ti-62a0255c1fc74e7ec6559bb2bd5c85b7814e769a.tar.bz2
wlantest: Skip frames inserted by wlantest when reading pcap file
This makes debug output clearer when re-reading a file that has previously been processed and decrypted by wlantest.
Diffstat (limited to 'wlantest')
-rw-r--r--wlantest/process.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/wlantest/process.c b/wlantest/process.c
index f740a64..3b80974 100644
--- a/wlantest/process.c
+++ b/wlantest/process.c
@@ -228,6 +228,10 @@ void wlantest_process(struct wlantest *wt, const u8 *data, size_t len)
}
}
+ if (iter.max_length == 8) {
+ wpa_printf(MSG_DEBUG, "Skip frame inserted by wlantest");
+ return;
+ }
frame = data + iter.max_length;
frame_len = len - iter.max_length;