path: root/wlantest/writepcap.c
Commit message (Collapse)AuthorAgeFilesLines
* wlantest: Ethernet interface captureJouni Malinen2019-12-271-4/+8
| | | | | | | | Allow option (command line argument -e) to capture Ethernet headers instead of IEEE 802.11 so that wlantest can be used as a replacement for tcpdump/dumpcap for capturing. Signed-off-by: Jouni Malinen <j@w1.fi>
* wlantest: Add -N command line argument to remove write bufferingJouni Malinen2015-11-261-0/+10
| | | | | | | | | This makes it easier to do live parsing of captured pcap files from wlantest without having to rename and restart the capture file. Packet writes are flushed to disk after each packet if -N is included in the command line. Signed-off-by: Jouni Malinen <j@w1.fi>
* wlantest: Tag and ignore generated packetsJohannes Berg2014-04-131-2/+5
| | | | | | | | Rather than ignoring packets with a minimal 8-byte radiotap header, which may occur elsewhere, tag generated (decrypted) packets with an empty vendor namespace tag and ignore those. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
* wlantest: Always write radiotap pcap-ngJohannes Berg2013-06-221-4/+36
| | | | | | | | When writing pcap-ng files, always include a radiotap header even if there wasn't one in the input. For now just drop prism headers, I don't have any to test. Signed-hostap: Johannes Berg <johannes.berg@intel.com>
* wlantest: Add support for writing pcapng filesJouni Malinen2013-05-261-5/+232
| | | | | | | | | The new -n<file> command line argument can be used to request wlantest to write all read or captured frames into a pcapng file. This is similar to the -w argument, but with pcapng allowing per-frame comments to be embedded in the file. Signed-hostap: Jouni Malinen <j@w1.fi>
* Remove the GPL notification from files contributed by Jouni MalinenJouni Malinen2012-02-111-8/+2
| | | | | | | Remove the GPL notification text from the files that were initially contributed by myself. Signed-hostap: Jouni Malinen <j@w1.fi>
* wlantest: Replace pcap header directoryJouni Malinen2010-12-171-2/+2
| | | | | | | The use of the pcap subdirectory seems to be limited to some of the newer Linux distros only, so use the older paths to pcap.h and pcap-bpf.h to make wlantest bit more easier to compile on older systems.
* wlantest: Add option for writing a PCAP dump fileJouni Malinen2010-11-111-0/+103
The output file includes all the capture (or read from wireless PCAP file) frames in their original contents and another copy of each frame that is decrypted in wlantest (including EAPOL-Key Key Data field).