summaryrefslogtreecommitdiffstats
path: root/usr.sbin/nsd/edns.h
diff options
context:
space:
mode:
authorflorian <florian@openbsd.org>2016-10-24 09:44:43 +0000
committerflorian <florian@openbsd.org>2016-10-24 09:44:43 +0000
commitc1e73312a458f25fd5a1e1b0758b325481e8a455 (patch)
tree46814ca605975ccb37db9481af5061a918912dba /usr.sbin/nsd/edns.h
parentfix SEE ALSO; (diff)
downloadwireguard-openbsd-c1e73312a458f25fd5a1e1b0758b325481e8a455.tar.xz
wireguard-openbsd-c1e73312a458f25fd5a1e1b0758b325481e8a455.zip
Update to 4.1.13
Testing millert, brad and myself. OK millert@
Diffstat (limited to 'usr.sbin/nsd/edns.h')
-rw-r--r--usr.sbin/nsd/edns.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/nsd/edns.h b/usr.sbin/nsd/edns.h
index b8643e954e4..9325beb244c 100644
--- a/usr.sbin/nsd/edns.h
+++ b/usr.sbin/nsd/edns.h
@@ -11,6 +11,8 @@
#define _EDNS_H_
#include "buffer.h"
+struct nsd;
+struct query;
#define OPT_LEN 9U /* Length of the NSD EDNS response record minus 2 */
#define OPT_RDATA 2 /* holds the rdata length comes after OPT_LEN */
@@ -42,6 +44,7 @@ struct edns_record
edns_status_type status;
size_t position;
size_t maxlen;
+ size_t opt_reserved_space;
int dnssec_ok;
int nsid;
};
@@ -49,7 +52,8 @@ typedef struct edns_record edns_record_type;
void edns_init_data(edns_data_type *data, uint16_t max_length);
void edns_init_record(edns_record_type *data);
-int edns_parse_record(edns_record_type *data, buffer_type *packet);
+int edns_parse_record(edns_record_type *data, buffer_type *packet,
+ struct query* q, struct nsd* nsd);
/*
* The amount of space to reserve in the response for the EDNS data