summaryrefslogtreecommitdiff
path: root/usr.sbin/nsd/axfr.h
blob: 105cd5362d5b334b146e13e4a395a9b7440ac2ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
 * axfr.h -- generating AXFR responses.
 *
 * Copyright (c) 2001-2006, NLnet Labs. All rights reserved.
 *
 * See LICENSE for the license.
 *
 */

#ifndef _AXFR_H_
#define _AXFR_H_

#include "nsd.h"
#include "query.h"

/*
 * For optimal compression AXFR response packets are limited in size
 * to MAX_COMPRESSION_OFFSET.
 */
#define AXFR_MAX_MESSAGE_LEN MAX_COMPRESSION_OFFSET

query_state_type answer_axfr_ixfr(struct nsd *nsd, struct query *q);
query_state_type query_axfr(struct nsd *nsd, struct query *query, int wstats);

#endif /* _AXFR_H_ */