Source-Changes-HG archive

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

[src/netbsd-1-4]: src/dist/bind Pull up revision 1.1 (new) (requested by chri...



details:   https://anonhg.NetBSD.org/src/rev/24afbafe7d41
branches:  netbsd-1-4
changeset: 469799:24afbafe7d41
user:      he <he%NetBSD.org@localhost>
date:      Sat Dec 04 16:57:53 1999 +0000

description:
Pull up revision 1.1 (new) (requested by christos and veego):
  Update to BIND 8.2.2-P5.

diffstat:

 dist/bind/bin/nslookup/skip.c       |   220 +++
 dist/bind/bin/nslookup/subr.c       |   593 ++++++++
 dist/bind/bin/nsupdate/nsupdate.c   |   691 ++++++++++
 dist/bind/lib/dst/README            |    27 +
 dist/bind/lib/dst/bsafe_link.c      |  1127 ++++++++++++++++
 dist/bind/lib/dst/cylink_link.c     |   678 ++++++++++
 dist/bind/lib/dst/dst_api.c         |  1070 ++++++++++++++++
 dist/bind/lib/dst/dst_internal.h    |   165 ++
 dist/bind/lib/dst/eay_dss_link.c    |   626 +++++++++
 dist/bind/lib/dst/hmac_link.c       |   495 +++++++
 dist/bind/lib/dst/prandom.c         |   853 ++++++++++++
 dist/bind/lib/dst/rsaref_link.c     |   756 +++++++++++
 dist/bind/lib/dst/support.c         |   463 ++++++
 dist/bind/lib/inet/inet_addr.c      |   207 +++
 dist/bind/lib/inet/inet_cidr_ntop.c |   131 +
 dist/bind/lib/inet/inet_cidr_pton.c |   155 ++
 dist/bind/lib/inet/inet_lnaof.c     |    65 +
 dist/bind/lib/inet/inet_makeaddr.c  |    68 +
 dist/bind/lib/inet/inet_net_ntop.c  |   146 ++
 dist/bind/lib/inet/inet_net_pton.c  |   217 +++
 dist/bind/lib/inet/inet_neta.c      |    89 +
 dist/bind/lib/inet/inet_netof.c     |    64 +
 dist/bind/lib/inet/inet_network.c   |   105 +
 dist/bind/lib/inet/inet_ntoa.c      |    64 +
 dist/bind/lib/inet/inet_ntop.c      |   204 +++
 dist/bind/lib/inet/inet_pton.c      |   222 +++
 dist/bind/lib/inet/nsap_addr.c      |   103 +
 dist/bind/lib/irs/Makefile.BSD      |    25 +
 dist/bind/lib/irs/README            |    56 +
 dist/bind/lib/irs/dns.c             |   153 ++
 dist/bind/lib/irs/dns_gr.c          |   282 ++++
 dist/bind/lib/irs/dns_ho.c          |   708 ++++++++++
 dist/bind/lib/irs/dns_nw.c          |   562 ++++++++
 dist/bind/lib/irs/dns_p.h           |    52 +
 dist/bind/lib/irs/dns_pr.c          |   265 +++
 dist/bind/lib/irs/dns_pw.c          |   230 +++
 dist/bind/lib/irs/dns_sv.c          |   287 ++++
 dist/bind/lib/irs/gai_strerror.c    |    47 +
 dist/bind/lib/irs/gen.c             |   429 ++++++
 dist/bind/lib/irs/gen_gr.c          |   452 ++++++
 dist/bind/lib/irs/gen_ho.c          |   345 +++++
 dist/bind/lib/irs/gen_ng.c          |   171 ++
 dist/bind/lib/irs/gen_nw.c          |   264 +++
 dist/bind/lib/irs/gen_p.h           |   115 +
 dist/bind/lib/irs/gen_pr.c          |   228 +++
 dist/bind/lib/irs/gen_pw.c          |   235 +++
 dist/bind/lib/irs/gen_sv.c          |   229 +++
 dist/bind/lib/irs/getaddrinfo.c     |   507 +++++++
 dist/bind/lib/irs/getgrent.c        |   223 +++
 dist/bind/lib/irs/getgrent_r.c      |   221 +++
 dist/bind/lib/irs/gethostent.c      |   862 ++++++++++++
 dist/bind/lib/irs/gethostent_r.c    |   230 +++
 dist/bind/lib/irs/getnameinfo.c     |   232 +++
 dist/bind/lib/irs/getnetent.c       |   342 +++++
 dist/bind/lib/irs/getnetent_r.c     |   193 ++
 dist/bind/lib/irs/getnetgrent.c     |   143 ++
 dist/bind/lib/irs/getnetgrent_r.c   |   136 ++
 dist/bind/lib/irs/getprotoent.c     |   175 ++
 dist/bind/lib/irs/getprotoent_r.c   |   187 ++
 dist/bind/lib/irs/getpwent.c        |   201 +++
 dist/bind/lib/irs/getpwent_r.c      |   255 +++
 dist/bind/lib/irs/getservent.c      |   178 ++
 dist/bind/lib/irs/getservent_r.c    |   208 +++
 dist/bind/lib/irs/hesiod.c          |   505 +++++++
 dist/bind/lib/irs/hesiod_p.h        |    50 +
 dist/bind/lib/irs/irp.c             |   585 ++++++++
 dist/bind/lib/irs/irp_gr.c          |   407 ++++++
 dist/bind/lib/irs/irp_ho.c          |   420 ++++++
 dist/bind/lib/irs/irp_ng.c          |   268 ++++
 dist/bind/lib/irs/irp_nw.c          |   377 +++++
 dist/bind/lib/irs/irp_p.h           |    63 +
 dist/bind/lib/irs/irp_pr.c          |   355 +++++
 dist/bind/lib/irs/irp_pw.c          |   358 +++++
 dist/bind/lib/irs/irp_sv.c          |   371 +++++
 dist/bind/lib/irs/irpmarshall.c     |  2334 +++++++++++++++++++++++++++++++++++
 dist/bind/lib/irs/irs_data.c        |   196 ++
 dist/bind/lib/irs/irs_data.h        |    64 +
 dist/bind/lib/irs/irs_p.h           |    51 +
 dist/bind/lib/irs/lcl.c             |   140 ++
 dist/bind/lib/irs/lcl_gr.c          |   354 +++++
 dist/bind/lib/irs/lcl_ho.c          |   505 +++++++
 dist/bind/lib/irs/lcl_ng.c          |   440 ++++++
 dist/bind/lib/irs/lcl_nw.c          |   371 +++++
 dist/bind/lib/irs/lcl_p.h           |    52 +
 dist/bind/lib/irs/lcl_pr.c          |   286 ++++
 dist/bind/lib/irs/lcl_pw.c          |   308 ++++
 dist/bind/lib/irs/lcl_sv.c          |   434 ++++++
 dist/bind/lib/irs/nis.c             |   151 ++
 dist/bind/lib/irs/nis_gr.c          |   354 +++++
 dist/bind/lib/irs/nis_ho.c          |   392 +++++
 dist/bind/lib/irs/nis_ng.c          |   297 ++++
 dist/bind/lib/irs/nis_nw.c          |   381 +++++
 dist/bind/lib/irs/nis_p.h           |    48 +
 dist/bind/lib/irs/nis_pr.c          |   296 ++++
 dist/bind/lib/irs/nis_pw.c          |   284 ++++
 dist/bind/lib/irs/nis_sv.c          |   306 ++++
 dist/bind/lib/irs/nul_ng.c          |   111 +
 dist/bind/lib/irs/pathnames.h       |    52 +
 dist/bind/lib/irs/util.c            |   109 +
 dist/bind/lib/isc/assertions.c      |    92 +
 dist/bind/lib/isc/base64.c          |   322 ++++
 dist/bind/lib/isc/bitncmp.c         |    68 +
 102 files changed, 31589 insertions(+), 0 deletions(-)

diffs (truncated from 31997 to 300 lines):

diff -r 0553ed437ae4 -r 24afbafe7d41 dist/bind/bin/nslookup/skip.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/dist/bind/bin/nslookup/skip.c     Sat Dec 04 16:57:53 1999 +0000
@@ -0,0 +1,220 @@
+/*     $NetBSD: skip.c,v 1.1.1.1.2.2 1999/12/04 16:57:53 he Exp $      */
+
+/*
+ * Copyright (c) 1985, 1989
+ *    The Regents of the University of California.  All rights reserved.
+ * 
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ *    must display the following acknowledgement:
+ *     This product includes software developed by the University of
+ *     California, Berkeley and its contributors.
+ * 4. Neither the name of the University nor the names of its contributors
+ *    may be used to endorse or promote products derived from this software
+ *    without specific prior written permission.
+ * 
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+
+/*
+ * Portions Copyright (c) 1993 by Digital Equipment Corporation.
+ * 
+ * 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, and that
+ * the name of Digital Equipment Corporation not be used in advertising or
+ * publicity pertaining to distribution of the document or software without
+ * specific, written prior permission.
+ * 
+ * THE SOFTWARE IS PROVIDED "AS IS" AND DIGITAL EQUIPMENT CORP. DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS.   IN NO EVENT SHALL DIGITAL EQUIPMENT
+ * CORPORATION 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.
+ */
+
+#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";
+#endif /* not lint */
+
+/*
+ *******************************************************************************
+ *
+ *  skip.c --
+ *
+ *     Routines to skip over portions of a query buffer.
+ *
+ *     Note: this file has been submitted for inclusion in
+ *     BIND resolver library. When this has been done, this file
+ *     is no longer necessary (assuming there haven't been any
+ *     changes).
+ *
+ *     Adapted from 4.3BSD BIND res_debug.c
+ *
+ *******************************************************************************
+ */
+
+#include "port_before.h"
+
+#include <sys/param.h>
+
+#include <netinet/in.h>
+#include <arpa/nameser.h>
+
+#include <resolv.h>
+#include <stdio.h>
+
+#include "port_after.h"
+
+char *res_skip_rr();
+
+
+/*
+ *******************************************************************************
+ *
+ *  res_skip --
+ *
+ *     Skip the contents of a query.
+ *
+ *     Interpretation of numFieldsToSkip argument:
+ *            res_skip returns pointer to:
+ *     1 ->  start of question records.
+ *     2 ->  start of authoritative answer records.
+ *     3 ->  start of additional records.
+ *     4 ->  first byte after end of additional records.
+ *
+ *   Results:
+ *     (address)       - success operation.
+ *     NULL            - a resource record had an incorrect format.
+ *
+ *******************************************************************************
+ */
+
+char *
+res_skip(msg, numFieldsToSkip, eom)
+       char *msg;
+       int numFieldsToSkip;
+       char *eom;
+{
+       register char *cp;
+       register HEADER *hp;
+       register int tmp;
+       register int n;
+
+       /*
+        * Skip the header fields.
+        */
+       hp = (HEADER *)msg;
+       cp = msg + HFIXEDSZ;
+
+       /*
+        * skip question records.
+        */
+       n = ntohs(hp->qdcount);
+       if (n > 0) {
+               while (--n >= 0 && cp < eom) {
+                       tmp = dn_skipname((u_char *)cp, (u_char *)eom);
+                       if (tmp == -1) return(NULL);
+                       cp += tmp;
+                       cp += INT16SZ;  /* type         */
+                       cp += INT16SZ;  /* class        */
+               }
+       }
+       if (--numFieldsToSkip <= 0) return(cp);
+
+       /*
+        * skip authoritative answer records
+        */
+       n = ntohs(hp->ancount);
+       if (n > 0) {
+               while (--n >= 0 && cp < eom) {
+                       cp = res_skip_rr(cp, eom);
+                       if (cp == NULL) return(NULL);
+               }
+       }
+       if (--numFieldsToSkip == 0) return(cp);
+
+       /*
+        * skip name server records
+        */
+       n = ntohs(hp->nscount);
+       if (n > 0) {
+               while (--n >= 0 && cp < eom) {
+                       cp = res_skip_rr(cp, eom);
+                       if (cp == NULL) return(NULL);
+               }
+       }
+       if (--numFieldsToSkip == 0) return(cp);
+
+       /*
+        * skip additional records
+        */
+       n = ntohs(hp->arcount);
+       if (n > 0) {
+               while (--n >= 0 && cp < eom) {
+                       cp = res_skip_rr(cp, eom);
+                       if (cp == NULL) return(NULL);
+               }
+       }
+
+       return(cp);
+}
+
+
+/*
+ *******************************************************************************
+ *
+ *  res_skip_rr --
+ *
+ *     Skip over resource record fields.
+ *
+ *   Results:
+ *     (address)       - success operation.
+ *     NULL            - a resource record had an incorrect format.
+ *******************************************************************************
+ */
+
+char *
+res_skip_rr(cp, eom)
+       char *cp;
+       char *eom;
+{
+       int tmp;
+       int dlen;
+
+       if ((tmp = dn_skipname((u_char *)cp, (u_char *)eom)) == -1)
+               return (NULL);                  /* compression error */
+       cp += tmp;
+       if ((cp + RRFIXEDSZ) > eom)
+               return (NULL);
+       cp += INT16SZ;  /*      type    */
+       cp += INT16SZ;  /*      class   */
+       cp += INT32SZ;  /*      ttl     */
+       dlen = ns_get16((u_char*)cp);
+       cp += INT16SZ;  /*      dlen    */
+       cp += dlen;
+       if (cp > eom)
+               return (NULL);
+       return (cp);
+}
diff -r 0553ed437ae4 -r 24afbafe7d41 dist/bind/bin/nslookup/subr.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/dist/bind/bin/nslookup/subr.c     Sat Dec 04 16:57:53 1999 +0000
@@ -0,0 +1,593 @@
+/*     $NetBSD: subr.c,v 1.1.1.1.2.2 1999/12/04 16:57:57 he Exp $      */
+
+/*
+ * Copyright (c) 1985, 1989
+ *    The Regents of the University of California.  All rights reserved.
+ * 
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ *    must display the following acknowledgement:
+ *     This product includes software developed by the University of
+ *     California, Berkeley and its contributors.
+ * 4. Neither the name of the University nor the names of its contributors
+ *    may be used to endorse or promote products derived from this software
+ *    without specific prior written permission.
+ * 
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+
+/*
+ * Portions Copyright (c) 1993 by Digital Equipment Corporation.
+ * 
+ * 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, and that
+ * the name of Digital Equipment Corporation not be used in advertising or
+ * publicity pertaining to distribution of the document or software without
+ * specific, written prior permission.
+ * 
+ * THE SOFTWARE IS PROVIDED "AS IS" AND DIGITAL EQUIPMENT CORP. DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS.   IN NO EVENT SHALL DIGITAL EQUIPMENT
+ * CORPORATION 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.
+ */
+
+#ifndef lint
+static const char sccsid[] = "@(#)subr.c       5.24 (Berkeley) 3/2/91";
+static const char rcsid[] = "Id: subr.c,v 8.13 1999/10/13 16:39:20 vixie Exp";
+#endif /* not lint */
+
+/*
+ *******************************************************************************
+ *
+ *  subr.c --
+ *
+ *     Miscellaneous subroutines for the name server
+ *     lookup program.
+ *
+ *     Copyright (c) 1985
+ *     Andrew Cherenson
+ *     U.C. Berkeley
+ *     CS298-26  Fall 1985



Home | Main Index | Thread Index | Old Index