Deleted Added
full compact
sm_resolve.c (132943) sm_resolve.c (141858)
1/*
1/*
2 * Copyright (c) 2000-2003 Sendmail, Inc. and its suppliers.
2 * Copyright (c) 2000-2004 Sendmail, Inc. and its suppliers.
3 * All rights reserved.
4 *
5 * By using this file, you agree to the terms and conditions set
6 * forth in the LICENSE file which can be found at the top level of
7 * the sendmail distribution.
8 *
9 */
10

--- 30 unchanged lines hidden (view full) ---

41 * SUCH DAMAGE.
42 */
43
44#include <sendmail.h>
45#if DNSMAP
46# if NAMED_BIND
47# include "sm_resolve.h"
48
3 * All rights reserved.
4 *
5 * By using this file, you agree to the terms and conditions set
6 * forth in the LICENSE file which can be found at the top level of
7 * the sendmail distribution.
8 *
9 */
10

--- 30 unchanged lines hidden (view full) ---

41 * SUCH DAMAGE.
42 */
43
44#include <sendmail.h>
45#if DNSMAP
46# if NAMED_BIND
47# include "sm_resolve.h"
48
49SM_RCSID("$Id: sm_resolve.c,v 8.32 2003/03/22 22:57:26 ca Exp $")
49SM_RCSID("$Id: sm_resolve.c,v 8.33 2004/08/04 21:17:57 ca Exp $")
50
51static struct stot
52{
53 const char *st_name;
54 int st_type;
55} stot[] =
56{
57# if NETINET

--- 7 unchanged lines hidden (view full) ---

65 { "PTR", T_PTR },
66 { "MX", T_MX },
67 { "TXT", T_TXT },
68 { "AFSDB", T_AFSDB },
69 { "SRV", T_SRV },
70 { NULL, 0 }
71};
72
50
51static struct stot
52{
53 const char *st_name;
54 int st_type;
55} stot[] =
56{
57# if NETINET

--- 7 unchanged lines hidden (view full) ---

65 { "PTR", T_PTR },
66 { "MX", T_MX },
67 { "TXT", T_TXT },
68 { "AFSDB", T_AFSDB },
69 { "SRV", T_SRV },
70 { NULL, 0 }
71};
72
73static DNS_REPLY_T *parse_dns_reply __P((unsigned char *, int));
74
73/*
74** DNS_STRING_TO_TYPE -- convert resource record name into type
75**
76** Parameters:
77** name -- name of resource record type
78**
79** Returns:
80** type if succeeded.

--- 368 unchanged lines hidden ---
75/*
76** DNS_STRING_TO_TYPE -- convert resource record name into type
77**
78** Parameters:
79** name -- name of resource record type
80**
81** Returns:
82** type if succeeded.

--- 368 unchanged lines hidden ---