Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/dist/bind ISC BIND 8.3.2. various IPv6 fixes and correctins.



details:   https://anonhg.NetBSD.org/src/rev/3700ec8526ab
branches:  trunk
changeset: 533067:3700ec8526ab
user:      itojun <itojun%NetBSD.org@localhost>
date:      Thu Jun 20 10:29:14 2002 +0000

description:
ISC BIND 8.3.2.  various IPv6 fixes and correctins.

diffstat:

 dist/bind/Version                       |     2 +-
 dist/bind/bin/addr/addr.c               |    17 +-
 dist/bind/bin/named-bootconf/test.boot  |    30 +
 dist/bind/bin/nslookup/skip.c           |    27 +-
 dist/bind/include/arpa/nameser_compat.h |     6 +-
 dist/bind/include/isc/eventlib.h        |     6 +-
 dist/bind/include/isc/irpmarshall.h     |     7 +-
 dist/bind/include/isc/memcluster.h      |     4 +-
 dist/bind/include/netgroup.h            |    19 +
 dist/bind/lib/bsd/daemon.c              |     4 +-
 dist/bind/lib/bsd/ftruncate.c           |     4 +-
 dist/bind/lib/bsd/gettimeofday.c        |     4 +-
 dist/bind/lib/bsd/mktemp.c              |     4 +-
 dist/bind/lib/bsd/putenv.c              |     4 +-
 dist/bind/lib/bsd/readv.c               |     4 +-
 dist/bind/lib/bsd/setenv.c              |     4 +-
 dist/bind/lib/bsd/setitimer.c           |     4 +-
 dist/bind/lib/bsd/strcasecmp.c          |     4 +-
 dist/bind/lib/bsd/strdup.c              |     2 +
 dist/bind/lib/bsd/strerror.c            |    22 +-
 dist/bind/lib/bsd/strpbrk.c             |     4 +-
 dist/bind/lib/bsd/strsep.c              |     4 +-
 dist/bind/lib/bsd/strtoul.c             |     4 +-
 dist/bind/lib/bsd/utimes.c              |     2 +
 dist/bind/lib/bsd/writev.c              |     4 +-
 dist/bind/lib/inet/inet_addr.c          |    15 +-
 dist/bind/lib/inet/inet_cidr_ntop.c     |   168 ++-
 dist/bind/lib/inet/inet_data.c          |    46 +
 dist/bind/lib/inet/inet_net_pton.c      |   274 ++++-
 dist/bind/lib/inet/inet_network.c       |    11 +-
 dist/bind/lib/inet/inet_pton.c          |     8 +-
 dist/bind/lib/irs/dns_gr.c              |    17 +-
 dist/bind/lib/irs/dns_nw.c              |    81 +-
 dist/bind/lib/irs/dns_pr.c              |    15 +-
 dist/bind/lib/irs/dns_pw.c              |     7 +-
 dist/bind/lib/irs/gai_strerror.c        |   119 +-
 dist/bind/lib/irs/gen_ho.c              |    52 +-
 dist/bind/lib/irs/gen_ng.c              |    11 +-
 dist/bind/lib/irs/gen_p.h               |     6 +-
 dist/bind/lib/irs/getaddrinfo.c         |  1581 ++++++++++++++++++++++--------
 dist/bind/lib/irs/getgrent.c            |    16 +-
 dist/bind/lib/irs/getgrent_r.c          |    26 +-
 dist/bind/lib/irs/getnetent_r.c         |    44 +-
 dist/bind/lib/irs/getnetgrent.c         |     8 +-
 dist/bind/lib/irs/getnetgrent_r.c       |    45 +-
 dist/bind/lib/irs/getprotoent.c         |     5 +-
 dist/bind/lib/irs/getprotoent_r.c       |    39 +-
 dist/bind/lib/irs/getpwent_r.c          |    42 +-
 dist/bind/lib/irs/getservent.c          |     5 +-
 dist/bind/lib/irs/getservent_r.c        |    39 +-
 dist/bind/lib/irs/irp_gr.c              |     9 +-
 dist/bind/lib/irs/irp_ho.c              |    17 +-
 dist/bind/lib/irs/irp_ng.c              |    16 +-
 dist/bind/lib/irs/irp_pw.c              |     6 +-
 dist/bind/lib/irs/lcl_gr.c              |     8 +-
 dist/bind/lib/irs/lcl_ho.c              |    79 +-
 dist/bind/lib/irs/lcl_ng.c              |    18 +-
 dist/bind/lib/irs/lcl_nw.c              |     6 +-
 dist/bind/lib/irs/lcl_pw.c              |     6 +-
 dist/bind/lib/irs/lcl_sv.c              |    17 +-
 dist/bind/lib/irs/nis_gr.c              |     9 +-
 dist/bind/lib/irs/nis_ho.c              |    83 +-
 dist/bind/lib/irs/nis_ng.c              |    20 +-
 dist/bind/lib/irs/nis_nw.c              |    10 +-
 dist/bind/lib/irs/nis_pr.c              |    25 +-
 dist/bind/lib/irs/nis_pw.c              |    11 +-
 dist/bind/lib/irs/nis_sv.c              |     7 +-
 dist/bind/lib/irs/nul_ng.c              |    25 +-
 dist/bind/lib/isc/assertions.c          |    15 +-
 dist/bind/lib/isc/bitncmp.c             |     8 +-
 dist/bind/lib/isc/ctl_p.h               |     6 +-
 dist/bind/lib/isc/ev_streams.c          |    14 +-
 dist/bind/lib/isc/hex.c                 |   118 ++
 dist/bind/lib/isc/tree.c                |    22 +-
 dist/bind/lib/nameser/ns_date.c         |     6 +-
 dist/bind/lib/resolv/herror.c           |    20 +-
 dist/bind/lib/resolv/res_mkquery.c      |    65 +-
 dist/bind/lib/resolv/res_private.h      |    23 +
 78 files changed, 2721 insertions(+), 824 deletions(-)

diffs (truncated from 5988 to 300 lines):

diff -r ec0c84c44528 -r 3700ec8526ab dist/bind/Version
--- a/dist/bind/Version Thu Jun 20 10:07:42 2002 +0000
+++ b/dist/bind/Version Thu Jun 20 10:29:14 2002 +0000
@@ -1,1 +1,1 @@
-8.2.4-REL
+8.3.2-REL
diff -r ec0c84c44528 -r 3700ec8526ab dist/bind/bin/addr/addr.c
--- a/dist/bind/bin/addr/addr.c Thu Jun 20 10:07:42 2002 +0000
+++ b/dist/bind/bin/addr/addr.c Thu Jun 20 10:29:14 2002 +0000
@@ -1,7 +1,7 @@
-/*     $NetBSD: addr.c,v 1.1.1.1 1999/11/20 18:53:58 veego Exp $       */
+/*     $NetBSD: addr.c,v 1.1.1.2 2002/06/20 10:29:24 itojun Exp $      */
 
 #if !defined(lint) && !defined(SABER)
-static const char rcsid[] = "Id: addr.c,v 8.8 1999/10/13 16:38:55 vixie Exp";
+static const char rcsid[] = "Id: addr.c,v 8.9 2002/05/21 02:26:21 marka Exp";
 #endif /* not lint */
 
 /*
@@ -49,11 +49,7 @@
 
 /* Warning: this scribbles on `dst' even if it's going to return `0'. */
 static int
-hexstring(src, dst, len)
-       const char *src;
-       u_char *dst;
-       int len;
-{
+hexstring(const char *src, u_char *dst, int len) {
        static const char xdigits[] = "0123456789abcdef";
        u_char *ptr = dst, *end = dst + len;
        u_int val;
@@ -102,12 +98,7 @@
 }
 
 static void
-display(input, af, addr, len)
-       const char *input;
-       int af;
-       const u_char *addr;
-       int len;
-{
+display(const char *input, int af, const u_char *addr, int len) {
        static int before = 0;
        char p[sizeof "xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:255.255.255.255"];
        int i;
diff -r ec0c84c44528 -r 3700ec8526ab dist/bind/bin/named-bootconf/test.boot
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/dist/bind/bin/named-bootconf/test.boot    Thu Jun 20 10:29:14 2002 +0000
@@ -0,0 +1,30 @@
+directory /var/named
+forwarders 1.2.3.4 1.2.3.5
+limit datasize 10000000
+limit files 1000
+limit transfers-in 100
+limit transfers-per-ns 20
+; no-round-robin in HP specific
+options no-round-robin fake-iquery forward-only no-fetch-glue no-recursion
+slave
+tcplist 10.0.0.1
+xfrnets 10.0.0.2
+cache .        rootservers
+primary example.net example.net.db
+secondary example.com 127.0.0.1 example.com.db
+stub example.org 127.0.0.1 example.org.db
+primary/IN example.net example.net.db
+secondary/IN example.com 127.0.0.1 example.com.db
+stub/IN example.org 127.0.0.1 example.org.db
+secondary/IN example.com 127.0.0.1
+stub/IN example.org 127.0.0.1
+primary/CHAOS example.net example.net.db
+secondary/CHAOS example.com 127.0.0.1 example.com.db
+stub/CHAOS example.org 127.0.0.1 example.org.db
+secondary/CHAOS example.com 127.0.0.1
+stub/CHAOS example.org 127.0.0.1
+primary/HS example.net example.net.db
+secondary/HS example.com 127.0.0.1 example.com.db
+stub/HS example.org 127.0.0.1 example.org.db
+secondary/HS example.com 127.0.0.1
+stub/HS example.org 127.0.0.1
diff -r ec0c84c44528 -r 3700ec8526ab dist/bind/bin/nslookup/skip.c
--- a/dist/bind/bin/nslookup/skip.c     Thu Jun 20 10:07:42 2002 +0000
+++ b/dist/bind/bin/nslookup/skip.c     Thu Jun 20 10:29:14 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: skip.c,v 1.1.1.1 1999/11/20 18:54:02 veego Exp $       */
+/*     $NetBSD: skip.c,v 1.1.1.2 2002/06/20 10:30:07 itojun Exp $      */
 
 /*
  * Copyright (c) 1985, 1989
@@ -55,7 +55,7 @@
 
 #ifndef lint
 static const char sccsid[] = "@(#)skip.c       5.12 (Berkeley) 3/21/91";
-static const char rcsid[] = "Id: skip.c,v 8.5 1999/10/13 16:39:20 vixie Exp";
+static const char rcsid[] = "Id: skip.c,v 8.7 2001/06/20 12:30:35 marka Exp";
 #endif /* not lint */
 
 /*
@@ -86,8 +86,9 @@
 #include <stdio.h>
 
 #include "port_after.h"
+#include "res.h"
 
-char *res_skip_rr();
+static unsigned char *res_skip_rr(unsigned char *cp, unsigned char *eom);
 
 
 /*
@@ -111,13 +112,13 @@
  *******************************************************************************
  */
 
-char *
+unsigned char *
 res_skip(msg, numFieldsToSkip, eom)
-       char *msg;
+       unsigned char *msg;
        int numFieldsToSkip;
-       char *eom;
+       unsigned char *eom;
 {
-       register char *cp;
+       register unsigned char *cp;
        register HEADER *hp;
        register int tmp;
        register int n;
@@ -134,7 +135,7 @@
        n = ntohs(hp->qdcount);
        if (n > 0) {
                while (--n >= 0 && cp < eom) {
-                       tmp = dn_skipname((u_char *)cp, (u_char *)eom);
+                       tmp = dn_skipname(cp, eom);
                        if (tmp == -1) return(NULL);
                        cp += tmp;
                        cp += INT16SZ;  /* type         */
@@ -195,15 +196,15 @@
  *******************************************************************************
  */
 
-char *
+static unsigned char *
 res_skip_rr(cp, eom)
-       char *cp;
-       char *eom;
+       unsigned char *cp;
+       unsigned char *eom;
 {
        int tmp;
        int dlen;
 
-       if ((tmp = dn_skipname((u_char *)cp, (u_char *)eom)) == -1)
+       if ((tmp = dn_skipname(cp, eom)) == -1)
                return (NULL);                  /* compression error */
        cp += tmp;
        if ((cp + RRFIXEDSZ) > eom)
@@ -211,7 +212,7 @@
        cp += INT16SZ;  /*      type    */
        cp += INT16SZ;  /*      class   */
        cp += INT32SZ;  /*      ttl     */
-       dlen = ns_get16((u_char*)cp);
+       dlen = ns_get16(cp);
        cp += INT16SZ;  /*      dlen    */
        cp += dlen;
        if (cp > eom)
diff -r ec0c84c44528 -r 3700ec8526ab dist/bind/include/arpa/nameser_compat.h
--- a/dist/bind/include/arpa/nameser_compat.h   Thu Jun 20 10:07:42 2002 +0000
+++ b/dist/bind/include/arpa/nameser_compat.h   Thu Jun 20 10:29:14 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nameser_compat.h,v 1.1.1.1 1999/11/20 18:54:04 veego Exp $     */
+/*     $NetBSD: nameser_compat.h,v 1.1.1.2 2002/06/20 10:30:11 itojun Exp $    */
 
 /* Copyright (c) 1983, 1989
  *    The Regents of the University of California.  All rights reserved.
@@ -34,7 +34,7 @@
 
 /*
  *      from nameser.h 8.1 (Berkeley) 6/2/93
- *     Id: nameser_compat.h,v 8.11 1999/01/02 08:00:58 vixie Exp
+ *     Id: nameser_compat.h,v 8.14 2002/05/18 01:39:11 marka Exp
  */
 
 #ifndef _ARPA_NAMESER_COMPAT_
@@ -66,6 +66,7 @@
     defined(apollo) || defined(__convex__) || defined(_CRAY) || \
     defined(__hppa) || defined(__hp9000) || \
     defined(__hp9000s300) || defined(__hp9000s700) || \
+    defined(__hp3000s900) || defined(__hpux) || defined(MPE) || \
     defined (BIT_ZERO_ON_LEFT) || defined(m68k) || \
     (defined(__Lynx__) && \
      (defined(__68k__) || defined(__sparc__) || defined(__powerpc__)))
@@ -209,6 +210,7 @@
 #define        T_SRV           ns_t_srv
 #define T_ATMA         ns_t_atma
 #define T_NAPTR                ns_t_naptr
+#define T_A6           ns_t_a6
 #define        T_TSIG          ns_t_tsig
 #define        T_IXFR          ns_t_ixfr
 #define T_AXFR         ns_t_axfr
diff -r ec0c84c44528 -r 3700ec8526ab dist/bind/include/isc/eventlib.h
--- a/dist/bind/include/isc/eventlib.h  Thu Jun 20 10:07:42 2002 +0000
+++ b/dist/bind/include/isc/eventlib.h  Thu Jun 20 10:29:14 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: eventlib.h,v 1.1.1.1 1999/11/20 18:54:03 veego Exp $   */
+/*     $NetBSD: eventlib.h,v 1.1.1.2 2002/06/20 10:30:11 itojun Exp $  */
 
 /*
  * Copyright (c) 1995-1999 by Internet Software Consortium
@@ -20,7 +20,7 @@
 /* eventlib.h - exported interfaces for eventlib
  * vix 09sep95 [initial]
  *
- * Id: eventlib.h,v 1.22 1999/08/18 22:09:04 vixie Exp
+ * Id: eventlib.h,v 1.23 2001/05/29 05:47:09 marka Exp
  */
 
 #ifndef _EVENTLIB_H
@@ -108,7 +108,7 @@
 
 int evListen __P((evContext ctx, int fd, int maxconn,
                  evConnFunc func, void *uap, evConnID *id));
-int evConnect __P((evContext ctx, int fd, void *ra, int ralen,
+int evConnect __P((evContext ctx, int fd, const void *ra, int ralen,
                   evConnFunc func, void *uap, evConnID *id));
 int evCancelConn __P((evContext ctx, evConnID id));
 int evHold __P((evContext, evConnID));
diff -r ec0c84c44528 -r 3700ec8526ab dist/bind/include/isc/irpmarshall.h
--- a/dist/bind/include/isc/irpmarshall.h       Thu Jun 20 10:07:42 2002 +0000
+++ b/dist/bind/include/isc/irpmarshall.h       Thu Jun 20 10:29:14 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: irpmarshall.h,v 1.1.1.1 1999/11/20 18:54:03 veego Exp $        */
+/*     $NetBSD: irpmarshall.h,v 1.1.1.2 2002/06/20 10:30:11 itojun Exp $       */
 
 /*
  * Copyright (c) 1999 by Internet Software Consortium.
@@ -18,7 +18,7 @@
  */
 
 /*
- * Id: irpmarshall.h,v 8.1 1999/01/18 07:46:47 vixie Exp
+ * Id: irpmarshall.h,v 8.2 2001/05/29 05:47:10 marka Exp
  */
 
 #ifndef _IRPMARSHALL_H_INCLUDED
@@ -59,7 +59,8 @@
 int irp_unmarshall_ho(struct hostent *ho, char *buffer);
 int irp_marshall_ng(const char *host, const char *user, const char *domain,
                    char **buffer, size_t *len);
-int irp_unmarshall_ng(char **host, char **user, char **domain, char *buffer);
+int irp_unmarshall_ng(const char **host, const char **user,
+                     const char **domain, char *buffer);
 int irp_marshall_nw(struct nwent *ne, char **buffer, size_t *len);
 int irp_unmarshall_nw(struct nwent *ne, char *buffer);
 int irp_marshall_ne(struct netent *ne, char **buffer, size_t *len);
diff -r ec0c84c44528 -r 3700ec8526ab dist/bind/include/isc/memcluster.h
--- a/dist/bind/include/isc/memcluster.h        Thu Jun 20 10:07:42 2002 +0000
+++ b/dist/bind/include/isc/memcluster.h        Thu Jun 20 10:29:14 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: memcluster.h,v 1.1.1.1 1999/11/20 18:54:03 veego Exp $ */
+/*     $NetBSD: memcluster.h,v 1.1.1.2 2002/06/20 10:30:11 itojun Exp $        */
 
 /*
  * Copyright (c) 1997,1999 by Internet Software Consortium.
@@ -36,6 +36,7 @@
 #endif /*MEMCLUSTER_RECORD*/
 #endif /*MEMCLUSTER_DEBUG*/
 #define memstats       __memstats
+#define memactive      __memactive
 
 int    meminit(size_t, size_t);
 void * __memget(size_t);
@@ -45,5 +46,6 @@
 void * __memget_record(size_t, const char *, int);
 void   __memput_record(void *, size_t, const char *, int);
 void   memstats(FILE *);
+int    memactive(void);
 
 #endif /* MEMCLUSTER_H */
diff -r ec0c84c44528 -r 3700ec8526ab dist/bind/include/netgroup.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/dist/bind/include/netgroup.h      Thu Jun 20 10:29:14 2002 +0000
@@ -0,0 +1,19 @@
+/*     $NetBSD: netgroup.h,v 1.1.1.1 2002/06/20 10:30:09 itojun Exp $  */
+
+#ifndef netgroup_h
+#define netgroup_h
+
+int getnetgrent(const char **machinep, const char **userp,
+               const char **domainp);
+
+int getnetgrent_r(char **machinep, char **userp, char **domainp,
+                 char *buffer, int buflen);
+
+void setnetgrent(const char *netgroup);
+
+void endnetgrent(void);
+
+int innetgr(const char *netgroup, const char *machine,
+           const char *user, const char *domain);
+



Home | Main Index | Thread Index | Old Index