mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
Move socket related functions to netmgr/socket.c
Move the netmgr socket related functions from netmgr/netmgr.c and netmgr/uv-compat.c to netmgr/socket.c, so they are all present all in the same place. Adjust the names of couple interal functions accordingly.
This commit is contained in:
@@ -1875,12 +1875,6 @@ isc__nm_closesocket(uv_os_sock_t sock);
|
||||
* Platform independent closesocket() version
|
||||
*/
|
||||
|
||||
isc_result_t
|
||||
isc__nm_socket_freebind(uv_os_sock_t fd, sa_family_t sa_family);
|
||||
/*%<
|
||||
* Set the IP_FREEBIND (or equivalent) socket option on the uv_handle
|
||||
*/
|
||||
|
||||
isc_result_t
|
||||
isc__nm_socket_reuse(uv_os_sock_t fd);
|
||||
/*%<
|
||||
@@ -2160,3 +2154,15 @@ isc__nmsocket_writetimeout_cb(void *data, isc_result_t eresult);
|
||||
isc_error_fatal(__FILE__, __LINE__, "%s failed: %s", #func, \
|
||||
uv_strerror(ret)); \
|
||||
}
|
||||
|
||||
/*
|
||||
* Bind to the socket, but allow binding to IPv6 tentative addresses reported by
|
||||
* the route socket by setting IP_FREEBIND (or equivalent).
|
||||
*/
|
||||
int
|
||||
isc__nm_udp_freebind(uv_udp_t *handle, const struct sockaddr *addr,
|
||||
unsigned int flags);
|
||||
|
||||
int
|
||||
isc__nm_tcp_freebind(uv_tcp_t *handle, const struct sockaddr *addr,
|
||||
unsigned int flags);
|
||||
|
Reference in New Issue
Block a user