Page MenuHomeFreeBSD

wpa_supplicant: Handle systems without INET (legacy IP) support
ClosedPublic

Authored by zarychtam_plan-b.pwste.edu.pl on Apr 22 2025, 1:39 PM.
Tags
None
Referenced Files
F159784167: D49959.diff
Thu, Jun 18, 5:35 AM
Unknown Object (File)
Mon, Jun 15, 5:46 AM
Unknown Object (File)
Mon, Jun 15, 2:02 AM
Unknown Object (File)
Sun, Jun 14, 3:36 PM
Unknown Object (File)
Mon, Jun 8, 2:50 AM
Unknown Object (File)
Sat, May 30, 5:04 PM
Unknown Object (File)
May 17 2026, 1:34 PM
Unknown Object (File)
May 17 2026, 9:00 AM

Details

Summary

Currently, wpa_supplicant fails when legacy IP support is disabled in FreeBSD (i.e., the world built with WITHOUT_INET and nooptions INET in the kernel config). The proposed patch allows running wpa_supplicant and connecting to wireless networks without INET support when INET6 is available.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

I think this is fine for now. Ouch. ;-)

This revision is now accepted and ready to land.Apr 22 2025, 3:35 PM

Thank you for the support @adrian.
I am adding @roy_marples.name as a reviewer, he has deep insight since contributed a lot to this project.
The patch was submitted to the upstream and is awaiting acceptance.

LGTM.

Tested on NetBSD-10 just by changing PF_INET TO PF_INET6 and it works just as before.

bz requested changes to this revision.Apr 22 2025, 7:49 PM
bz added inline comments.
contrib/wpa/src/drivers/driver_bsd.c
1803

Why EPROTONOSUPPORT? SOCK_DRAM being a problem you'd have to try SOCK_STREAM?

1804

Indentation looks wrong for the inside of this block.

This revision now requires changes to proceed.Apr 22 2025, 7:49 PM

Improved readability (indentations adjusted), unused condition removed.

Looks good to me. Thank you for addressing @bz's comments.

LGTM following bz@'s suggestion.

This revision was not accepted when it landed; it landed in state Needs Review.Apr 28 2025, 12:05 AM
This revision was automatically updated to reflect the committed changes.