* autoload.cc (GetExtendedTcpTable): Define.
* fhandler_socket.cc (address_in_use): Take const struct sockaddr pointer as argument. Implement additional AF_INET6 table check. (fhandler_socket::bind): Drop AF_INET test before calling address_in_use. * net.cc (ipv4_getnameinfo): Return EAI_FAMILY instead of 1 if called with unsupported af_family.
This commit is contained in:
@@ -3765,7 +3765,7 @@ ipv4_getnameinfo (const struct sockaddr *sa, socklen_t salen,
|
||||
#endif
|
||||
|
||||
default:
|
||||
return (1);
|
||||
return (EAI_FAMILY);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user