aboutsummaryrefslogtreecommitdiffstats
path: root/wlantest/process.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2011-01-05 08:41:51 (GMT)
committerJouni Malinen <j@w1.fi>2011-01-05 08:41:51 (GMT)
commit62a0255c1fc74e7ec6559bb2bd5c85b7814e769a (patch)
treeb11d3b1487c7a16e819893b389efa5642fa9f06d /wlantest/process.c
parentfb8f5fc6fd9534721a9ce2ce4af479e585062add (diff)
downloadhostap-62a0255c1fc74e7ec6559bb2bd5c85b7814e769a.zip
hostap-62a0255c1fc74e7ec6559bb2bd5c85b7814e769a.tar.gz
hostap-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/process.c')
-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;