Source-Changes-HG archive

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

[src/netbsd-1-5]: src/dist/bind Pull up revision 1.1 (requested by itojun):



details:   https://anonhg.NetBSD.org/src/rev/1dc57714420f
branches:  netbsd-1-5
changeset: 493181:1dc57714420f
user:      he <he%NetBSD.org@localhost>
date:      Mon Jul 01 17:14:59 2002 +0000

description:
Pull up revision 1.1 (requested by itojun):
  Update BIND to version 8.3.3.

diffstat:

 dist/bind/bin/named-bootconf/test.boot |   30 ++++++++
 dist/bind/include/netgroup.h           |   19 +++++
 dist/bind/lib/bsd/Makefile             |   93 ++++++++++++++++++++++++++
 dist/bind/lib/inet/inet_data.c         |   46 ++++++++++++
 dist/bind/lib/isc/hex.c                |  118 +++++++++++++++++++++++++++++++++
 dist/bind/lib/resolv/res_private.h     |   23 ++++++
 6 files changed, 329 insertions(+), 0 deletions(-)

diffs (truncated from 353 to 300 lines):

diff -r f7316703c655 -r 1dc57714420f 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    Mon Jul 01 17:14:59 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 f7316703c655 -r 1dc57714420f dist/bind/include/netgroup.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/dist/bind/include/netgroup.h      Mon Jul 01 17:14:59 2002 +0000
@@ -0,0 +1,19 @@
+/*     $NetBSD: netgroup.h,v 1.1.1.1.4.2 2002/07/01 17:15:00 he 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);
+
+#endif
diff -r f7316703c655 -r 1dc57714420f dist/bind/lib/bsd/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/dist/bind/lib/bsd/Makefile        Mon Jul 01 17:14:59 2002 +0000
@@ -0,0 +1,93 @@
+# Copyright (c) 1996,1999 by Internet Software Consortium
+#
+# Permission to use, copy, modify, and distribute this software for any
+# purpose with or without fee is hereby granted, provided that the above
+# copyright notice and this permission notice appear in all copies.
+#
+# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
+# ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
+# OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
+# CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
+# DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
+# PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
+# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
+# SOFTWARE.
+
+# $Id: Makefile,v 1.1.1.1.4.2 2002/07/01 17:15:00 he Exp $
+
+# these are only appropriate for BSD 4.4 or derivatives, and are used in
+# development.  normal builds will be done in the top level directory and
+# this Makefile will be invoked with a lot of overrides for the following:
+SYSTYPE= freebsd
+DESTDIR =
+DESTLIB = /usr/local/lib
+O=o
+A=a
+CC= cc
+LD= ld
+SHELL= /bin/sh
+CDEBUG= -g -Wall
+TOP= ../..
+INCL = ${TOP}/include
+PORTINCL = ${TOP}/port/${SYSTYPE}/include
+LIBBIND = ${TOP}/lib/libbind.${A}
+LIBBINDR = ../${TOP}/lib/libbind_r.${A}
+CFLAGS=        ${CDEBUG}
+CPPFLAGS= -I${PORTINCL} -I${INCL}
+LD_LIBFLAGS= -x -r
+AR= ar cru
+RANLIB= ranlib
+INSTALL= install
+INSTALL_EXEC=
+INSTALL_LIB=-o bin -g bin
+THREADED= threaded
+
+SRCS=  daemon.c mktemp.c strcasecmp.c strerror.c strpbrk.c \
+       strsep.c strtoul.c putenv.c setenv.c setitimer.c \
+       strdup.c readv.c writev.c ftruncate.c \
+       gettimeofday.c utimes.c
+
+OBJS=  daemon.${O} mktemp.${O} strcasecmp.${O} strerror.${O} strpbrk.${O} \
+       strsep.${O} strtoul.${O} putenv.${O} setenv.${O} setitimer.${O} \
+       strdup.${O} readv.${O} writev.${O} ftruncate.${O} \
+       gettimeofday.${O} utimes.${O}
+
+all: ${LIBBIND}
+
+${LIBBIND}: ${OBJS}
+       ( cd ${THREADED} ; \
+       ${AR} ${LIBBINDR} ${ARPREF} ${OBJS} ${ARSUFF} ; \
+       ${RANLIB} ${LIBBIND} )
+       ${AR} ${LIBBIND} ${ARPREF} ${OBJS} ${ARSUFF}
+       ${RANLIB} ${LIBBIND}
+
+.c.${O}:
+       if test ! -d ${THREADED} ; then mkdir ${THREADED} ; else true ; fi
+       ${CC} ${CPPFLAGS} ${CFLAGS} ${BOUNDS} ${REENTRANT} -c $*.c \
+        -o ${THREADED}/$*.${O}
+       -${LDS} ${LD} ${LD_LIBFLAGS} ${THREADED}/$*.${O} -o ${THREADED}/$*.out && \
+        ${LDS} mv ${THREADED}/$*.out ${THREADED}/$*.${O}
+       ${CC} ${CPPFLAGS} ${CFLAGS} ${BOUNDS} -c $*.c
+       -${LDS} ${LD} ${LD_LIBFLAGS} $*.${O} -o $*.out && \
+        ${LDS} mv $*.out $*.${O}
+
+distclean: clean
+
+clean: FRC
+       rm -f .depend a.out core ${LIB} tags
+       rm -f *.${O} *.BAK *.CKP *~
+       rm -f ${THREADED}/*.${O}
+       -if test -d ${THREADED} ; then rmdir ${THREADED}; else true; fi
+
+depend: FRC
+       mkdep -I${INCL} -I${PORTINCL} ${CPPFLAGS} ${SRCS}
+
+links: FRC
+       @set -e; ln -s SRC/*.[ch] .
+
+install:
+
+FRC:
+
+# DO NOT DELETE THIS LINE -- mkdep uses it.
+# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
diff -r f7316703c655 -r 1dc57714420f dist/bind/lib/inet/inet_data.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/dist/bind/lib/inet/inet_data.c    Mon Jul 01 17:14:59 2002 +0000
@@ -0,0 +1,46 @@
+/*     $NetBSD: inet_data.c,v 1.1.1.1.4.2 2002/07/01 17:15:01 he Exp $ */
+
+/*
+ * Copyright (c) 1995-1999 by Internet Software Consortium.
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
+ * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
+ * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
+ * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
+ * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
+ * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
+ * SOFTWARE.
+ */
+
+#if defined(LIBC_SCCS) && !defined(lint)
+static char rcsid[] = "Id: inet_data.c,v 1.2 2001/06/20 22:06:36 marka Exp";
+#endif /* LIBC_SCCS and not lint */
+
+#include "port_before.h"
+
+#include <sys/types.h>
+#include <sys/param.h>
+#include <sys/socket.h>
+#include <sys/time.h>
+
+#include <netinet/in.h>
+#include <arpa/inet.h>
+#include <arpa/nameser.h>
+
+#include <ctype.h>
+#include <netdb.h>
+#include <resolv.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
+
+#include "port_after.h"
+
+const struct in6_addr isc_in6addr_any = IN6ADDR_ANY_INIT;
+const struct in6_addr isc_in6addr_loopback = IN6ADDR_LOOPBACK_INIT;
diff -r f7316703c655 -r 1dc57714420f dist/bind/lib/isc/hex.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/dist/bind/lib/isc/hex.c   Mon Jul 01 17:14:59 2002 +0000
@@ -0,0 +1,118 @@
+/*     $NetBSD: hex.c,v 1.1.1.1.4.2 2002/07/01 17:15:02 he Exp $       */
+
+/*
+ * Copyright (c) 2001 by Internet Software Consortium.
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
+ * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
+ * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
+ * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
+ * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
+ * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
+ * SOFTWARE.
+ */
+
+#include <port_before.h>
+#include <ctype.h>
+#include <stdio.h>
+#include <string.h>
+#include <isc/misc.h>
+#include <port_after.h>
+
+static const char hex[17] = "0123456789abcdef";
+
+int
+isc_gethexstring(unsigned char *buf, size_t len, int count, FILE *fp,
+                int *multiline)
+{
+       int c, n;
+       unsigned char x;
+       char *s;
+       int result = count;
+       
+       x = 0; /* silence compiler */
+       n = 0;
+       while (count > 0) {
+               c = fgetc(fp);
+
+               if ((c == EOF) ||
+                   (c == '\n' && !*multiline) ||
+                   (c == '(' && *multiline) ||
+                   (c == ')' && !*multiline))
+                       goto formerr;
+               /* comment */
+               if (c == ';') {
+                       while ((c = fgetc(fp)) != EOF && c != '\n')
+                               /* empty */
+                       if (c == '\n' && *multiline)
+                               continue;
+                       goto formerr;
+               }
+               /* white space */
+               if (c == ' ' || c == '\t' || c == '\n' || c == '\r')
+                       continue;
+               /* multiline */
+               if ('(' == c || c == ')') {
+                       *multiline = (c == '(' /*)*/);
+                       continue;
+               }
+               if ((s = strchr(hex, tolower(c))) == NULL)
+                       goto formerr;
+               x = (x<<4) | (s - hex);
+               if (++n == 2) {
+                       if (len > 0) {
+                               *buf++ = x;
+                               len--;
+                       } else
+                               result = -1;
+                       count--;
+                       n = 0;
+               }
+       }
+       return (result);
+
+ formerr:
+       if (c == '\n')
+               ungetc(c, fp);
+       return (-1);
+}
+
+void
+isc_puthexstring(FILE *fp, const unsigned char *buf, size_t buflen,
+                size_t len1, size_t len2, const char *sep)
+{
+       size_t i = 0;
+
+       if (len1 < 4)
+               len1 = 4;



Home | Main Index | Thread Index | Old Index