eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 6b6e205f0f8e2b82119d3c069a717fe3826afb74
parent ffbbfd52a07af483e36fc59d7aef8b4628369246
Author: Andrew Zaborowski <andrew.zaborowski@intel.com>
Date:   Thu,  5 Dec 2019 04:22:38 +0100

iwmon: Print WSC AuthorizedMACs extended attributes

Diffstat:
Mmonitor/nlmon.c | 16++++++++++++++++
1 file changed, 16 insertions(+), 0 deletions(-)

diff --git a/monitor/nlmon.c b/monitor/nlmon.c @@ -2763,9 +2763,25 @@ static void print_wsc_wfa_ext_version2(unsigned int level, const char *label, print_attr(level, "%s: %x.%x", label, bytes[0] >> 4, bytes[0] & 0xf); } +static void print_wsc_wfa_ext_authorized_macs(unsigned int level, + const char *label, + const void *data, uint16_t size) +{ + if (size > 30 || size % 6 != 0) { + printf("malformed packet\n"); + return; + } + + for (; size; size -= 6, data += 6) + print_attr(level, "%s: %s", label, util_address_to_string(data)); +} + static struct attr_entry wsc_wfa_ext_attr_entry[] = { { WSC_WFA_EXTENSION_VERSION2, "Version2", ATTR_CUSTOM, { .function = print_wsc_wfa_ext_version2 } }, + { WSC_WFA_EXTENSION_AUTHORIZED_MACS, "Authorized MAC", + ATTR_CUSTOM, + { .function = print_wsc_wfa_ext_authorized_macs } }, { WSC_WFA_EXTENSION_NETWORK_KEY_SHAREABLE, "Network Key Shareable", ATTR_CUSTOM, { .function = print_wsc_bool } },