2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

Add SO_REUSEPORT and SO_INCOMING_CPU helper functions

The setting of SO_REUSE**** and SO_INCOMING_CPU have been moved into a
separate helper functions.
This commit is contained in:
Ondřej Surý
2020-10-05 10:40:02 +02:00
committed by Ondřej Surý
parent 1567524a4f
commit 5daaca7146
3 changed files with 75 additions and 37 deletions

View File

@@ -838,3 +838,15 @@ isc__nm_socket_freebind(const uv_handle_t *handle);
/*%<
* Set the IP_FREEBIND (or equivalent) socket option on the uv_handle
*/
isc_result_t
isc__nm_socket_reuseport(uv_os_fd_t fd);
/*%<
* Set the SO_REUSEPORT (or equivalent) socket option on the fd
*/
isc_result_t
isc__nm_socket_incoming_cpu(uv_os_fd_t fd);
/*%<
* Set the SO_INCOMING_CPU socket option on the fd if available
*/