]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
private structures
authorMark Andrews <marka@isc.org>
Mon, 2 Apr 2001 07:52:33 +0000 (07:52 +0000)
committerMark Andrews <marka@isc.org>
Mon, 2 Apr 2001 07:52:33 +0000 (07:52 +0000)
lib/bind/resolv/res_init.c
lib/bind/resolv/res_private.h
lib/bind/resolv/res_update.c

index 3d05d0b0335a28131c893b8045512ba754ea3e03..4b9dc42a65378d8be768ee13fa9077effacc01c8 100644 (file)
@@ -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 <netdb.h>
 
 #include "port_after.h"
+#include "res_private.h"
 
 /* Options.  Should all be left alone. */
 #define RESOLVSORT
index 856f8b8f8a1112b205a92e40b92ab9000360699f..12950cafc17d08c7c681f242c1006daa91d66b94 100644 (file)
@@ -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
index db40da92e171a54649d982531197dd9957919c70..d098a68fecb625163e70b198c309f8f8b3842c2c 100644 (file)
@@ -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 <isc/list.h>
 
 #include "port_after.h"
+#include "res_private.h"
 
 /*
  * Separate a linked list of records into groups so that all records