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.
This commit is contained in:
Jouni Malinen 2011-01-05 10:41:51 +02:00 committed by Jouni Malinen
parent fb8f5fc6fd
commit 62a0255c1f

View File

@ -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;