Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147871608
D49959.id154124.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
781 B
Referenced Files
None
Subscribers
None
D49959.id154124.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) {
+ 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
Sun, Mar 15, 8:18 AM (37 m, 59 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29708690
Default Alt Text
D49959.id154124.diff (781 B)
Attached To
Mode
D49959: wpa_supplicant: Handle systems without INET (legacy IP) support
Attached
Detach File
Event Timeline
Log In to Comment