Make ifconfig send WPA parameters to the kernel in one ioctl call.
When a sequence of WPA parameters needs to be set, instead of sending
each parameter via a separate get/set ioctl dance to the kernel, ifconfig
now collects all parameters and sends one ioctl to the kernel when done.
Setting any WPA parameter now enables WPA on the interface. Previously,
only the wpa, wpakey, and wpaakms "802.1x" commands enabled WPA.
As before, -wpa and -wpakey disable WPA and clear the WPA configuration.
Fixes misbehaviour where the wpaakms command would disable WPA and clear
the WPA configuration unless AKM "802.1x" was used.
Found by Spiros Thanasoulas of Radically Open Security while reviewing
and testing my WPA3 support patch.
Reset WPA AKMs to defaults if the WPA protocol version is changed and
no AKMs are provided on the subsequent command line. This will keep us
happy once WPA3 appears in the future.
ok armani@ phessler@
Rework the name2id code a bit, make internal functions static.
Introduce two helpers _namelookup() and _idlookup() to lookup a
name or id respectivly. It returns the label or NULL if not found.
Reimplement the other internal functions with these helpers.
OK tb@
Security fix for zstd
Backport upstream fix for CVE-2026-124851, where malformed input during
streaming decompression may expose uninitialized memory or data from
previous decompressions.
OK sthen@
Update to zstd-1.6.0
Fixes numerous bugs and memory safety issues, including CVE-2026-124851,
where malformed input during streaming decompression could expose
uninitialized memory. Changes:
https://github.com/meta/zstd/releases/tag/v1.6.0
OK sthen@, tb@
ensure that ifconfig 'join' always enables wpa if wpa parameters are set
Also, the group cipher can only be set in hostap mode which is irrelevant
for the join command, so ignore wpagroupcipher during 'join' operations.
ok armani@
Update for Suricata to 8.0.8
https://github.com/OISF/suricata/releases/tag/suricata-8.0.8
Based on my last update to 8.0.6 also a lot of input and real
tests from Pierre Warnier (thanks a lot!)
We enabled hyperscan only for amd64, took out libiconv to
honored portcheck.
Do not send a WPA key to the kernel when ifconfig join is used with -wpakey.
The key data won't be used if WPA is being disabled. Sending a key in that
case is pointless and potentially confusing.
While here, simplify the code by writing relevant lines from setifwpa() inline.
ok armani@