Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F137998443
D49959.id154367.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
763 B
Referenced Files
None
Subscribers
None
D49959.id154367.diff
View Options
diff --git a/contrib/wpa/src/drivers/driver_bsd.c b/contrib/wpa/src/drivers/driver_bsd.c
--- a/contrib/wpa/src/drivers/driver_bsd.c
+++ b/contrib/wpa/src/drivers/driver_bsd.c
@@ -1800,9 +1800,19 @@
global->sock = socket(PF_INET, SOCK_DGRAM | SOCK_CLOEXEC, 0);
if (global->sock < 0) {
+ if (errno == EAFNOSUPPORT) {
+ wpa_printf(MSG_INFO, "INET not supported, trying INET6...");
+ global->sock = socket(PF_INET6, SOCK_DGRAM | SOCK_CLOEXEC, 0);
+ if (global->sock < 0) {
+ wpa_printf(MSG_ERROR, "socket[PF_INET6,SOCK_DGRAM]: %s",
+ strerror(errno));
+ goto fail1;
+ }
+ } else {
wpa_printf(MSG_ERROR, "socket[PF_INET,SOCK_DGRAM]: %s",
strerror(errno));
goto fail1;
+ }
}
global->route = socket(PF_ROUTE,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 29, 12:37 AM (14 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26310070
Default Alt Text
D49959.id154367.diff (763 B)
Attached To
Mode
D49959: wpa_supplicant: Handle systems without INET (legacy IP) support
Attached
Detach File
Event Timeline
Log In to Comment