summaryrefslogtreecommitdiff
path: root/usr.sbin/nsd/xfrd.h
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2018-02-03 11:03:52 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2018-02-03 11:03:52 +0000
commit7554e56919c839851151dd78afa580e9865622fb (patch)
tree57de8cf568d888e75a29dd9e941bea0b6df4cd56 /usr.sbin/nsd/xfrd.h
parent04b3bea92c67829c63a671148d6880d30903ceec (diff)
Update nsd to 4.1.19.
OK sthen@, "so far so good" millert@ Obligatory commit from 33,000 ft.
Diffstat (limited to 'usr.sbin/nsd/xfrd.h')
-rw-r--r--usr.sbin/nsd/xfrd.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/usr.sbin/nsd/xfrd.h b/usr.sbin/nsd/xfrd.h
index 44e7ba1795a..c58780c7065 100644
--- a/usr.sbin/nsd/xfrd.h
+++ b/usr.sbin/nsd/xfrd.h
@@ -136,7 +136,7 @@ struct xfrd_soa {
uint32_t retry;
uint32_t expire;
uint32_t minimum;
-};
+} ATTR_PACKED;
/*
@@ -219,7 +219,7 @@ struct xfrd_zone {
valid if msg_seq_nr nonzero */
int multi_master_first_master; /* >0: first check master_num */
int multi_master_update_check; /* -1: not update >0: last update master_num */
-};
+} ATTR_PACKED;
enum xfrd_packet_result {
xfrd_packet_bad, /* drop the packet/connection */
@@ -239,10 +239,10 @@ enum xfrd_packet_result {
Note that also some sockets are used for writing the ixfr.db, xfrd.state
files and for the pipes to the main parent process.
*/
-#define XFRD_MAX_TCP 32 /* max number of TCP AXFR/IXFR concurrent connections.*/
+#define XFRD_MAX_TCP 128 /* max number of TCP AXFR/IXFR concurrent connections.*/
/* Each entry has 64Kb buffer preallocated.*/
-#define XFRD_MAX_UDP 64 /* max number of UDP sockets at a time for IXFR */
-#define XFRD_MAX_UDP_NOTIFY 64 /* max concurrent UDP sockets for NOTIFY */
+#define XFRD_MAX_UDP 128 /* max number of UDP sockets at a time for IXFR */
+#define XFRD_MAX_UDP_NOTIFY 128 /* max concurrent UDP sockets for NOTIFY */
#define XFRD_TRANSFER_TIMEOUT_START 10 /* empty zone timeout is between x and 2*x seconds */
#define XFRD_TRANSFER_TIMEOUT_MAX 86400 /* empty zone timeout max expbackoff */
@@ -300,7 +300,8 @@ int xfrd_send_udp(struct acl_options* acl, buffer_type* packet,
/*
* read from udp port packet into buffer, returns 0 on failure
*/
-int xfrd_udp_read_packet(buffer_type* packet, int fd);
+int xfrd_udp_read_packet(buffer_type* packet, int fd, struct sockaddr* src,
+ socklen_t* srclen);
/*
* Release udp socket that a zone is using