/*
* Copyright (c) 2000-2001 Proofpoint, Inc. and its suppliers.
* All rights reserved.
*
* By using this file, you agree to the terms and conditions set
* forth in the LICENSE file which can be found at the top level of
* the sendmail distribution.
*
*/
/*
* Copyright (c) 1995, 1996, 1997, 1998, 1999 Kungliga Tekniska H�gskolan
* (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
*
* 3. Neither the name of the Institute nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
/* $Id: sm_resolve.h,v 8.9 2013-11-22 20:51:56 ca Exp $ */
#if DNSMAP
# ifndef __ROKEN_RESOLVE_H__
# define __ROKEN_RESOLVE_H__
# ifndef T_TXT
# endif /* ! T_TXT */
# ifndef T_AFSDB
# endif /* ! T_AFSDB */
# ifndef T_SRV
# endif /* ! T_SRV */
# ifndef T_NAPTR
# endif /* ! T_NAPTR */
typedef struct
{
char *dns_q_domain;
unsigned int dns_q_type;
unsigned int dns_q_class;
} DNS_QUERY_T;
typedef struct
{
unsigned int mx_r_preference;
} MX_RECORD_T;
typedef struct
{
unsigned int srv_r_priority;
unsigned int srv_r_weight;
unsigned int srv_r_port;
struct resource_record
{
char *rr_domain;
unsigned int rr_type;
unsigned int rr_class;
unsigned int rr_ttl;
unsigned int rr_size;
union
{
void *rr_data;
# if NETINET
# endif /* NETINET */
# if NETINET6
# endif /* NETINET6 */
char *rr_txt;
} rr_u;
};
# endif /* !defined(T_A) && !defined(T_AAAA) */
typedef struct
{
} DNS_REPLY_T;
extern int dns_string_to_type __P((const char *));
extern const char *dns_type_to_string __P((int));
int,
int,
int));
# if 0
const char *type_name,
int retry));
# endif /* 0 */
# endif /* ! __ROKEN_RESOLVE_H__ */
#endif /* DNSMAP */