Skip to content
Snippets Groups Projects
Commit 4596f20b authored by Alam Ed Arias's avatar Alam Ed Arias
Browse files

Check for ENODEV for hosts with IPv6 disabled while running in IPv6 mode

parent a203f4e5
No related branches found
No related tags found
No related merge requests found
......@@ -836,6 +836,12 @@ static SOCKET_TYPE UDP_Bind(int family, struct sockaddr *addr, socklen_t addrlen
{
e = errno;
CONS_Alert(CONS_WARNING, M_GetText("Could not register multicast address\n"));
if (e == ENODEV)
{
close(s);
I_OutputMsg("Binding failed: no IPv6 device\n");
return (SOCKET_TYPE)ERRSOCKET;
}
I_OutputMsg("setting IPV6_JOIN_GROUP failed: #%u, %s \n", e, strerror(e));
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment