Page MenuHomeFreeBSD

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

Authored by zarychtam_plan-b.pwste.edu.pl on Tue, Apr 22, 1:39 PM.
Tags
None
Referenced Files
F115742502: D49959.diff
Mon, Apr 28, 12:15 AM
F115741387: D49959.diff
Sun, Apr 27, 11:53 PM
Unknown Object (File)
Sun, Apr 27, 2:10 AM
Unknown Object (File)
Sat, Apr 26, 6:53 AM
Unknown Object (File)
Wed, Apr 23, 8:48 AM
Unknown Object (File)
Wed, Apr 23, 8:48 AM
Unknown Object (File)
Wed, Apr 23, 8:47 AM
Unknown Object (File)
Wed, Apr 23, 8:44 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

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.Tue, Apr 22, 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.Tue, Apr 22, 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.Tue, Apr 22, 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.Mon, Apr 28, 12:05 AM
This revision was automatically updated to reflect the committed changes.