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
F156945796: D49959.id.diff
Sun, May 17, 1:34 PM
F156919973: D49959.id154367.diff
Sun, May 17, 9:00 AM
F156853229: D49959.id154091.diff
Sat, May 16, 10:19 PM
F156850381: D49959.id154124.diff
Sat, May 16, 9:50 PM
Unknown Object (File)
Sat, May 16, 10:21 AM
Unknown Object (File)
Thu, May 14, 2:23 AM
Unknown Object (File)
Fri, May 8, 7:25 AM
Unknown Object (File)
Thu, May 7, 7:00 PM

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

Lint
Lint Skipped
Unit
Tests Skipped

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.