From 68a1ce3cee7e837f8ee912684a77937efcb75543 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Mon, 2 Apr 2001 07:52:33 +0000 Subject: [PATCH] private structures --- lib/bind/resolv/res_init.c | 3 ++- lib/bind/resolv/res_private.h | 23 +++++++++++++++++++++++ lib/bind/resolv/res_update.c | 3 ++- 3 files changed, 27 insertions(+), 2 deletions(-) diff --git a/lib/bind/resolv/res_init.c b/lib/bind/resolv/res_init.c index 3d05d0b033..4b9dc42a65 100644 --- a/lib/bind/resolv/res_init.c +++ b/lib/bind/resolv/res_init.c @@ -70,7 +70,7 @@ #if defined(LIBC_SCCS) && !defined(lint) static const char sccsid[] = "@(#)res_init.c 8.1 (Berkeley) 6/7/93"; -static const char rcsid[] = "$Id: res_init.c,v 1.1 2001/03/29 06:31:59 marka Exp $"; +static const char rcsid[] = "$Id: res_init.c,v 1.2 2001/04/02 07:52:30 marka Exp $"; #endif /* LIBC_SCCS and not lint */ #include "port_before.h" @@ -93,6 +93,7 @@ static const char rcsid[] = "$Id: res_init.c,v 1.1 2001/03/29 06:31:59 marka Exp #include #include "port_after.h" +#include "res_private.h" /* Options. Should all be left alone. */ #define RESOLVSORT diff --git a/lib/bind/resolv/res_private.h b/lib/bind/resolv/res_private.h index 856f8b8f8a..12950cafc1 100644 --- a/lib/bind/resolv/res_private.h +++ b/lib/bind/resolv/res_private.h @@ -1,2 +1,25 @@ +#ifndef res_private_h +#define res_private_h + +union __res_sockaddr_union { + struct sockaddr_in sin; + struct sockaddr_in6 sin6; + int64_t __align; /* 64bit alignment */ + char __space[128]; /* max size */ +}; + +struct __res_state_ext { + union __res_sockaddr_union nsaddrs[MAXNS]; + struct sort_list { + int af; + union { + struct in_addr ina; + struct in6_addr in6a; + } addr, mask; + } sort_list[MAXRESOLVSORT]; +}; + extern int res_ourserver_p(const res_state statp, const struct sockaddr *sa); + +#endif diff --git a/lib/bind/resolv/res_update.c b/lib/bind/resolv/res_update.c index db40da92e1..d098a68fec 100644 --- a/lib/bind/resolv/res_update.c +++ b/lib/bind/resolv/res_update.c @@ -1,5 +1,5 @@ #if !defined(lint) && !defined(SABER) -static const char rcsid[] = "$Id: res_update.c,v 1.1 2001/03/29 06:31:59 marka Exp $"; +static const char rcsid[] = "$Id: res_update.c,v 1.2 2001/04/02 07:52:33 marka Exp $"; #endif /* not lint */ /* @@ -47,6 +47,7 @@ static const char rcsid[] = "$Id: res_update.c,v 1.1 2001/03/29 06:31:59 marka E #include #include "port_after.h" +#include "res_private.h" /* * Separate a linked list of records into groups so that all records