1*0Sstevel@tonic-gate /*
2*0Sstevel@tonic-gate  * Copyright (c) 1997-2000 by Sun Microsystems, Inc.
3*0Sstevel@tonic-gate  * All rights reserved.
4*0Sstevel@tonic-gate  */
5*0Sstevel@tonic-gate 
6*0Sstevel@tonic-gate /*
7*0Sstevel@tonic-gate  * Copyright (c) 1996-1999 by Internet Software Consortium.
8*0Sstevel@tonic-gate  *
9*0Sstevel@tonic-gate  * Permission to use, copy, modify, and distribute this software for any
10*0Sstevel@tonic-gate  * purpose with or without fee is hereby granted, provided that the above
11*0Sstevel@tonic-gate  * copyright notice and this permission notice appear in all copies.
12*0Sstevel@tonic-gate  *
13*0Sstevel@tonic-gate  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
14*0Sstevel@tonic-gate  * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
15*0Sstevel@tonic-gate  * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
16*0Sstevel@tonic-gate  * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
17*0Sstevel@tonic-gate  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
18*0Sstevel@tonic-gate  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
19*0Sstevel@tonic-gate  * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
20*0Sstevel@tonic-gate  * SOFTWARE.
21*0Sstevel@tonic-gate  */
22*0Sstevel@tonic-gate 
23*0Sstevel@tonic-gate 
24*0Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
25*0Sstevel@tonic-gate 
26*0Sstevel@tonic-gate /*
27*0Sstevel@tonic-gate  * $Id: dns_p.h,v 1.11 1999/06/03 20:50:36 vixie Exp $
28*0Sstevel@tonic-gate  */
29*0Sstevel@tonic-gate 
30*0Sstevel@tonic-gate #ifndef _DNS_P_H_INCLUDED
31*0Sstevel@tonic-gate #define	_DNS_P_H_INCLUDED
32*0Sstevel@tonic-gate 
33*0Sstevel@tonic-gate #define	maybe_ok(res, nm, ok) (((res)->options & RES_NOCHECKNAME) != 0 || \
34*0Sstevel@tonic-gate 			       (ok)(nm) != 0)
35*0Sstevel@tonic-gate #define maybe_hnok(res, hn) maybe_ok((res), (hn), res_hnok)
36*0Sstevel@tonic-gate #define maybe_dnok(res, dn) maybe_ok((res), (dn), res_dnok)
37*0Sstevel@tonic-gate 
38*0Sstevel@tonic-gate /*
39*0Sstevel@tonic-gate  * Object state.
40*0Sstevel@tonic-gate  */
41*0Sstevel@tonic-gate struct dns_p {
42*0Sstevel@tonic-gate 	void			*hes_ctx;
43*0Sstevel@tonic-gate 	struct __res_state	*res;
44*0Sstevel@tonic-gate 	void                    (*free_res) __P((void *));
45*0Sstevel@tonic-gate };
46*0Sstevel@tonic-gate 
47*0Sstevel@tonic-gate /*
48*0Sstevel@tonic-gate  * Methods.
49*0Sstevel@tonic-gate  */
50*0Sstevel@tonic-gate 
51*0Sstevel@tonic-gate extern struct irs_gr *	irs_dns_gr __P((struct irs_acc *));
52*0Sstevel@tonic-gate extern struct irs_pw *	irs_dns_pw __P((struct irs_acc *));
53*0Sstevel@tonic-gate extern struct irs_sv *	irs_dns_sv __P((struct irs_acc *));
54*0Sstevel@tonic-gate extern struct irs_pr *	irs_dns_pr __P((struct irs_acc *));
55*0Sstevel@tonic-gate extern struct irs_ho *	irs_dns_ho __P((struct irs_acc *));
56*0Sstevel@tonic-gate extern struct irs_nw *	irs_dns_nw __P((struct irs_acc *));
57*0Sstevel@tonic-gate 
58*0Sstevel@tonic-gate #endif /*_DNS_P_H_INCLUDED*/
59