summaryrefslogtreecommitdiffstats
path: root/usr.sbin/nsd/nsd.h
diff options
context:
space:
mode:
authorflorian <florian@openbsd.org>2020-05-14 06:08:40 +0000
committerflorian <florian@openbsd.org>2020-05-14 06:08:40 +0000
commit308d25095010cc66b1b67286e27e62e265360b59 (patch)
treed0eade07702d4b6112c7bd5e4ffd7908f5029c74 /usr.sbin/nsd/nsd.h
parentWe forgot to keep ChangeLog in sync in previous updates. (diff)
downloadwireguard-openbsd-308d25095010cc66b1b67286e27e62e265360b59.tar.xz
wireguard-openbsd-308d25095010cc66b1b67286e27e62e265360b59.zip
Update to 4.3.1
Testing & OK sthen
Diffstat (limited to 'usr.sbin/nsd/nsd.h')
-rw-r--r--usr.sbin/nsd/nsd.h32
1 files changed, 28 insertions, 4 deletions
diff --git a/usr.sbin/nsd/nsd.h b/usr.sbin/nsd/nsd.h
index 0cee8c87fc6..9f460494207 100644
--- a/usr.sbin/nsd/nsd.h
+++ b/usr.sbin/nsd/nsd.h
@@ -11,12 +11,21 @@
#define _NSD_H_
#include <signal.h>
+#include <net/if.h>
+#ifndef IFNAMSIZ
+# ifdef IF_NAMESIZE
+# define IFNAMSIZ IF_NAMESIZE
+# else
+# define IFNAMSIZ 16
+# endif
+#endif
#ifdef HAVE_OPENSSL_SSL_H
#include <openssl/ssl.h>
#endif
#include "dns.h"
#include "edns.h"
+#include "bitset.h"
struct netio_handler;
struct nsd_options;
struct udb_base;
@@ -111,6 +120,7 @@ typedef unsigned long stc_type;
#endif /* USE_ZONE_STATS */
#define NSD_SOCKET_IS_OPTIONAL (1<<0)
+#define NSD_BIND_DEVICE (1<<1)
struct nsd_addrinfo
{
@@ -123,14 +133,22 @@ struct nsd_addrinfo
struct nsd_socket
{
- struct nsd_addrinfo addr;
- int s;
- int flags;
+ struct nsd_addrinfo addr;
+ int s;
+ int flags;
+ struct nsd_bitset *servers;
+ char device[IFNAMSIZ];
+ int fib;
};
struct nsd_child
{
- /* The type of child process (UDP or TCP handler). */
+#ifdef HAVE_CPUSET_T
+ /* Processor(s) that child process must run on (if applicable). */
+ cpuset_t *cpuset;
+#endif
+
+ /* The type of child process (UDP or TCP handler). */
int kind;
/* The child's process id. */
@@ -223,6 +241,12 @@ struct nsd
unsigned char *nsid;
uint8_t file_rotation_ok;
+#ifdef HAVE_CPUSET_T
+ int use_cpu_affinity;
+ cpuset_t* cpuset;
+ cpuset_t* xfrd_cpuset;
+#endif
+
/* number of interfaces */
size_t ifs;
/* non0 if so_reuseport is in use, if so, tcp, udp array increased */