summaryrefslogtreecommitdiffstats
path: root/contrib/isc-dhcp/includes/minires/res_update.h
blob: 45a5ac35432e12884c1e9ad4547eebee9afd6e16 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
 * Copyright (c) 1999 by Internet Software Consortium, Inc.
 *
 * Permission to use, copy, modify, and distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
 * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
 * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
 * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
 * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
 * SOFTWARE.
 */

/*
 *	$Id: res_update.h,v 1.2.2.1 2001/05/17 20:47:28 mellon Exp $
 */

#ifndef __RES_UPDATE_H
#define __RES_UPDATE_H

#include <sys/types.h>
#include "arpa/nameser.h"
#include <isc-dhcp/list.h>

/*
 * This RR-like structure is particular to UPDATE.
 */
typedef struct ns_updrec {
	ISC_LINK(struct ns_updrec) r_link, r_glink;
	ns_sect r_section;		/* ZONE/PREREQUISITE/UPDATE */
	char *r_dname;			/* owner of the RR */
	ns_class r_class;		/* class number */
	ns_type r_type;			/* type number */
	u_int32_t r_ttl;		/* time to live */
	const unsigned char *r_data;	/* rdata fields as text string */
	unsigned char *r_data_ephem;	/* pointer to freeable r_data */
	unsigned int r_size;		/* size of r_data field */
	int r_opcode;			/* type of operation */
		/* following fields for private use by the resolver/server
		   routines */
	struct databuf *r_dp;		/* databuf to process */
	struct databuf *r_deldp;	/* databuf's deleted/overwritten */
	unsigned int r_zone;		/* zone number on server */
} ns_updrec;
typedef	ISC_LIST(ns_updrec) ns_updque;

#endif /*__RES_UPDATE_H*/
OpenPOWER on IntegriCloud