]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wlantest: Skip frames inserted by wlantest when reading pcap file
authorJouni Malinen <jouni.malinen@atheros.com>
Wed, 5 Jan 2011 08:41:51 +0000 (10:41 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 5 Jan 2011 08:41:51 +0000 (10:41 +0200)
This makes debug output clearer when re-reading a file that has
previously been processed and decrypted by wlantest.

wlantest/process.c

index f740a6445187f506049fa07b56cc11f8665213f0..3b80974d3997a9466c3579b0699a079ab26964bf 100644 (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;