aboutsummaryrefslogtreecommitdiffstats
path: root/wlantest/wlantest.c
Commit message (Collapse)AuthorAgeFilesLines
* Preparations for variable length KCK and KEKJouni Malinen2015-01-261-3/+9
| | | | | | | | This modifies struct wpa_ptk to allow the length of KCK and KEK to be stored. This is needed to allow longer keys to be used, e.g., with Suite B 192-bit level. Signed-off-by: Jouni Malinen <j@w1.fi>
* Declare wpa_debug_* variables in src/utils/wpa_debug.hJouni Malinen2013-12-311-5/+0
| | | | | | | | | These were somewhat more hidden to avoid direct use, but there are now numerous places where these are needed and more justification to make the extern int declarations available from wpa_debug.h. In addition, this avoids some warnings from sparse. Signed-hostap: Jouni Malinen <j@w1.fi>
* wlantest: Allow additional PTKs to be specified from a fileJouni Malinen2013-11-171-2/+64
| | | | | | | | | | A text file with a hexdump of PTK (KCK|KEK=TK with 48 octets for CCMP or 64 octets for TKIP or alternative 16 or 32 octet TK for CCMP/TKIP) can now be read from a file specified with the -T command line argument. If the current known PTK fails to decrypt a frame (or if no current PTK is known) all listed PTKs are iterated to see if any of them matches. Signed-hostap: Jouni Malinen <j@w1.fi>
* wlantest: Add support for debug log timestampsJouni Malinen2013-11-171-2/+6
| | | | | | | The new command line argument -t can now be used to request wlantest to include a timestamp in the log entries. Signed-hostap: Jouni Malinen <j@w1.fi>
* wlantest: Add support for log output into a fileJouni Malinen2013-11-171-2/+13
| | | | | | | This allows wlantest debug log output to be directed to a file so that RELOG command can be used to rotate files more easily than stdout. Signed-hostap: Jouni Malinen <j@w1.fi>
* wlantest: Add RELOG command to reopen log/capture filesJouni Malinen2013-11-171-7/+27
| | | | | | | This can be used similarly to the wpa_supplicant RELOG command to rotate log and capture files. Signed-hostap: Jouni Malinen <j@w1.fi>
* wlantest: Add support for writing pcapng filesJouni Malinen2013-05-261-3/+67
| | | | | | | | | 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>
* wlantest: Add -F option for assuming FCS is includedJouni Malinen2013-01-171-2/+5
| | | | | | | | | When using DLT_IEEE802_11 datalink type in a pcap file, wlantest can now be instructed to assume there is an FCS included in the frame by adding the new -F command line argument. This will make wlantest validate the FCS and strip it from the frame before processing. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* 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: Allow MSK/PMK list to be read from a text fileJouni Malinen2011-12-081-3/+42
| | | | | | | | A text file with MSK/PMK entries (one key per line in hexdump format) can be read into wlantest (-f<path to file>) to initialize list of known PMKs. Signed-hostap: Jouni Malinen <j@w1.fi>
* wlantest: Add command for adding WEP keys during run timeJouni Malinen2011-01-281-5/+7
|
* wlantest: Add support for decrypting WEP framesJouni Malinen2011-01-141-1/+30
|
* wlantest: Add flush command for dropping all BSS dataJouni Malinen2010-11-181-3/+1
|
* wlantest: Add control interface and wlantest_cliJouni Malinen2010-11-131-2/+15
| | | | This can be used to manage wlantest operation during run time.
* wlantest: Add option for writing a PCAP dump fileJouni Malinen2010-11-111-2/+11
| | | | | | | 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).
* wlantest: Derive PMK from RADIUS exchangeJouni Malinen2010-11-071-2/+49
| | | | | | Decrypt MPPE keys and derive PMK from RADIUS exchange if RADIUS shared secret is known. Use the derived PMK when trying to derive PTK during 4-Way Handshake.
* wlantest: Add capturing and parsing of RADIUS messagesJouni Malinen2010-11-071-3/+19
| | | | | | Another interface (-I) or pcap file (-R) can now be specified as a source of RADIUS packets. These packets are now parsed, but the MSK is not yet derived for PMK use.
* wlantest: Add PTK derivation based on passphrasesJouni Malinen2010-11-071-2/+35
| | | | | | | Allow pre-configuration of passphrases (-p<passphrase>) to provide enough information for wlantest to be able to derive PMK for each BSS and PTK for each STA going through 4-Way Handshake (at least message 2 and 3 needs to be received).
* wlantest: Maintain table of BSS informationJouni Malinen2010-11-071-4/+20
| | | | | Whenever a Beacon or Probe Response frame is observed, add or update a BSS entry to maintain current information about the active BSSes.
* wlantest: Add preliminary version of IEEE 802.11 protocol testing toolJouni Malinen2010-11-071-0/+108
This tool can be used to capture IEEE 802.11 frames either from a monitor interface for realtime capturing or from pcap files for offline analysis. This version is only adding basic infrastructure for going through the frames and parsing their headers.