#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"
#include <netdb.h>
#include "port_after.h"
+#include "res_private.h"
/* Options. Should all be left alone. */
#define RESOLVSORT
+#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
#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 */
/*
#include <isc/list.h>
#include "port_after.h"
+#include "res_private.h"
/*
* Separate a linked list of records into groups so that all records