about summary refs log tree commit diff stats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* fix: consquent adding of detailsAnıl2023-01-131-5/+3
| | | to be able to add data to existing detail
* Merge branch 'main' into 6ghzMarc2022-10-161-0/+5
|\
| * gen: Fix boundary alignment in Radiotap headerJeff2022-10-021-0/+5
| |
* | parse: Add clarifying comment for Beacon frame length checkMarc2022-09-101-0/+1
| |
* | core/parse: Add skeleton for element extension parsingMarc2022-09-102-0/+18
| |
* | core/parse: Better handling of Radiotap informationMarc2022-09-104-3/+36
|/ | | | | | | | | | | | | | | | | | | | | | Radiotap information is now stored in the `libwifi_frame` struct, and will be kept automatically in `libwifi_frame.radiotap_info` for the lifecycle of said frame, if it is present. A new flag has been added for the frame for use with `libwifi_frame.flags` to detect if the radiotap info is present: `LIBWIFI_FLAGS_RADIOTAP_PRESENT`. The frame parser will now automatically calculate the band and center channel from radiotap data, and will store them in `libwifi_radiotap_info.channel.center` and `libwifi_radiotap_info.channel.band`. Four new flags have been added for use with the new radiotap band field: - `LIBWIFI_RADIOTAP_BAND_2GHZ` - `LIBWIFI_RADIOTAP_BAND_5GHZ` - `LIBWIFI_RADIOTAP_BAND_6GHZ` - `LIBWIFI_RADIOTAP_BAND_900MHZ` These can be used with a binary AND: `if (rtap.channel.band & LIBWIFI_RADIOTAP_BAND_6GHZ) { }`
* Add macOS support (#8)Marc2022-08-203-4/+39
| | | Add macOS build support
* parse: Update references to libwifi_cipher_suite structMarc2022-08-101-6/+6
|
* parse: Check for WEP presence before removing it from bitfieldMarc2022-08-101-2/+6
|
* parse: Remove useless reassignment of suite_typeMarc2022-08-101-4/+0
|
* core: Avoid double frame copy in radiotap handlingMarc2022-03-071-18/+7
| | | | Thanks @dragorn !
* core: Ensure radiotap parser errors are handledMarc2022-03-071-1/+4
|
* core: Return error if invalid length is supplied to tag_iterator_init()Marc2022-03-041-1/+4
|
* gen: Style fixups for #5Marc2022-01-292-5/+6
|
* core: Use version set in CMakeLists, inside code. Bump version to 0.0.3Marc2022-01-281-1/+3
|
* gen: Improve header comments, add ability to set Address 3 field for all ↵Marc2022-01-2826-181/+388
| | | | management frames
* gen: Add ability to set different BSSID than Transmitter for BeaconsMarc2022-01-152-4/+14
|
* core: Fix `libwifi_frame_verify()` and clarify usage.Marc2022-01-132-3/+12
|
* parse: Check frame minimum length when parsing Radiotap headerMarc2022-01-123-4/+14
|
* core: Add LIBWIFI_FLAGS_IS_ORDERED flag to frameMarc2022-01-112-0/+2
|
* core: Add Element Extension tag recognitionMarc2022-01-092-1/+4
|
* core: Add a function to get the tag name via tag number.Marc2022-01-092-0/+351
| | | | | Not very pretty, but it's also not so bad. Alternative is a huge array or a super ugly macro hack.
* gen/parse: Remove stdio.h includesMarc2022-01-096-6/+0
|
* core: Add a function to check if a tag is present by tag numberMarc2022-01-092-0/+25
|
* core: Fix tag_iterator failure on empty tags.Marc2022-01-091-4/+0
| | | | | | | | | | | This code used to be `< 0`, but was changed to `<= 0` in commit d40ddfe. Thinking more about this, it's a bad idea to abort on 0 length tags, since it's completely valid for some tags (such as SSID) to be empty. It doesn't make sense to check if `tag_len` is below 0, because it's unsigned. So, remove the check completely.
* test: Add ctests for generation functions.Marc2021-12-1718-56/+138
| | | | | This commit also enforces error code checking on functions inside of the generation functions, such as for `libwifi_quick_add_tag`.
* build: Unset hard dependency on clang in CMakeMarc2021-12-071-2/+2
| | | | This commit also corrects a small warning for gcc.
* Initial CommitMarc2021-12-01101-0/+8734
Signed-off-by: Marc <foxtrot@malloc.me>