Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177949768
D49959.1795628946.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
806 B
Referenced Files
None
Subscribers
None
D49959.1795628946.diff
View Options
Index: contrib/wpa/src/drivers/driver_bsd.c
===================================================================
--- contrib/wpa/src/drivers/driver_bsd.c
+++ 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 || errno == EPROTONOSUPPORT) {
+ 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
Wed, Nov 25, 5:49 PM (10 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41995724
Default Alt Text
D49959.1795628946.diff (806 B)
Attached To
Mode
D49959: wpa_supplicant: Handle systems without INET (legacy IP) support
Attached
Detach File
Event Timeline