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
Unknown Object (File)
Wed, Oct 15, 12:48 AM
Unknown Object (File)
Tue, Oct 14, 1:18 AM
Unknown Object (File)
Thu, Oct 9, 8:01 PM
Unknown Object (File)
Sun, Sep 28, 12:36 PM
Unknown Object (File)
Thu, Sep 25, 1:20 PM
Unknown Object (File)
Sep 14 2025, 3:13 AM
Unknown Object (File)
Sep 14 2025, 2:24 AM
Unknown Object (File)
Sep 13 2025, 4:33 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.