xref: /openbsd/usr.sbin/nsd/axfr.h (revision 3d8817e4)
1 /*
2  * axfr.h -- generating AXFR responses.
3  *
4  * Copyright (c) 2001-2006, NLnet Labs. All rights reserved.
5  *
6  * See LICENSE for the license.
7  *
8  */
9 
10 #ifndef _AXFR_H_
11 #define _AXFR_H_
12 
13 #include "nsd.h"
14 #include "query.h"
15 
16 /*
17  * For optimal compression AXFR response packets are limited in size
18  * to MAX_COMPRESSION_OFFSET.
19  */
20 #define AXFR_MAX_MESSAGE_LEN MAX_COMPRESSION_OFFSET
21 
22 query_state_type answer_axfr_ixfr(struct nsd *nsd, struct query *q);
23 query_state_type query_axfr(struct nsd *nsd, struct query *query);
24 
25 #endif /* _AXFR_H_ */
26