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, int wstats); 24 25 #endif /* AXFR_H */ 26