summaryrefslogtreecommitdiffstats
path: root/usr.sbin/nsd/query.h
diff options
context:
space:
mode:
authorsthen <sthen@openbsd.org>2015-11-05 21:21:03 +0000
committersthen <sthen@openbsd.org>2015-11-05 21:21:03 +0000
commita65f413bde3dff3df314a3d44b7f74bd439def16 (patch)
tree8345d8aecc39d98d73f1b6aa537083c4cf5b931e /usr.sbin/nsd/query.h
parentnewfs the ext2fs partition containing the boot blocks with -O 1 when running (diff)
downloadwireguard-openbsd-a65f413bde3dff3df314a3d44b7f74bd439def16.tar.xz
wireguard-openbsd-a65f413bde3dff3df314a3d44b7f74bd439def16.zip
update to NSD 4.1.6, ok millert@ florian@
Diffstat (limited to 'usr.sbin/nsd/query.h')
-rw-r--r--usr.sbin/nsd/query.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/usr.sbin/nsd/query.h b/usr.sbin/nsd/query.h
index 4ff21f770c5..a950de3e002 100644
--- a/usr.sbin/nsd/query.h
+++ b/usr.sbin/nsd/query.h
@@ -191,7 +191,7 @@ query_state_type query_process(query_type *q, nsd_type *nsd);
* includes the packet header and question section. Space is reserved
* for the optional EDNS record, if required.
*/
-void query_prepare_response(query_type *q);
+void query_prepare_response(query_type *q, nsd_type* nsd);
/*
* Add EDNS0 information to the response if required.
@@ -209,9 +209,4 @@ query_overflow(query_type *q)
{
return buffer_position(q->packet) > (q->maxlen - q->reserved_space);
}
-static inline int
-query_overflow_nsid(query_type *q, uint16_t nsid_len)
-{
- return buffer_position(q->packet) > (q->maxlen - q->reserved_space - nsid_len);
-}
#endif /* _QUERY_H_ */