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/bin/named Pull up revisions 1.1-1.2 (new) (re...
details: https://anonhg.NetBSD.org/src/rev/b75faaae7011
branches: netbsd-1-4
changeset: 469786:b75faaae7011
user: he <he%NetBSD.org@localhost>
date: Sat Dec 04 16:54:34 1999 +0000
description:
Pull up revisions 1.1-1.2 (new) (requested by christos and veego):
Update to BIND 8.2.2-P5.
diffstat:
dist/bind/bin/named/ns_func.h | 501 ++++++++++++++++++++++++++++++++++++++++++
1 files changed, 501 insertions(+), 0 deletions(-)
diffs (truncated from 505 to 300 lines):
diff -r 3d2089166474 -r b75faaae7011 dist/bind/bin/named/ns_func.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/dist/bind/bin/named/ns_func.h Sat Dec 04 16:54:34 1999 +0000
@@ -0,0 +1,501 @@
+/* $NetBSD: ns_func.h,v 1.2.2.2 1999/12/04 16:54:34 he Exp $ */
+
+/*
+ * Copyright (c) 1985, 1990
+ * 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.
+ */
+
+/*
+ * Portions 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.
+ */
+
+/*
+ * Portions Copyright (c) 1999 by Check Point Software Technologies, Inc.
+ *
+ * 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 Check Point Software Technologies Incorporated 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 CHECK POINT SOFTWARE TECHNOLOGIES
+ * INCORPORATED DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+ * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
+ * IN NO EVENT SHALL CHECK POINT SOFTWARE TECHNOLOGIES INCORPRATED
+ * 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.
+ */
+
+/* ns_func.h - declarations for ns_*.c's externally visible functions
+ *
+ * Id: ns_func.h,v 8.90 1999/10/11 18:22:20 vixie Exp
+ */
+
+/* ++from ns_glue.c++ */
+extern struct in_addr ina_get(const u_char *data);
+extern const char *sin_ntoa(struct sockaddr_in);
+extern int ns_wouldlog(int category, int level);
+extern void ns_debug(int, int, const char *, ...),
+ ns_info(int, const char *, ...),
+ ns_notice(int, const char *, ...),
+ ns_warning(int, const char *, ...),
+ ns_error(int, const char *, ...),
+ ns_panic(int, int, const char *, ...),
+ ns_assertion_failed(char *file, int line,
+ assertion_type type, char *cond,
+ int print_errno);
+extern void panic(const char *, const void *),
+ gettime(struct timeval *);
+extern int nlabels(const char *),
+ my_close(int),
+ my_fclose(FILE *);
+extern void __freestr(char *);
+extern char *__newstr(size_t, int),
+ *__savestr(const char *, int),
+ *checked_ctime(const time_t *t),
+ *ctimel(long);
+extern void __freestr_record(char *, char *, int);
+extern char *__newstr_record(size_t, int, char *, int);
+extern char *__savestr_record(const char *, int, char *, int);
+extern u_char *ina_put(struct in_addr ina, u_char *data),
+ *savebuf(const u_char *, size_t, int);
+extern void dprintf(int level, const char *format, ...);
+#ifdef DEBUG_STRINGS
+extern char *debug_newstr(size_t, int, const char *, int),
+ *debug_savestr(const char *, int, const char *, int);
+extern void debug_freestr(char *, const char *, int);
+#define newstr(l, n) debug_newstr((l), (n), __FILE__, __LINE__)
+#define savestr(s, n) debug_savestr((s), (n), __FILE__, __LINE__)
+#define freestr(s) debug_freestr((s), __FILE__, __LINE__)
+#else
+#ifdef RECORD_STRINGS
+#define newstr(l, n) __newstr_record((l), (n), __FILE__, __LINE__)
+#define savestr(s, n) __savestr_record((s), (n), __FILE__, __LINE__)
+#define freestr(s) __freestr_record((s), __FILE__, __LINE__)
+#else
+#define newstr(l, n) __newstr((l), (n))
+#define savestr(s, n) __savestr((s), (n))
+#define freestr(s) __freestr((s))
+#endif
+#endif /* DEBUG_STRINGS */
+int movefile(const char *, const char *);
+/* --from ns_glue.c-- */
+
+/* ++from ns_notify.c++ */
+#ifdef BIND_NOTIFY
+void ns_notify(const char *, ns_class, ns_type);
+void ns_unnotify(void);
+#endif
+/* --from ns_notify.c-- */
+
+/* ++from ns_resp.c++ */
+extern void ns_resp(u_char *, int, struct sockaddr_in,
+ struct qstream *),
+ prime_cache(void),
+ delete_all(struct namebuf *, int, int);
+extern int delete_stale(struct namebuf *);
+extern struct qinfo *sysquery(const char *, int, int,
+ struct in_addr *, int, u_int16_t, int);
+extern int doupdate(u_char *, u_char *, struct databuf **,
+ int, int, int, u_int, struct sockaddr_in),
+ send_msg(u_char *, int, struct qinfo *),
+ findns(struct namebuf **, int,
+ struct databuf **, int *, int),
+ finddata(struct namebuf *, int, int, HEADER *,
+ char **, int *, int *),
+ add_data(struct namebuf *,
+ struct databuf **,
+ u_char *, int, int *),
+ trunc_adjust(u_char *, int, int);
+/* --from ns_resp.c-- */
+
+/* ++from ns_req.c++ */
+extern void ns_req(u_char *, int, int,
+ struct qstream *,
+ struct sockaddr_in,
+ int),
+ free_addinfo(void),
+ free_nsp(struct databuf **);
+extern int stale(struct databuf *),
+ make_rr(const char *, struct databuf *,
+ u_char *, int, int,
+ u_char **, u_char **, int),
+ doaddinfo(HEADER *, u_char *, int),
+ doaddauth(HEADER *, u_char *, int,
+ struct namebuf *,
+ struct databuf *);
+#ifdef BIND_NOTIFY
+extern int findZonePri(const struct zoneinfo *,
+ const struct sockaddr_in);
+#endif
+/* --from ns_req.c-- */
+
+/* ++from ns_xfr.c++ */
+void ns_xfr(struct qstream *qsp, struct namebuf *znp,
+ int zone, int class, int type,
+ int id, int opcode, u_int32_t serial_ixfr,
+ struct tsig_record *in_tsig),
+ ns_stopxfrs(struct zoneinfo *),
+ ns_freexfr(struct qstream *),
+ sx_newmsg(struct qstream *qsp),
+ sx_sendlev(struct qstream *qsp),
+ sx_sendsoa(struct qstream *qsp);
+/* --from ns_xfr.c-- */
+
+/* ++from ns_ctl.c++ */
+void ns_ctl_initialize(void);
+void ns_ctl_shutdown(void);
+void ns_ctl_defaults(controls *);
+void ns_ctl_add(controls *, control);
+control ns_ctl_new_inet(struct in_addr, u_int, ip_match_list);
+#ifndef WINNT
+control ns_ctl_new_unix(char *, mode_t, uid_t, gid_t);
+#endif
+void ns_ctl_install(controls *);
+/* --from ns_ctl.c-- */
+
+/* ++from ns_ixfr.c++ */
+void sx_send_ixfr(struct qstream *qsp);
+/* --from ns_ixfr.c-- */
+
+/* ++from ns_forw.c++ */
+extern time_t retrytime(struct qinfo *);
+extern int ns_forw(struct databuf *nsp[],
+ u_char *msg,
+ int msglen,
+ struct sockaddr_in from,
+ struct qstream *qsp,
+ int dfd,
+ struct qinfo **qpp,
+ const char *dname,
+ int class,
+ int type,
+ struct namebuf *np,
+ int use_tcp,
+ struct tsig_record *in_tsig),
+ haveComplained(u_long, u_long),
+ nslookup(struct databuf *nsp[],
+ struct qinfo *qp,
+ const char *syslogdname,
+ const char *sysloginfo),
+ qcomp(struct qserv *, struct qserv *);
+extern void schedretry(struct qinfo *, time_t),
+ unsched(struct qinfo *),
+ reset_retrytimer(void),
+ retrytimer(evContext ctx, void *uap,
+ struct timespec due, struct timespec ival),
+ retry(struct qinfo *),
+ qflush(void),
+ qremove(struct qinfo *),
+ ns_freeqns(struct qinfo *, char *),
+ ns_freeqry(struct qinfo *),
+ freeComplaints(void),
+ nsfwdadd(struct qinfo *, struct fwdinfo *);
+extern struct qinfo *qfindid(u_int16_t),
+ *qnew(const char *, int, int);
+/* --from ns_forw.c-- */
+
+/* ++from ns_main.c++ */
+extern struct in_addr net_mask(struct in_addr);
+extern void sq_remove(struct qstream *),
+ sq_flushw(struct qstream *),
+ sq_flush(struct qstream *allbut),
+ dq_remove_gen(time_t gen),
+ dq_remove_all(),
+ sq_done(struct qstream *),
+ ns_setproctitle(char *, int),
+ getnetconf(int),
+ nsid_init(void),
+ ns_setoption(int option),
+ writestream(struct qstream *, const u_char *, int),
+ ns_need_unsafe(enum need),
+ ns_need(enum need),
+ opensocket_f(void),
+ nsid_hash(u_char *, size_t);
+extern u_int16_t nsid_next(void);
+extern int sq_openw(struct qstream *, int),
+ sq_writeh(struct qstream *, sq_closure),
+ sq_write(struct qstream *, const u_char *, int),
+ tcp_send(struct qinfo *),
+ aIsUs(struct in_addr);
+/* --from ns_main.c-- */
+
+/* ++from ns_maint.c++ */
+extern void zone_maint(struct zoneinfo *),
+ sched_zone_maint(struct zoneinfo *),
+ ns_cleancache(evContext ctx, void *uap,
+ struct timespec due,
+ struct timespec inter),
+ clean_cache_from(char *dname, struct hashbuf *htp),
+ remove_zone(struct zoneinfo *, const char *),
+ purge_zone(const char *, struct hashbuf *, int),
+ loadxfer(void),
Home |
Main Index |
Thread Index |
Old Index