From 62a0255c1fc74e7ec6559bb2bd5c85b7814e769a Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Wed, 5 Jan 2011 10:41:51 +0200 Subject: 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. --- wlantest/process.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'wlantest') 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; -- cgit v1.1