diff options
Diffstat (limited to 'lib')
85 files changed, 1351 insertions, 7053 deletions
diff --git a/lib/Makefile b/lib/Makefile index feca8d3..9ac8945 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -12,6 +12,7 @@ # libcom_err must be built before libpam. # libcrypt must be built before libpam. # libkvm must be built before libdevstat. +# libldns must be built before libunbound. # msun must be built before libg++ and libstdc++. # libmd must be built before libatm, libopie, libradius, and libtacplus. # ncurses must be built before libdialog, libedit and libreadline. @@ -38,6 +39,7 @@ SUBDIR_ORDERED= ${_csu} \ libelf \ ${_libiconv_modules} \ libkvm \ + ${_libldns} \ msun \ libmd \ ncurses \ @@ -84,7 +86,6 @@ SUBDIR= ${SUBDIR_ORDERED} \ ${_libipx} \ libjail \ libkiconv \ - ${_libldns} \ liblzma \ libmagic \ libmandoc \ @@ -116,6 +117,7 @@ SUBDIR= ${SUBDIR_ORDERED} \ libufs \ libugidfw \ libulog \ + ${_libunbound} \ ${_libusbhid} \ ${_libusb} \ ${_libvgl} \ @@ -125,7 +127,6 @@ SUBDIR= ${SUBDIR_ORDERED} \ libyaml \ libz \ ${_atf} \ - ${_bind} \ ${_clang} .if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf) @@ -148,10 +149,6 @@ _atf= atf _libngatm= libngatm .endif -.if ${MK_BIND} != "no" -_bind= bind -.endif - .if ${MK_BLUETOOTH} != "no" _libbluetooth= libbluetooth _libsdp= libsdp @@ -261,6 +258,10 @@ _libsmutil= libsmutil _libtelnet= libtelnet .endif +.if ${MK_UNBOUND} != "no" +_libunbound= libunbound +.endif + .if ${MK_USB} != "no" _libusbhid= libusbhid _libusb= libusb diff --git a/lib/bind/Makefile b/lib/bind/Makefile deleted file mode 100644 index e2457b7..0000000 --- a/lib/bind/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $FreeBSD$ - -SUBDIR= isc isccc dns isccfg bind9 lwres - -.include <bsd.subdir.mk> diff --git a/lib/bind/bind9/Makefile b/lib/bind/bind9/Makefile deleted file mode 100644 index 5abbeb1..0000000 --- a/lib/bind/bind9/Makefile +++ /dev/null @@ -1,31 +0,0 @@ -# $FreeBSD$ - -.include <bsd.own.mk> - -BIND_DIR= ${.CURDIR}/../../../contrib/bind9 -LIB_BIND_REL= .. -LIB_BIND_DIR= ${.CURDIR}/${LIB_BIND_REL} -SRCDIR= ${BIND_DIR}/lib/bind9 - -.include "${LIB_BIND_DIR}/config.mk" - -LIB= bind9 - -.PATH: ${SRCDIR} -SRCS= check.c getaddresses.c version.c - -CFLAGS+= -I${SRCDIR}/include -CFLAGS+= -I${BIND_DIR}/lib/isc/${ISC_ATOMIC_ARCH}/include - -DPADD= ${PTHREAD_DPADD} -LDADD= ${PTHREAD_LDADD} - -.if ${MK_BIND_LIBS} != "no" -INCS= ${SRCDIR}/include/bind9/check.h \ - ${SRCDIR}/include/bind9/getaddresses.h \ - ${SRCDIR}/include/bind9/version.h - -INCSDIR= ${INCLUDEDIR}/bind9 -.endif - -.include <bsd.lib.mk> diff --git a/lib/bind/bind9/Makefile.depend b/lib/bind/bind9/Makefile.depend deleted file mode 100644 index 84c1819..0000000 --- a/lib/bind/bind9/Makefile.depend +++ /dev/null @@ -1,15 +0,0 @@ -# Autogenerated - do NOT edit! - -DEP_RELDIR := ${_PARSEDIR:S,${SRCTOP}/,,} - -DIRDEPS = \ - include \ - include/arpa \ - include/xlocale \ - - -.include <dirdeps.mk> - -.if ${DEP_RELDIR} == ${_DEP_RELDIR} -# local dependencies - needed for -jN in clean tree -.endif diff --git a/lib/bind/config.h b/lib/bind/config.h deleted file mode 100644 index d720a77..0000000 --- a/lib/bind/config.h +++ /dev/null @@ -1,463 +0,0 @@ -/* $FreeBSD$ */ - -/* config.h. Generated from config.h.in by configure. */ -/* config.h.in. Generated from configure.in by autoheader. */ -/* - * Copyright (C) 2004, 2005, 2007, 2008, 2012 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1999-2003 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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: acconfig.h,v 1.53 2008/12/01 23:47:44 tbox Exp $ */ - -/*! \file */ - -/*** - *** This file is not to be included by any public header files, because - *** it does not get installed. - ***/ - -/** define on DEC OSF to enable 4.4BSD style sa_len support */ -/* #undef _SOCKADDR_LEN */ - -/** define if your system needs pthread_init() before using pthreads */ -/* #undef NEED_PTHREAD_INIT */ - -/** define if your system has sigwait() */ -#define HAVE_SIGWAIT 1 - -/** define if sigwait() is the UnixWare flavor */ -/* #undef HAVE_UNIXWARE_SIGWAIT */ - -/** define on Solaris to get sigwait() to work using pthreads semantics */ -/* #undef _POSIX_PTHREAD_SEMANTICS */ - -/** define if LinuxThreads is in use */ -/* #undef HAVE_LINUXTHREADS */ - -/** define if sysconf() is available */ -#define HAVE_SYSCONF 1 - -/** define if sysctlbyname() is available */ -#define HAVE_SYSCTLBYNAME 1 - -/** define if catgets() is available */ -#define HAVE_CATGETS 1 - -/** define if getifaddrs() exists */ -#define HAVE_GETIFADDRS 1 - -/** define if you have the NET_RT_IFLIST sysctl variable and sys/sysctl.h */ -#define HAVE_IFLIST_SYSCTL 1 - -/** define if tzset() is available */ -#define HAVE_TZSET 1 - -/** define if struct addrinfo exists */ -#define HAVE_ADDRINFO 1 - -/** define if getaddrinfo() exists */ -#define HAVE_GETADDRINFO 1 - -/** define if gai_strerror() exists */ -#define HAVE_GAISTRERROR 1 - -/** define if arc4random() exists */ -#define HAVE_ARC4RANDOM 1 - -/** - * define if pthread_setconcurrency() should be called to tell the - * OS how many threads we might want to run. - */ -/* #undef CALL_PTHREAD_SETCONCURRENCY */ - -/** define if IPv6 is not disabled */ -/* #undef WANT_IPV6 */ - -/** define if flockfile() is available */ -#define HAVE_FLOCKFILE 1 - -/** define if getc_unlocked() is available */ -#define HAVE_GETCUNLOCKED 1 - -/** Shut up warnings about sputaux in stdio.h on BSD/OS pre-4.1 */ -/* #undef SHUTUP_SPUTAUX */ -#ifdef SHUTUP_SPUTAUX -struct __sFILE; -extern __inline int __sputaux(int _c, struct __sFILE *_p); -#endif - -/** Shut up warnings about missing sigwait prototype on BSD/OS 4.0* */ -/* #undef SHUTUP_SIGWAIT */ -#ifdef SHUTUP_SIGWAIT -int sigwait(const unsigned int *set, int *sig); -#endif - -/** Shut up warnings from gcc -Wcast-qual on BSD/OS 4.1. */ -/* #undef SHUTUP_STDARG_CAST */ -#if defined(SHUTUP_STDARG_CAST) && defined(__GNUC__) -#include <stdarg.h> /** Grr. Must be included *every time*. */ -/** - * The silly continuation line is to keep configure from - * commenting out the #undef. - */ - -#undef \ - va_start -#define va_start(ap, last) \ - do { \ - union { const void *konst; long *var; } _u; \ - _u.konst = &(last); \ - ap = (va_list)(_u.var + __va_words(__typeof(last))); \ - } while (0) -#endif /** SHUTUP_STDARG_CAST && __GNUC__ */ - -/** define if the system has a random number generating device */ -#define PATH_RANDOMDEV "/dev/random" - -/** define if pthread_attr_getstacksize() is available */ -#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1 - -/** define if pthread_attr_setstacksize() is available */ -#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 - -/** define if you have strerror in the C library. */ -#define HAVE_STRERROR 1 - -/** Define if you are running under Compaq TruCluster. */ -/* #undef HAVE_TRUCLUSTER */ - -/* Define if OpenSSL includes DSA support */ -#define HAVE_OPENSSL_DSA 1 - -/* Define if OpenSSL includes ECDSA support */ -#define HAVE_OPENSSL_ECDSA 1 - -/* Define to the length type used by the socket API (socklen_t, size_t, int). */ -#define ISC_SOCKADDR_LEN_T socklen_t - -/* Define if threads need PTHREAD_SCOPE_SYSTEM */ -/* #undef NEED_PTHREAD_SCOPE_SYSTEM */ - -/* Define if building universal (internal helper macro) */ -/* #undef AC_APPLE_UNIVERSAL_BUILD */ - -/* Define to enable the "filter-aaaa-on-v4" option. */ -/* #undef ALLOW_FILTER_AAAA_ON_V4 */ - -/* Define if recvmsg() does not meet all of the BSD socket API specifications. - */ -/* #undef BROKEN_RECVMSG */ - -/* Define if you cannot bind() before connect() for TCP sockets. */ -/* #undef BROKEN_TCP_BIND_BEFORE_CONNECT */ - -/* Define to enable "rrset-order fixed" syntax. */ -/* #undef DNS_RDATASET_FIXED */ - -/* Define to enable rpz-nsdname rules. */ -/* #undef ENABLE_RPZ_NSDNAME */ - -/* Define to enable rpz-nsip rules. */ -/* #undef ENABLE_RPZ_NSIP */ - -/* Solaris hack to get select_large_fdset. */ -/* #undef FD_SETSIZE */ - -/* Define to nothing if C supports flexible array members, and to 1 if it does - not. That way, with a declaration like `struct s { int n; double - d[FLEXIBLE_ARRAY_MEMBER]; };', the struct hack can be used with pre-C99 - compilers. When computing the size of such an object, don't use 'sizeof - (struct s)' as it overestimates the size. Use 'offsetof (struct s, d)' - instead. Don't use 'offsetof (struct s, d[0])', as this doesn't work with - MSVC and with C++ compilers. */ -#define FLEXIBLE_ARRAY_MEMBER /**/ - -/* Define to 1 if you have the `chroot' function. */ -#define HAVE_CHROOT 1 - -/* Define to 1 if you have the <devpoll.h> header file. */ -/* #undef HAVE_DEVPOLL_H */ - -/* Define to 1 if you have the `dlclose' function. */ -#define HAVE_DLCLOSE 1 - -/* Define to 1 if you have the <dlfcn.h> header file. */ -#define HAVE_DLFCN_H 1 - -/* Define to 1 if you have the `dlopen' function. */ -#define HAVE_DLOPEN 1 - -/* Define to 1 if you have the `dlsym' function. */ -#define HAVE_DLSYM 1 - -/* Define to 1 if you have the `EVP_sha256' function. */ -#define HAVE_EVP_SHA256 1 - -/* Define to 1 if you have the `EVP_sha384' function. */ -#define HAVE_EVP_SHA384 1 - -/* Define to 1 if you have the `EVP_sha512' function. */ -#define HAVE_EVP_SHA512 1 - -/* Define to 1 if you have the <fcntl.h> header file. */ -#define HAVE_FCNTL_H 1 - -/* Define to 1 if you have the <gssapi/gssapi.h> header file. */ -/* #undef HAVE_GSSAPI_GSSAPI_H */ - -/* Define to 1 if you have the <gssapi/gssapi_krb5.h> header file. */ -/* #undef HAVE_GSSAPI_GSSAPI_KRB5_H */ - -/* Define to 1 if you have the <gssapi.h> header file. */ -/* #undef HAVE_GSSAPI_H */ - -/* Define to 1 if you have the <gssapi_krb5.h> header file. */ -/* #undef HAVE_GSSAPI_KRB5_H */ - -/* Define to 1 if you have the <inttypes.h> header file. */ -#define HAVE_INTTYPES_H 1 - -/* Define to 1 if you have the <kerberosv5/krb5.h> header file. */ -/* #undef HAVE_KERBEROSV5_KRB5_H */ - -/* Define to 1 if you have the <krb5.h> header file. */ -/* #undef HAVE_KRB5_H */ - -/* Define to 1 if you have the <krb5/krb5.h> header file. */ -/* #undef HAVE_KRB5_KRB5_H */ - -/* Define to 1 if you have the `c' library (-lc). */ -/* #undef HAVE_LIBC */ - -/* Define to 1 if you have the `cap' library (-lcap). */ -/* #undef HAVE_LIBCAP */ - -/* if system have backtrace function */ -/* #undef HAVE_LIBCTRACE */ - -/* Define to 1 if you have the `c_r' library (-lc_r). */ -/* #undef HAVE_LIBC_R */ - -/* Define to 1 if you have the `nsl' library (-lnsl). */ -/* #undef HAVE_LIBNSL */ - -/* Define to 1 if you have the `pthread' library (-lpthread). */ -/* #undef HAVE_LIBPTHREAD */ - -/* Define to 1 if you have the `scf' library (-lscf). */ -/* #undef HAVE_LIBSCF */ - -/* Define to 1 if you have the `socket' library (-lsocket). */ -/* #undef HAVE_LIBSOCKET */ - -/* Define to 1 if you have the `thr' library (-lthr). */ -/* #undef HAVE_LIBTHR */ - -/* Define if libxml2 was found */ -/* #undef HAVE_LIBXML2 */ - -/* Define to 1 if you have the <linux/capability.h> header file. */ -/* #undef HAVE_LINUX_CAPABILITY_H */ - -/* Define to 1 if you have the <locale.h> header file. */ -#define HAVE_LOCALE_H 1 - -/* Define to 1 if you have the <memory.h> header file. */ -#define HAVE_MEMORY_H 1 - -/* Define to 1 if you have the `nanosleep' function. */ -#define HAVE_NANOSLEEP 1 - -/* Define to 1 if you have the <net/if6.h> header file. */ -/* #undef HAVE_NET_IF6_H */ - -/* Define if your OpenSSL version supports ECDSA. */ -#define HAVE_OPENSSL_ECDSA 1 - -/* Define if your OpenSSL version supports GOST. */ -/* #undef HAVE_OPENSSL_GOST */ - -/* Define to 1 if you have the `readline' function. */ -#define HAVE_READLINE 1 - -/* Define to 1 if you have the <regex.h> header file. */ -#define HAVE_REGEX_H 1 - -/* Define to 1 if you have the `setegid' function. */ -#define HAVE_SETEGID 1 - -/* Define to 1 if you have the `seteuid' function. */ -#define HAVE_SETEUID 1 - -/* Define to 1 if you have the `setlocale' function. */ -#define HAVE_SETLOCALE 1 - -/* Define to 1 if you have the `setresgid' function. */ -#define HAVE_SETRESGID 1 - -/* Define to 1 if you have the `setresuid' function. */ -#define HAVE_SETRESUID 1 - -/* Define to 1 if you have the <stdint.h> header file. */ -#define HAVE_STDINT_H 1 - -/* Define to 1 if you have the <stdlib.h> header file. */ -#define HAVE_STDLIB_H 1 - -/* Define to 1 if you have the <strings.h> header file. */ -#define HAVE_STRINGS_H 1 - -/* Define to 1 if you have the <string.h> header file. */ -#define HAVE_STRING_H 1 - -/* Define to 1 if you have the <sys/capability.h> header file. */ -/* #undef HAVE_SYS_CAPABILITY_H */ - -/* Define to 1 if you have the <sys/devpoll.h> header file. */ -/* #undef HAVE_SYS_DEVPOLL_H */ - -/* Define to 1 if you have the <sys/dyntune.h> header file. */ -/* #undef HAVE_SYS_DYNTUNE_H */ - -/* Define to 1 if you have the <sys/param.h> header file. */ -#define HAVE_SYS_PARAM_H 1 - -/* Define to 1 if you have the <sys/prctl.h> header file. */ -/* #undef HAVE_SYS_PRCTL_H */ - -/* Define to 1 if you have the <sys/select.h> header file. */ -#define HAVE_SYS_SELECT_H 1 - -/* Define to 1 if you have the <sys/sockio.h> header file. */ -#define HAVE_SYS_SOCKIO_H 1 - -/* Define to 1 if you have the <sys/stat.h> header file. */ -#define HAVE_SYS_STAT_H 1 - -/* Define to 1 if you have the <sys/sysctl.h> header file. */ -#define HAVE_SYS_SYSCTL_H 1 - -/* Define to 1 if you have the <sys/time.h> header file. */ -#define HAVE_SYS_TIME_H 1 - -/* Define to 1 if you have the <sys/types.h> header file. */ -#define HAVE_SYS_TYPES_H 1 - -/* Define to 1 if you have the <sys/un.h> header file. */ -#define HAVE_SYS_UN_H 1 - -/* Define if running under Compaq TruCluster */ -/* #undef HAVE_TRUCLUSTER */ - -/* Define to 1 if you have the <unistd.h> header file. */ -#define HAVE_UNISTD_H 1 - -/* Define to 1 if you have the `usleep' function. */ -#define HAVE_USLEEP 1 - -/* return type of gai_strerror */ -#define IRS_GAISTRERROR_RETURN_T const char * - -/* Define to the buffer length type used by getnameinfo(3). */ -#define IRS_GETNAMEINFO_BUFLEN_T size_t - -/* Define to the flags type used by getnameinfo(3). */ -#define IRS_GETNAMEINFO_FLAGS_T int - -/* Define to allow building of objects for dlopen(). */ -#define ISC_DLZ_DLOPEN 1 - -/* Define to the sub-directory in which libtool stores uninstalled libraries. - */ -#define LT_OBJDIR ".libs/" - -/* Defined if extern char *optarg is not declared. */ -/* #undef NEED_OPTARG */ - -/* Define if connect does not honour the permission on the UNIX domain socket. - */ -/* #undef NEED_SECURE_DIRECTORY */ - -/* Use the new XML schema for statistics */ -/* #undef NEWSTATS */ - -/* Define to the address where bug reports for this package should be sent. */ -#define PACKAGE_BUGREPORT "" - -/* Define to the full name of this package. */ -#define PACKAGE_NAME "" - -/* Define to the full name and version of this package. */ -#define PACKAGE_STRING "" - -/* Define to the one symbol short name of this package. */ -#define PACKAGE_TARNAME "" - -/* Define to the home page for this package. */ -#define PACKAGE_URL "" - -/* Define to the version of this package. */ -#define PACKAGE_VERSION "" - -/* Sets which flag to pass to open/fcntl to make non-blocking - (O_NDELAY/O_NONBLOCK). */ -#define PORT_NONBLOCK O_NONBLOCK - -/* The size of `void *', as computed by sizeof. */ -#define SIZEOF_VOID_P 8 - -/* Define to 1 if you have the ANSI C header files. */ -#define STDC_HEADERS 1 - -/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */ -#define TIME_WITH_SYS_TIME 1 - -/* Defined if you need to use ioctl(FIONBIO) instead a fcntl call to make - non-blocking. */ -/* #undef USE_FIONBIO_IOCTL */ - -/* define if idnkit support is to be included. */ -/* #undef WITH_IDN */ - -/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most - significant byte first (like Motorola and SPARC, unlike Intel). */ -#if defined AC_APPLE_UNIVERSAL_BUILD -# if defined __BIG_ENDIAN__ -# define WORDS_BIGENDIAN 1 -# endif -#else -# ifndef WORDS_BIGENDIAN -/* # undef WORDS_BIGENDIAN */ -# endif -#endif - -/* Define to empty if `const' does not conform to ANSI C. */ -/* #undef const */ - -/* Define to empty if your compiler does not support "static inline". */ -#define inline /**/ - -/* Define to `unsigned int' if <sys/types.h> does not define. */ -/* #undef size_t */ - -/* Define to `int' if <sys/types.h> does not define. */ -/* #undef ssize_t */ - -/* Define to `unsigned long' if <sys/types.h> does not define. */ -/* #undef uintptr_t */ - -/* Define to empty if the keyword `volatile' does not work. Warning: valid - code using `volatile' can become incorrect without. Disable with care. */ -/* #undef volatile */ diff --git a/lib/bind/config.mk b/lib/bind/config.mk deleted file mode 100644 index ebac59a..0000000 --- a/lib/bind/config.mk +++ /dev/null @@ -1,139 +0,0 @@ -# $FreeBSD$ - -.include <bsd.own.mk> -.include <bsd.endian.mk> - -# BIND version number -.if defined(BIND_DIR) && exists(${BIND_DIR}/version) -.include "${BIND_DIR}/version" -BIND_VERSION= ${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER} -CFLAGS+= -DVERSION='"${BIND_VERSION}"' -.endif - -CFLAGS+= -DHAVE_CONFIG_H -CFLAGS+= -D_REENTRANT -D_THREAD_SAFE - -# Get version numbers (for libraries) -.if defined(SRCDIR) && exists(${SRCDIR}/api) -.include "${SRCDIR}/api" -CFLAGS+= -DLIBINTERFACE=${LIBINTERFACE} -CFLAGS+= -DLIBREVISION=${LIBREVISION} -CFLAGS+= -DLIBAGE=${LIBAGE} -.if ${MK_BIND_LIBS} != "no" -SHLIB_MAJOR= ${LIBINTERFACE} -SHLIB_MINOR= ${LIBINTERFACE} -.else -INTERNALLIB= -.endif -.endif - -# GSSAPI support is incomplete in 9.3.0 -#.if ${MK_KERBEROS} != "no" -#CFLAGS+= -DGSSAPI -#.endif - -# Enable IPv6 support if available -.if ${MK_INET6_SUPPORT} != "no" -CFLAGS+= -DWANT_IPV6 -.endif - -# Enable crypto if available -.if ${MK_OPENSSL} != "no" -CFLAGS+= -DOPENSSL -.endif - -# Enable MD5 - BIND has its own implementation -CFLAGS+= -DUSE_MD5 - -# Endianness -.if ${TARGET_ENDIANNESS} == 4321 -CFLAGS+= -DWORDS_BIGENDIAN -.endif - -# Default file locations -LOCALSTATEDIR= /var -SYSCONFDIR= /etc/namedb -CFLAGS+= -DNS_LOCALSTATEDIR='"${LOCALSTATEDIR}"' -CFLAGS+= -DNS_SYSCONFDIR='"${SYSCONFDIR}"' -CFLAGS+= -DNAMED_CONFFILE='"${SYSCONFDIR}/named.conf"' -CFLAGS+= -DRNDC_CONFFILE='"${SYSCONFDIR}/rndc.conf"' -CFLAGS+= -DRNDC_KEYFILE='"${SYSCONFDIR}/rndc.key"' - -# Add correct include path for config.h -.if defined(LIB_BIND_DIR) && exists(${LIB_BIND_DIR}/config.h) -CFLAGS+= -I${LIB_BIND_DIR} -.endif - -# Use the right version of the atomic.h file from lib/isc -.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386" -ISC_ATOMIC_ARCH= x86_32 -.elif ${MACHINE_ARCH} == "ia64" -ISC_ATOMIC_ARCH= ia64 -.else -ISC_ATOMIC_ARCH= noatomic -.endif - -# Optional features -.if ${MK_BIND_LARGE_FILE} == "yes" -CFLAGS+= -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -.endif -.if ${MK_BIND_SIGCHASE} == "yes" -CFLAGS+= -DDIG_SIGCHASE -.endif - -# Link against BIND libraries -.if ${MK_BIND_LIBS} == "no" -LIBBIND9= ${LIB_BIND_REL}/bind9/libbind9.a -CFLAGS+= -I${BIND_DIR}/lib/bind9/include -LIBDNS= ${LIB_BIND_REL}/dns/libdns.a -CFLAGS+= -I${BIND_DIR}/lib/dns/include/dst \ - -I${BIND_DIR}/lib/dns/include \ - -I${LIB_BIND_DIR}/dns -LIBISCCC= ${LIB_BIND_REL}/isccc/libisccc.a -CFLAGS+= -I${BIND_DIR}/lib/isccc/include -LIBISCCFG= ${LIB_BIND_REL}/isccfg/libisccfg.a -CFLAGS+= -I${BIND_DIR}/lib/isccfg/include -LIBISC= ${LIB_BIND_REL}/isc/libisc.a -CFLAGS+= -I${BIND_DIR}/lib/isc/unix/include \ - -I${BIND_DIR}/lib/isc/pthreads/include \ - -I${BIND_DIR}/lib/isc/include \ - -I${LIB_BIND_DIR}/isc -LIBLWRES= ${LIB_BIND_REL}/lwres/liblwres.a -CFLAGS+= -I${BIND_DIR}/lib/lwres/unix/include \ - -I${BIND_DIR}/lib/lwres/include \ - -I${LIB_BIND_DIR}/lwres -.endif -BIND_DPADD= ${LIBBIND9} ${LIBDNS} ${LIBISCCC} ${LIBISCCFG} \ - ${LIBISC} ${LIBLWRES} -.if ${MK_BIND_LIBS} != "no" -BIND_LDADD= -lbind9 -ldns -lisccc -lisccfg -lisc -llwres -CFLAGS+= -I${BIND_DIR}/lib/isc/include -CFLAGS+= -I${BIND_DIR}/lib/isc/unix/include -CFLAGS+= -I${BIND_DIR}/lib/isc/pthreads/include -CFLAGS+= -I${.CURDIR}/../dns -CFLAGS+= -I${BIND_DIR}/lib/dns/include -CFLAGS+= -I${BIND_DIR}/lib/isccfg/include -CFLAGS+= -I${.CURDIR}/../isc -.else -BIND_LDADD= ${BIND_DPADD} -.endif - -# Link against crypto library -.if ${MK_OPENSSL} != "no" -CRYPTO_DPADD= ${LIBCRYPTO} -CRYPTO_LDADD= -lcrypto -.endif - -.if ${MK_BIND_XML} == "yes" -CFLAGS+= -DHAVE_LIBXML2 -CFLAGS+= -I/usr/local/include -I/usr/local/include/libxml2 -.if ${MK_BIND_LIBS} != "no" -BIND_LDADD+= -L/usr/local/lib -lxml2 -lz -liconv -lm -.else -BIND_DPADD+= /usr/local/lib/libxml2.a ${LIBZ} -BIND_DPADD+= /usr/local/lib/libiconv.a ${LIBM} -.endif -.endif - -PTHREAD_DPADD= ${LIBPTHREAD} -PTHREAD_LDADD= -lpthread diff --git a/lib/bind/dns/Makefile b/lib/bind/dns/Makefile deleted file mode 100644 index 01925b7..0000000 --- a/lib/bind/dns/Makefile +++ /dev/null @@ -1,159 +0,0 @@ -# $FreeBSD$ - -.include <bsd.own.mk> - -BIND_DIR= ${.CURDIR}/../../../contrib/bind9 -LIB_BIND_REL= .. -LIB_BIND_DIR= ${.CURDIR}/${LIB_BIND_REL} -SRCDIR= ${BIND_DIR}/lib/dns - -.include "${LIB_BIND_DIR}/config.mk" - -LIB= dns - -.PATH: ${SRCDIR} -SRCS+= acache.c acl.c adb.c byaddr.c \ - cache.c callbacks.c clientinfo.c compress.c \ - db.c dbiterator.c dbtable.c diff.c dispatch.c \ - dlz.c dns64.c dnssec.c ds.c \ - dst_api.c dst_lib.c dst_parse.c dst_result.c \ - forward.c \ - gssapi_link.c gssapictx.c hmac_link.c \ - iptable.c journal.c \ - key.c \ - keydata.c keytable.c lib.c log.c lookup.c \ - master.c masterdump.c message.c \ - name.c ncache.c nsec.c nsec3.c \ - openssl_link.c openssldh_link.c \ - openssldsa_link.c opensslgost_link.c opensslrsa_link.c \ - opensslecdsa_link.c \ - order.c peer.c portlist.c private.c \ - rbt.c rbtdb.c rbtdb64.c rcode.c rdata.c rdatalist.c \ - rdataset.c rdatasetiter.c rdataslab.c request.c \ - resolver.c result.c rootns.c rpz.c rriterator.c \ - sdb.c sdlz.c soa.c ssu.c ssu_external.c \ - stats.c tcpmsg.c time.c timer.c tkey.c \ - tsec.c tsig.c ttl.c update.c validator.c \ - version.c view.c xfrin.c zone.c zonekey.c zt.c - -CFLAGS+= -I${SRCDIR}/include/dst -I${SRCDIR}/include -I${SRCDIR} -CFLAGS+= -I${.CURDIR} -CFLAGS+= -I${BIND_DIR}/lib/isc/${ISC_ATOMIC_ARCH}/include - -DPADD= ${CRYPTO_DPADD} ${PTHREAD_DPADD} -LDADD= ${CRYPTO_LDADD} ${PTHREAD_LDADD} - -.if ${MK_BIND_LIBS} != "no" -DNSINCS= ${SRCDIR}/include/dns/acache.h \ - ${SRCDIR}/include/dns/acl.h \ - ${SRCDIR}/include/dns/adb.h \ - ${SRCDIR}/include/dns/bit.h \ - ${SRCDIR}/include/dns/byaddr.h \ - ${SRCDIR}/include/dns/cache.h \ - ${SRCDIR}/include/dns/callbacks.h \ - ${SRCDIR}/include/dns/cert.h \ - ${SRCDIR}/include/dns/clientinfo.h \ - ${SRCDIR}/include/dns/compress.h \ - ${SRCDIR}/include/dns/db.h \ - ${SRCDIR}/include/dns/dbiterator.h \ - ${SRCDIR}/include/dns/dbtable.h \ - ${SRCDIR}/include/dns/diff.h \ - ${SRCDIR}/include/dns/dispatch.h \ - ${SRCDIR}/include/dns/dlz.h \ - ${SRCDIR}/include/dns/dnssec.h \ - ${SRCDIR}/include/dns/ds.h \ - ${SRCDIR}/include/dns/events.h \ - ${SRCDIR}/include/dns/fixedname.h \ - ${SRCDIR}/include/dns/forward.h \ - ${SRCDIR}/include/dns/iptable.h \ - ${SRCDIR}/include/dns/journal.h \ - ${SRCDIR}/include/dns/keyflags.h \ - ${SRCDIR}/include/dns/keytable.h \ - ${SRCDIR}/include/dns/keyvalues.h \ - ${SRCDIR}/include/dns/lib.h \ - ${SRCDIR}/include/dns/log.h \ - ${SRCDIR}/include/dns/lookup.h \ - ${SRCDIR}/include/dns/master.h \ - ${SRCDIR}/include/dns/masterdump.h \ - ${SRCDIR}/include/dns/message.h \ - ${SRCDIR}/include/dns/name.h \ - ${SRCDIR}/include/dns/ncache.h \ - ${SRCDIR}/include/dns/nsec.h \ - ${SRCDIR}/include/dns/nsec3.h \ - ${SRCDIR}/include/dns/opcode.h \ - ${SRCDIR}/include/dns/order.h \ - ${SRCDIR}/include/dns/peer.h \ - ${SRCDIR}/include/dns/portlist.h \ - ${SRCDIR}/include/dns/private.h \ - ${SRCDIR}/include/dns/rbt.h \ - ${SRCDIR}/include/dns/rcode.h \ - ${SRCDIR}/include/dns/rdata.h \ - ${SRCDIR}/include/dns/rdatasetiter.h \ - ${SRCDIR}/include/dns/rdataclass.h \ - ${SRCDIR}/include/dns/rdatalist.h \ - ${SRCDIR}/include/dns/rdataset.h \ - ${SRCDIR}/include/dns/rdataslab.h \ - ${SRCDIR}/include/dns/rdatatype.h \ - ${SRCDIR}/include/dns/request.h \ - ${SRCDIR}/include/dns/resolver.h \ - ${SRCDIR}/include/dns/result.h \ - ${SRCDIR}/include/dns/rootns.h \ - ${SRCDIR}/include/dns/sdb.h \ - ${SRCDIR}/include/dns/sdlz.h \ - ${SRCDIR}/include/dns/secalg.h \ - ${SRCDIR}/include/dns/secproto.h \ - ${SRCDIR}/include/dns/soa.h \ - ${SRCDIR}/include/dns/ssu.h \ - ${SRCDIR}/include/dns/stats.h \ - ${SRCDIR}/include/dns/tcpmsg.h \ - ${SRCDIR}/include/dns/time.h \ - ${SRCDIR}/include/dns/timer.h \ - ${SRCDIR}/include/dns/tkey.h \ - ${SRCDIR}/include/dns/tsig.h \ - ${SRCDIR}/include/dns/ttl.h \ - ${SRCDIR}/include/dns/types.h \ - ${SRCDIR}/include/dns/update.h \ - ${SRCDIR}/include/dns/validator.h \ - ${SRCDIR}/include/dns/version.h \ - ${SRCDIR}/include/dns/view.h \ - ${SRCDIR}/include/dns/xfrin.h \ - ${SRCDIR}/include/dns/zone.h \ - ${SRCDIR}/include/dns/zonekey.h \ - ${SRCDIR}/include/dns/zt.h \ - dns/enumtype.h \ - dns/enumclass.h \ - dns/rdatastruct.h - -DNSINCSDIR= ${INCLUDEDIR}/dns - -DSTINCS= ${SRCDIR}/include/dst/dst.h \ - ${SRCDIR}/include/dst/gssapi.h \ - ${SRCDIR}/include/dst/lib.h \ - ${SRCDIR}/include/dst/result.h - -DSTINCSDIR= ${INCLUDEDIR}/dst - -INCSGROUPS= DNSINCS DSTINCS -.endif - -.if defined(MAINTAINER_MODE) -generate: ${.CURDIR}/dns/enumtype.h ${.CURDIR}/dns/enumclass.h \ - ${.CURDIR}/dns/rdatastruct.h ${.CURDIR}/code.h - -gen: ${SRCDIR}/gen.c - -${.CURDIR}/dns/enumtype.h: gen - (cd ${SRCDIR} && ${.OBJDIR}/gen -t) >${.TARGET} - -${.CURDIR}/dns/enumclass.h: gen - (cd ${SRCDIR} && ${.OBJDIR}/gen -c) >${.TARGET} - -${.CURDIR}/dns/rdatastruct.h: gen - (cd ${SRCDIR} && ${.OBJDIR}/gen -i -P rdata/rdatastructpre.h \ - -S rdata/rdatastructsuf.h) >${.TARGET} - -${.CURDIR}/code.h: gen - (cd ${SRCDIR} && ${.OBJDIR}/gen) >${.TARGET} -.endif - -.include <bsd.lib.mk> diff --git a/lib/bind/dns/Makefile.depend b/lib/bind/dns/Makefile.depend deleted file mode 100644 index fe9d7ff..0000000 --- a/lib/bind/dns/Makefile.depend +++ /dev/null @@ -1,16 +0,0 @@ -# Autogenerated - do NOT edit! - -DEP_RELDIR := ${_PARSEDIR:S,${SRCTOP}/,,} - -DIRDEPS = \ - include \ - include/arpa \ - include/xlocale \ - secure/lib/libcrypto \ - - -.include <dirdeps.mk> - -.if ${DEP_RELDIR} == ${_DEP_RELDIR} -# local dependencies - needed for -jN in clean tree -.endif diff --git a/lib/bind/dns/code.h b/lib/bind/dns/code.h deleted file mode 100644 index 4626017..0000000 --- a/lib/bind/dns/code.h +++ /dev/null @@ -1,1990 +0,0 @@ -/* $FreeBSD$ */ - -/* - * Copyright (C) 2004-2013 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1998-2003 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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. - */ - -/*************** - *************** - *************** THIS FILE IS AUTOMATICALLY GENERATED BY gen.c. - *************** DO NOT EDIT! - *************** - ***************/ - -/*! \file */ - -#ifndef DNS_CODE_H -#define DNS_CODE_H 1 - -#include <isc/boolean.h> -#include <isc/result.h> - -#include <dns/name.h> - -#include "rdata/in_1/a_1.c" -#include "rdata/ch_3/a_1.c" -#include "rdata/hs_4/a_1.c" -#include "rdata/generic/ns_2.c" -#include "rdata/generic/md_3.c" -#include "rdata/generic/mf_4.c" -#include "rdata/generic/cname_5.c" -#include "rdata/generic/soa_6.c" -#include "rdata/generic/mb_7.c" -#include "rdata/generic/mg_8.c" -#include "rdata/generic/mr_9.c" -#include "rdata/generic/null_10.c" -#include "rdata/in_1/wks_11.c" -#include "rdata/generic/ptr_12.c" -#include "rdata/generic/hinfo_13.c" -#include "rdata/generic/minfo_14.c" -#include "rdata/generic/mx_15.c" -#include "rdata/generic/txt_16.c" -#include "rdata/generic/rp_17.c" -#include "rdata/generic/afsdb_18.c" -#include "rdata/generic/x25_19.c" -#include "rdata/generic/isdn_20.c" -#include "rdata/generic/rt_21.c" -#include "rdata/in_1/nsap_22.c" -#include "rdata/in_1/nsap-ptr_23.c" -#include "rdata/generic/sig_24.c" -#include "rdata/generic/key_25.c" -#include "rdata/in_1/px_26.c" -#include "rdata/generic/gpos_27.c" -#include "rdata/in_1/aaaa_28.c" -#include "rdata/generic/loc_29.c" -#include "rdata/generic/nxt_30.c" -#include "rdata/in_1/srv_33.c" -#include "rdata/generic/naptr_35.c" -#include "rdata/in_1/kx_36.c" -#include "rdata/generic/cert_37.c" -#include "rdata/in_1/a6_38.c" -#include "rdata/generic/dname_39.c" -#include "rdata/generic/opt_41.c" -#include "rdata/in_1/apl_42.c" -#include "rdata/generic/ds_43.c" -#include "rdata/generic/sshfp_44.c" -#include "rdata/generic/ipseckey_45.c" -#include "rdata/generic/rrsig_46.c" -#include "rdata/generic/nsec_47.c" -#include "rdata/generic/dnskey_48.c" -#include "rdata/in_1/dhcid_49.c" -#include "rdata/generic/nsec3_50.c" -#include "rdata/generic/nsec3param_51.c" -#include "rdata/generic/tlsa_52.c" -#include "rdata/generic/hip_55.c" -#include "rdata/generic/spf_99.c" -#include "rdata/generic/unspec_103.c" -#include "rdata/generic/nid_104.c" -#include "rdata/generic/l32_105.c" -#include "rdata/generic/l64_106.c" -#include "rdata/generic/lp_107.c" -#include "rdata/generic/eui48_108.c" -#include "rdata/generic/eui64_109.c" -#include "rdata/generic/tkey_249.c" -#include "rdata/any_255/tsig_250.c" -#include "rdata/generic/uri_256.c" -#include "rdata/generic/dlv_32769.c" -#include "rdata/generic/keydata_65533.c" - - - -#define FROMTEXTSWITCH \ - switch (type) { \ - case 1: switch (rdclass) { \ - case 1: result = fromtext_in_a(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 3: result = fromtext_ch_a(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 4: result = fromtext_hs_a(rdclass, type, lexer, origin, options, target, callbacks); break; \ - default: result = DNS_R_UNKNOWN; break; \ - } \ - break; \ - case 2: result = fromtext_ns(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 3: result = fromtext_md(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 4: result = fromtext_mf(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 5: result = fromtext_cname(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 6: result = fromtext_soa(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 7: result = fromtext_mb(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 8: result = fromtext_mg(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 9: result = fromtext_mr(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 10: result = fromtext_null(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 11: switch (rdclass) { \ - case 1: result = fromtext_in_wks(rdclass, type, lexer, origin, options, target, callbacks); break; \ - default: result = DNS_R_UNKNOWN; break; \ - } \ - break; \ - case 12: result = fromtext_ptr(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 13: result = fromtext_hinfo(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 14: result = fromtext_minfo(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 15: result = fromtext_mx(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 16: result = fromtext_txt(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 17: result = fromtext_rp(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 18: result = fromtext_afsdb(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 19: result = fromtext_x25(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 20: result = fromtext_isdn(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 21: result = fromtext_rt(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 22: switch (rdclass) { \ - case 1: result = fromtext_in_nsap(rdclass, type, lexer, origin, options, target, callbacks); break; \ - default: result = DNS_R_UNKNOWN; break; \ - } \ - break; \ - case 23: switch (rdclass) { \ - case 1: result = fromtext_in_nsap_ptr(rdclass, type, lexer, origin, options, target, callbacks); break; \ - default: result = DNS_R_UNKNOWN; break; \ - } \ - break; \ - case 24: result = fromtext_sig(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 25: result = fromtext_key(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 26: switch (rdclass) { \ - case 1: result = fromtext_in_px(rdclass, type, lexer, origin, options, target, callbacks); break; \ - default: result = DNS_R_UNKNOWN; break; \ - } \ - break; \ - case 27: result = fromtext_gpos(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 28: switch (rdclass) { \ - case 1: result = fromtext_in_aaaa(rdclass, type, lexer, origin, options, target, callbacks); break; \ - default: result = DNS_R_UNKNOWN; break; \ - } \ - break; \ - case 29: result = fromtext_loc(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 30: result = fromtext_nxt(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 33: switch (rdclass) { \ - case 1: result = fromtext_in_srv(rdclass, type, lexer, origin, options, target, callbacks); break; \ - default: result = DNS_R_UNKNOWN; break; \ - } \ - break; \ - case 35: result = fromtext_naptr(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 36: switch (rdclass) { \ - case 1: result = fromtext_in_kx(rdclass, type, lexer, origin, options, target, callbacks); break; \ - default: result = DNS_R_UNKNOWN; break; \ - } \ - break; \ - case 37: result = fromtext_cert(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 38: switch (rdclass) { \ - case 1: result = fromtext_in_a6(rdclass, type, lexer, origin, options, target, callbacks); break; \ - default: result = DNS_R_UNKNOWN; break; \ - } \ - break; \ - case 39: result = fromtext_dname(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 41: result = fromtext_opt(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 42: switch (rdclass) { \ - case 1: result = fromtext_in_apl(rdclass, type, lexer, origin, options, target, callbacks); break; \ - default: result = DNS_R_UNKNOWN; break; \ - } \ - break; \ - case 43: result = fromtext_ds(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 44: result = fromtext_sshfp(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 45: result = fromtext_ipseckey(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 46: result = fromtext_rrsig(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 47: result = fromtext_nsec(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 48: result = fromtext_dnskey(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 49: switch (rdclass) { \ - case 1: result = fromtext_in_dhcid(rdclass, type, lexer, origin, options, target, callbacks); break; \ - default: result = DNS_R_UNKNOWN; break; \ - } \ - break; \ - case 50: result = fromtext_nsec3(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 51: result = fromtext_nsec3param(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 52: result = fromtext_tlsa(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 55: result = fromtext_hip(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 99: result = fromtext_spf(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 103: result = fromtext_unspec(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 104: result = fromtext_nid(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 105: result = fromtext_l32(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 106: result = fromtext_l64(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 107: result = fromtext_lp(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 108: result = fromtext_eui48(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 109: result = fromtext_eui64(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 249: result = fromtext_tkey(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 250: switch (rdclass) { \ - case 255: result = fromtext_any_tsig(rdclass, type, lexer, origin, options, target, callbacks); break; \ - default: result = DNS_R_UNKNOWN; break; \ - } \ - break; \ - case 256: result = fromtext_uri(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 32769: result = fromtext_dlv(rdclass, type, lexer, origin, options, target, callbacks); break; \ - case 65533: result = fromtext_keydata(rdclass, type, lexer, origin, options, target, callbacks); break; \ - default: result = DNS_R_UNKNOWN; break; \ - } - -#define TOTEXTSWITCH \ - switch (rdata->type) { \ - case 1: switch (rdata->rdclass) { \ - case 1: result = totext_in_a(rdata, tctx, target); break; \ - case 3: result = totext_ch_a(rdata, tctx, target); break; \ - case 4: result = totext_hs_a(rdata, tctx, target); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 2: result = totext_ns(rdata, tctx, target); break; \ - case 3: result = totext_md(rdata, tctx, target); break; \ - case 4: result = totext_mf(rdata, tctx, target); break; \ - case 5: result = totext_cname(rdata, tctx, target); break; \ - case 6: result = totext_soa(rdata, tctx, target); break; \ - case 7: result = totext_mb(rdata, tctx, target); break; \ - case 8: result = totext_mg(rdata, tctx, target); break; \ - case 9: result = totext_mr(rdata, tctx, target); break; \ - case 10: result = totext_null(rdata, tctx, target); break; \ - case 11: switch (rdata->rdclass) { \ - case 1: result = totext_in_wks(rdata, tctx, target); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 12: result = totext_ptr(rdata, tctx, target); break; \ - case 13: result = totext_hinfo(rdata, tctx, target); break; \ - case 14: result = totext_minfo(rdata, tctx, target); break; \ - case 15: result = totext_mx(rdata, tctx, target); break; \ - case 16: result = totext_txt(rdata, tctx, target); break; \ - case 17: result = totext_rp(rdata, tctx, target); break; \ - case 18: result = totext_afsdb(rdata, tctx, target); break; \ - case 19: result = totext_x25(rdata, tctx, target); break; \ - case 20: result = totext_isdn(rdata, tctx, target); break; \ - case 21: result = totext_rt(rdata, tctx, target); break; \ - case 22: switch (rdata->rdclass) { \ - case 1: result = totext_in_nsap(rdata, tctx, target); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 23: switch (rdata->rdclass) { \ - case 1: result = totext_in_nsap_ptr(rdata, tctx, target); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 24: result = totext_sig(rdata, tctx, target); break; \ - case 25: result = totext_key(rdata, tctx, target); break; \ - case 26: switch (rdata->rdclass) { \ - case 1: result = totext_in_px(rdata, tctx, target); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 27: result = totext_gpos(rdata, tctx, target); break; \ - case 28: switch (rdata->rdclass) { \ - case 1: result = totext_in_aaaa(rdata, tctx, target); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 29: result = totext_loc(rdata, tctx, target); break; \ - case 30: result = totext_nxt(rdata, tctx, target); break; \ - case 33: switch (rdata->rdclass) { \ - case 1: result = totext_in_srv(rdata, tctx, target); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 35: result = totext_naptr(rdata, tctx, target); break; \ - case 36: switch (rdata->rdclass) { \ - case 1: result = totext_in_kx(rdata, tctx, target); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 37: result = totext_cert(rdata, tctx, target); break; \ - case 38: switch (rdata->rdclass) { \ - case 1: result = totext_in_a6(rdata, tctx, target); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 39: result = totext_dname(rdata, tctx, target); break; \ - case 41: result = totext_opt(rdata, tctx, target); break; \ - case 42: switch (rdata->rdclass) { \ - case 1: result = totext_in_apl(rdata, tctx, target); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 43: result = totext_ds(rdata, tctx, target); break; \ - case 44: result = totext_sshfp(rdata, tctx, target); break; \ - case 45: result = totext_ipseckey(rdata, tctx, target); break; \ - case 46: result = totext_rrsig(rdata, tctx, target); break; \ - case 47: result = totext_nsec(rdata, tctx, target); break; \ - case 48: result = totext_dnskey(rdata, tctx, target); break; \ - case 49: switch (rdata->rdclass) { \ - case 1: result = totext_in_dhcid(rdata, tctx, target); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 50: result = totext_nsec3(rdata, tctx, target); break; \ - case 51: result = totext_nsec3param(rdata, tctx, target); break; \ - case 52: result = totext_tlsa(rdata, tctx, target); break; \ - case 55: result = totext_hip(rdata, tctx, target); break; \ - case 99: result = totext_spf(rdata, tctx, target); break; \ - case 103: result = totext_unspec(rdata, tctx, target); break; \ - case 104: result = totext_nid(rdata, tctx, target); break; \ - case 105: result = totext_l32(rdata, tctx, target); break; \ - case 106: result = totext_l64(rdata, tctx, target); break; \ - case 107: result = totext_lp(rdata, tctx, target); break; \ - case 108: result = totext_eui48(rdata, tctx, target); break; \ - case 109: result = totext_eui64(rdata, tctx, target); break; \ - case 249: result = totext_tkey(rdata, tctx, target); break; \ - case 250: switch (rdata->rdclass) { \ - case 255: result = totext_any_tsig(rdata, tctx, target); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 256: result = totext_uri(rdata, tctx, target); break; \ - case 32769: result = totext_dlv(rdata, tctx, target); break; \ - case 65533: result = totext_keydata(rdata, tctx, target); break; \ - default: use_default = ISC_TRUE; break; \ - } - -#define FROMWIRESWITCH \ - switch (type) { \ - case 1: switch (rdclass) { \ - case 1: result = fromwire_in_a(rdclass, type, source, dctx, options, target); break; \ - case 3: result = fromwire_ch_a(rdclass, type, source, dctx, options, target); break; \ - case 4: result = fromwire_hs_a(rdclass, type, source, dctx, options, target); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 2: result = fromwire_ns(rdclass, type, source, dctx, options, target); break; \ - case 3: result = fromwire_md(rdclass, type, source, dctx, options, target); break; \ - case 4: result = fromwire_mf(rdclass, type, source, dctx, options, target); break; \ - case 5: result = fromwire_cname(rdclass, type, source, dctx, options, target); break; \ - case 6: result = fromwire_soa(rdclass, type, source, dctx, options, target); break; \ - case 7: result = fromwire_mb(rdclass, type, source, dctx, options, target); break; \ - case 8: result = fromwire_mg(rdclass, type, source, dctx, options, target); break; \ - case 9: result = fromwire_mr(rdclass, type, source, dctx, options, target); break; \ - case 10: result = fromwire_null(rdclass, type, source, dctx, options, target); break; \ - case 11: switch (rdclass) { \ - case 1: result = fromwire_in_wks(rdclass, type, source, dctx, options, target); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 12: result = fromwire_ptr(rdclass, type, source, dctx, options, target); break; \ - case 13: result = fromwire_hinfo(rdclass, type, source, dctx, options, target); break; \ - case 14: result = fromwire_minfo(rdclass, type, source, dctx, options, target); break; \ - case 15: result = fromwire_mx(rdclass, type, source, dctx, options, target); break; \ - case 16: result = fromwire_txt(rdclass, type, source, dctx, options, target); break; \ - case 17: result = fromwire_rp(rdclass, type, source, dctx, options, target); break; \ - case 18: result = fromwire_afsdb(rdclass, type, source, dctx, options, target); break; \ - case 19: result = fromwire_x25(rdclass, type, source, dctx, options, target); break; \ - case 20: result = fromwire_isdn(rdclass, type, source, dctx, options, target); break; \ - case 21: result = fromwire_rt(rdclass, type, source, dctx, options, target); break; \ - case 22: switch (rdclass) { \ - case 1: result = fromwire_in_nsap(rdclass, type, source, dctx, options, target); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 23: switch (rdclass) { \ - case 1: result = fromwire_in_nsap_ptr(rdclass, type, source, dctx, options, target); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 24: result = fromwire_sig(rdclass, type, source, dctx, options, target); break; \ - case 25: result = fromwire_key(rdclass, type, source, dctx, options, target); break; \ - case 26: switch (rdclass) { \ - case 1: result = fromwire_in_px(rdclass, type, source, dctx, options, target); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 27: result = fromwire_gpos(rdclass, type, source, dctx, options, target); break; \ - case 28: switch (rdclass) { \ - case 1: result = fromwire_in_aaaa(rdclass, type, source, dctx, options, target); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 29: result = fromwire_loc(rdclass, type, source, dctx, options, target); break; \ - case 30: result = fromwire_nxt(rdclass, type, source, dctx, options, target); break; \ - case 33: switch (rdclass) { \ - case 1: result = fromwire_in_srv(rdclass, type, source, dctx, options, target); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 35: result = fromwire_naptr(rdclass, type, source, dctx, options, target); break; \ - case 36: switch (rdclass) { \ - case 1: result = fromwire_in_kx(rdclass, type, source, dctx, options, target); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 37: result = fromwire_cert(rdclass, type, source, dctx, options, target); break; \ - case 38: switch (rdclass) { \ - case 1: result = fromwire_in_a6(rdclass, type, source, dctx, options, target); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 39: result = fromwire_dname(rdclass, type, source, dctx, options, target); break; \ - case 41: result = fromwire_opt(rdclass, type, source, dctx, options, target); break; \ - case 42: switch (rdclass) { \ - case 1: result = fromwire_in_apl(rdclass, type, source, dctx, options, target); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 43: result = fromwire_ds(rdclass, type, source, dctx, options, target); break; \ - case 44: result = fromwire_sshfp(rdclass, type, source, dctx, options, target); break; \ - case 45: result = fromwire_ipseckey(rdclass, type, source, dctx, options, target); break; \ - case 46: result = fromwire_rrsig(rdclass, type, source, dctx, options, target); break; \ - case 47: result = fromwire_nsec(rdclass, type, source, dctx, options, target); break; \ - case 48: result = fromwire_dnskey(rdclass, type, source, dctx, options, target); break; \ - case 49: switch (rdclass) { \ - case 1: result = fromwire_in_dhcid(rdclass, type, source, dctx, options, target); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 50: result = fromwire_nsec3(rdclass, type, source, dctx, options, target); break; \ - case 51: result = fromwire_nsec3param(rdclass, type, source, dctx, options, target); break; \ - case 52: result = fromwire_tlsa(rdclass, type, source, dctx, options, target); break; \ - case 55: result = fromwire_hip(rdclass, type, source, dctx, options, target); break; \ - case 99: result = fromwire_spf(rdclass, type, source, dctx, options, target); break; \ - case 103: result = fromwire_unspec(rdclass, type, source, dctx, options, target); break; \ - case 104: result = fromwire_nid(rdclass, type, source, dctx, options, target); break; \ - case 105: result = fromwire_l32(rdclass, type, source, dctx, options, target); break; \ - case 106: result = fromwire_l64(rdclass, type, source, dctx, options, target); break; \ - case 107: result = fromwire_lp(rdclass, type, source, dctx, options, target); break; \ - case 108: result = fromwire_eui48(rdclass, type, source, dctx, options, target); break; \ - case 109: result = fromwire_eui64(rdclass, type, source, dctx, options, target); break; \ - case 249: result = fromwire_tkey(rdclass, type, source, dctx, options, target); break; \ - case 250: switch (rdclass) { \ - case 255: result = fromwire_any_tsig(rdclass, type, source, dctx, options, target); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 256: result = fromwire_uri(rdclass, type, source, dctx, options, target); break; \ - case 32769: result = fromwire_dlv(rdclass, type, source, dctx, options, target); break; \ - case 65533: result = fromwire_keydata(rdclass, type, source, dctx, options, target); break; \ - default: use_default = ISC_TRUE; break; \ - } - -#define TOWIRESWITCH \ - switch (rdata->type) { \ - case 1: switch (rdata->rdclass) { \ - case 1: result = towire_in_a(rdata, cctx, target); break; \ - case 3: result = towire_ch_a(rdata, cctx, target); break; \ - case 4: result = towire_hs_a(rdata, cctx, target); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 2: result = towire_ns(rdata, cctx, target); break; \ - case 3: result = towire_md(rdata, cctx, target); break; \ - case 4: result = towire_mf(rdata, cctx, target); break; \ - case 5: result = towire_cname(rdata, cctx, target); break; \ - case 6: result = towire_soa(rdata, cctx, target); break; \ - case 7: result = towire_mb(rdata, cctx, target); break; \ - case 8: result = towire_mg(rdata, cctx, target); break; \ - case 9: result = towire_mr(rdata, cctx, target); break; \ - case 10: result = towire_null(rdata, cctx, target); break; \ - case 11: switch (rdata->rdclass) { \ - case 1: result = towire_in_wks(rdata, cctx, target); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 12: result = towire_ptr(rdata, cctx, target); break; \ - case 13: result = towire_hinfo(rdata, cctx, target); break; \ - case 14: result = towire_minfo(rdata, cctx, target); break; \ - case 15: result = towire_mx(rdata, cctx, target); break; \ - case 16: result = towire_txt(rdata, cctx, target); break; \ - case 17: result = towire_rp(rdata, cctx, target); break; \ - case 18: result = towire_afsdb(rdata, cctx, target); break; \ - case 19: result = towire_x25(rdata, cctx, target); break; \ - case 20: result = towire_isdn(rdata, cctx, target); break; \ - case 21: result = towire_rt(rdata, cctx, target); break; \ - case 22: switch (rdata->rdclass) { \ - case 1: result = towire_in_nsap(rdata, cctx, target); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 23: switch (rdata->rdclass) { \ - case 1: result = towire_in_nsap_ptr(rdata, cctx, target); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 24: result = towire_sig(rdata, cctx, target); break; \ - case 25: result = towire_key(rdata, cctx, target); break; \ - case 26: switch (rdata->rdclass) { \ - case 1: result = towire_in_px(rdata, cctx, target); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 27: result = towire_gpos(rdata, cctx, target); break; \ - case 28: switch (rdata->rdclass) { \ - case 1: result = towire_in_aaaa(rdata, cctx, target); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 29: result = towire_loc(rdata, cctx, target); break; \ - case 30: result = towire_nxt(rdata, cctx, target); break; \ - case 33: switch (rdata->rdclass) { \ - case 1: result = towire_in_srv(rdata, cctx, target); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 35: result = towire_naptr(rdata, cctx, target); break; \ - case 36: switch (rdata->rdclass) { \ - case 1: result = towire_in_kx(rdata, cctx, target); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 37: result = towire_cert(rdata, cctx, target); break; \ - case 38: switch (rdata->rdclass) { \ - case 1: result = towire_in_a6(rdata, cctx, target); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 39: result = towire_dname(rdata, cctx, target); break; \ - case 41: result = towire_opt(rdata, cctx, target); break; \ - case 42: switch (rdata->rdclass) { \ - case 1: result = towire_in_apl(rdata, cctx, target); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 43: result = towire_ds(rdata, cctx, target); break; \ - case 44: result = towire_sshfp(rdata, cctx, target); break; \ - case 45: result = towire_ipseckey(rdata, cctx, target); break; \ - case 46: result = towire_rrsig(rdata, cctx, target); break; \ - case 47: result = towire_nsec(rdata, cctx, target); break; \ - case 48: result = towire_dnskey(rdata, cctx, target); break; \ - case 49: switch (rdata->rdclass) { \ - case 1: result = towire_in_dhcid(rdata, cctx, target); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 50: result = towire_nsec3(rdata, cctx, target); break; \ - case 51: result = towire_nsec3param(rdata, cctx, target); break; \ - case 52: result = towire_tlsa(rdata, cctx, target); break; \ - case 55: result = towire_hip(rdata, cctx, target); break; \ - case 99: result = towire_spf(rdata, cctx, target); break; \ - case 103: result = towire_unspec(rdata, cctx, target); break; \ - case 104: result = towire_nid(rdata, cctx, target); break; \ - case 105: result = towire_l32(rdata, cctx, target); break; \ - case 106: result = towire_l64(rdata, cctx, target); break; \ - case 107: result = towire_lp(rdata, cctx, target); break; \ - case 108: result = towire_eui48(rdata, cctx, target); break; \ - case 109: result = towire_eui64(rdata, cctx, target); break; \ - case 249: result = towire_tkey(rdata, cctx, target); break; \ - case 250: switch (rdata->rdclass) { \ - case 255: result = towire_any_tsig(rdata, cctx, target); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 256: result = towire_uri(rdata, cctx, target); break; \ - case 32769: result = towire_dlv(rdata, cctx, target); break; \ - case 65533: result = towire_keydata(rdata, cctx, target); break; \ - default: use_default = ISC_TRUE; break; \ - } - -#define COMPARESWITCH \ - switch (rdata1->type) { \ - case 1: switch (rdata1->rdclass) { \ - case 1: result = compare_in_a(rdata1, rdata2); break; \ - case 3: result = compare_ch_a(rdata1, rdata2); break; \ - case 4: result = compare_hs_a(rdata1, rdata2); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 2: result = compare_ns(rdata1, rdata2); break; \ - case 3: result = compare_md(rdata1, rdata2); break; \ - case 4: result = compare_mf(rdata1, rdata2); break; \ - case 5: result = compare_cname(rdata1, rdata2); break; \ - case 6: result = compare_soa(rdata1, rdata2); break; \ - case 7: result = compare_mb(rdata1, rdata2); break; \ - case 8: result = compare_mg(rdata1, rdata2); break; \ - case 9: result = compare_mr(rdata1, rdata2); break; \ - case 10: result = compare_null(rdata1, rdata2); break; \ - case 11: switch (rdata1->rdclass) { \ - case 1: result = compare_in_wks(rdata1, rdata2); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 12: result = compare_ptr(rdata1, rdata2); break; \ - case 13: result = compare_hinfo(rdata1, rdata2); break; \ - case 14: result = compare_minfo(rdata1, rdata2); break; \ - case 15: result = compare_mx(rdata1, rdata2); break; \ - case 16: result = compare_txt(rdata1, rdata2); break; \ - case 17: result = compare_rp(rdata1, rdata2); break; \ - case 18: result = compare_afsdb(rdata1, rdata2); break; \ - case 19: result = compare_x25(rdata1, rdata2); break; \ - case 20: result = compare_isdn(rdata1, rdata2); break; \ - case 21: result = compare_rt(rdata1, rdata2); break; \ - case 22: switch (rdata1->rdclass) { \ - case 1: result = compare_in_nsap(rdata1, rdata2); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 23: switch (rdata1->rdclass) { \ - case 1: result = compare_in_nsap_ptr(rdata1, rdata2); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 24: result = compare_sig(rdata1, rdata2); break; \ - case 25: result = compare_key(rdata1, rdata2); break; \ - case 26: switch (rdata1->rdclass) { \ - case 1: result = compare_in_px(rdata1, rdata2); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 27: result = compare_gpos(rdata1, rdata2); break; \ - case 28: switch (rdata1->rdclass) { \ - case 1: result = compare_in_aaaa(rdata1, rdata2); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 29: result = compare_loc(rdata1, rdata2); break; \ - case 30: result = compare_nxt(rdata1, rdata2); break; \ - case 33: switch (rdata1->rdclass) { \ - case 1: result = compare_in_srv(rdata1, rdata2); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 35: result = compare_naptr(rdata1, rdata2); break; \ - case 36: switch (rdata1->rdclass) { \ - case 1: result = compare_in_kx(rdata1, rdata2); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 37: result = compare_cert(rdata1, rdata2); break; \ - case 38: switch (rdata1->rdclass) { \ - case 1: result = compare_in_a6(rdata1, rdata2); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 39: result = compare_dname(rdata1, rdata2); break; \ - case 41: result = compare_opt(rdata1, rdata2); break; \ - case 42: switch (rdata1->rdclass) { \ - case 1: result = compare_in_apl(rdata1, rdata2); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 43: result = compare_ds(rdata1, rdata2); break; \ - case 44: result = compare_sshfp(rdata1, rdata2); break; \ - case 45: result = compare_ipseckey(rdata1, rdata2); break; \ - case 46: result = compare_rrsig(rdata1, rdata2); break; \ - case 47: result = compare_nsec(rdata1, rdata2); break; \ - case 48: result = compare_dnskey(rdata1, rdata2); break; \ - case 49: switch (rdata1->rdclass) { \ - case 1: result = compare_in_dhcid(rdata1, rdata2); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 50: result = compare_nsec3(rdata1, rdata2); break; \ - case 51: result = compare_nsec3param(rdata1, rdata2); break; \ - case 52: result = compare_tlsa(rdata1, rdata2); break; \ - case 55: result = compare_hip(rdata1, rdata2); break; \ - case 99: result = compare_spf(rdata1, rdata2); break; \ - case 103: result = compare_unspec(rdata1, rdata2); break; \ - case 104: result = compare_nid(rdata1, rdata2); break; \ - case 105: result = compare_l32(rdata1, rdata2); break; \ - case 106: result = compare_l64(rdata1, rdata2); break; \ - case 107: result = compare_lp(rdata1, rdata2); break; \ - case 108: result = compare_eui48(rdata1, rdata2); break; \ - case 109: result = compare_eui64(rdata1, rdata2); break; \ - case 249: result = compare_tkey(rdata1, rdata2); break; \ - case 250: switch (rdata1->rdclass) { \ - case 255: result = compare_any_tsig(rdata1, rdata2); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 256: result = compare_uri(rdata1, rdata2); break; \ - case 32769: result = compare_dlv(rdata1, rdata2); break; \ - case 65533: result = compare_keydata(rdata1, rdata2); break; \ - default: use_default = ISC_TRUE; break; \ - } - -#define CASECOMPARESWITCH \ - switch (rdata1->type) { \ - case 1: switch (rdata1->rdclass) { \ - case 1: result = casecompare_in_a(rdata1, rdata2); break; \ - case 3: result = casecompare_ch_a(rdata1, rdata2); break; \ - case 4: result = casecompare_hs_a(rdata1, rdata2); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 2: result = casecompare_ns(rdata1, rdata2); break; \ - case 3: result = casecompare_md(rdata1, rdata2); break; \ - case 4: result = casecompare_mf(rdata1, rdata2); break; \ - case 5: result = casecompare_cname(rdata1, rdata2); break; \ - case 6: result = casecompare_soa(rdata1, rdata2); break; \ - case 7: result = casecompare_mb(rdata1, rdata2); break; \ - case 8: result = casecompare_mg(rdata1, rdata2); break; \ - case 9: result = casecompare_mr(rdata1, rdata2); break; \ - case 10: result = casecompare_null(rdata1, rdata2); break; \ - case 11: switch (rdata1->rdclass) { \ - case 1: result = casecompare_in_wks(rdata1, rdata2); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 12: result = casecompare_ptr(rdata1, rdata2); break; \ - case 13: result = casecompare_hinfo(rdata1, rdata2); break; \ - case 14: result = casecompare_minfo(rdata1, rdata2); break; \ - case 15: result = casecompare_mx(rdata1, rdata2); break; \ - case 16: result = casecompare_txt(rdata1, rdata2); break; \ - case 17: result = casecompare_rp(rdata1, rdata2); break; \ - case 18: result = casecompare_afsdb(rdata1, rdata2); break; \ - case 19: result = casecompare_x25(rdata1, rdata2); break; \ - case 20: result = casecompare_isdn(rdata1, rdata2); break; \ - case 21: result = casecompare_rt(rdata1, rdata2); break; \ - case 22: switch (rdata1->rdclass) { \ - case 1: result = casecompare_in_nsap(rdata1, rdata2); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 23: switch (rdata1->rdclass) { \ - case 1: result = casecompare_in_nsap_ptr(rdata1, rdata2); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 24: result = casecompare_sig(rdata1, rdata2); break; \ - case 25: result = casecompare_key(rdata1, rdata2); break; \ - case 26: switch (rdata1->rdclass) { \ - case 1: result = casecompare_in_px(rdata1, rdata2); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 27: result = casecompare_gpos(rdata1, rdata2); break; \ - case 28: switch (rdata1->rdclass) { \ - case 1: result = casecompare_in_aaaa(rdata1, rdata2); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 29: result = casecompare_loc(rdata1, rdata2); break; \ - case 30: result = casecompare_nxt(rdata1, rdata2); break; \ - case 33: switch (rdata1->rdclass) { \ - case 1: result = casecompare_in_srv(rdata1, rdata2); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 35: result = casecompare_naptr(rdata1, rdata2); break; \ - case 36: switch (rdata1->rdclass) { \ - case 1: result = casecompare_in_kx(rdata1, rdata2); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 37: result = casecompare_cert(rdata1, rdata2); break; \ - case 38: switch (rdata1->rdclass) { \ - case 1: result = casecompare_in_a6(rdata1, rdata2); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 39: result = casecompare_dname(rdata1, rdata2); break; \ - case 41: result = casecompare_opt(rdata1, rdata2); break; \ - case 42: switch (rdata1->rdclass) { \ - case 1: result = casecompare_in_apl(rdata1, rdata2); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 43: result = casecompare_ds(rdata1, rdata2); break; \ - case 44: result = casecompare_sshfp(rdata1, rdata2); break; \ - case 45: result = casecompare_ipseckey(rdata1, rdata2); break; \ - case 46: result = casecompare_rrsig(rdata1, rdata2); break; \ - case 47: result = casecompare_nsec(rdata1, rdata2); break; \ - case 48: result = casecompare_dnskey(rdata1, rdata2); break; \ - case 49: switch (rdata1->rdclass) { \ - case 1: result = casecompare_in_dhcid(rdata1, rdata2); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 50: result = casecompare_nsec3(rdata1, rdata2); break; \ - case 51: result = casecompare_nsec3param(rdata1, rdata2); break; \ - case 52: result = casecompare_tlsa(rdata1, rdata2); break; \ - case 55: result = casecompare_hip(rdata1, rdata2); break; \ - case 99: result = casecompare_spf(rdata1, rdata2); break; \ - case 103: result = casecompare_unspec(rdata1, rdata2); break; \ - case 104: result = casecompare_nid(rdata1, rdata2); break; \ - case 105: result = casecompare_l32(rdata1, rdata2); break; \ - case 106: result = casecompare_l64(rdata1, rdata2); break; \ - case 107: result = casecompare_lp(rdata1, rdata2); break; \ - case 108: result = casecompare_eui48(rdata1, rdata2); break; \ - case 109: result = casecompare_eui64(rdata1, rdata2); break; \ - case 249: result = casecompare_tkey(rdata1, rdata2); break; \ - case 250: switch (rdata1->rdclass) { \ - case 255: result = casecompare_any_tsig(rdata1, rdata2); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 256: result = casecompare_uri(rdata1, rdata2); break; \ - case 32769: result = casecompare_dlv(rdata1, rdata2); break; \ - case 65533: result = casecompare_keydata(rdata1, rdata2); break; \ - default: use_default = ISC_TRUE; break; \ - } - -#define FROMSTRUCTSWITCH \ - switch (type) { \ - case 1: switch (rdclass) { \ - case 1: result = fromstruct_in_a(rdclass, type, source, target); break; \ - case 3: result = fromstruct_ch_a(rdclass, type, source, target); break; \ - case 4: result = fromstruct_hs_a(rdclass, type, source, target); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 2: result = fromstruct_ns(rdclass, type, source, target); break; \ - case 3: result = fromstruct_md(rdclass, type, source, target); break; \ - case 4: result = fromstruct_mf(rdclass, type, source, target); break; \ - case 5: result = fromstruct_cname(rdclass, type, source, target); break; \ - case 6: result = fromstruct_soa(rdclass, type, source, target); break; \ - case 7: result = fromstruct_mb(rdclass, type, source, target); break; \ - case 8: result = fromstruct_mg(rdclass, type, source, target); break; \ - case 9: result = fromstruct_mr(rdclass, type, source, target); break; \ - case 10: result = fromstruct_null(rdclass, type, source, target); break; \ - case 11: switch (rdclass) { \ - case 1: result = fromstruct_in_wks(rdclass, type, source, target); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 12: result = fromstruct_ptr(rdclass, type, source, target); break; \ - case 13: result = fromstruct_hinfo(rdclass, type, source, target); break; \ - case 14: result = fromstruct_minfo(rdclass, type, source, target); break; \ - case 15: result = fromstruct_mx(rdclass, type, source, target); break; \ - case 16: result = fromstruct_txt(rdclass, type, source, target); break; \ - case 17: result = fromstruct_rp(rdclass, type, source, target); break; \ - case 18: result = fromstruct_afsdb(rdclass, type, source, target); break; \ - case 19: result = fromstruct_x25(rdclass, type, source, target); break; \ - case 20: result = fromstruct_isdn(rdclass, type, source, target); break; \ - case 21: result = fromstruct_rt(rdclass, type, source, target); break; \ - case 22: switch (rdclass) { \ - case 1: result = fromstruct_in_nsap(rdclass, type, source, target); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 23: switch (rdclass) { \ - case 1: result = fromstruct_in_nsap_ptr(rdclass, type, source, target); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 24: result = fromstruct_sig(rdclass, type, source, target); break; \ - case 25: result = fromstruct_key(rdclass, type, source, target); break; \ - case 26: switch (rdclass) { \ - case 1: result = fromstruct_in_px(rdclass, type, source, target); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 27: result = fromstruct_gpos(rdclass, type, source, target); break; \ - case 28: switch (rdclass) { \ - case 1: result = fromstruct_in_aaaa(rdclass, type, source, target); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 29: result = fromstruct_loc(rdclass, type, source, target); break; \ - case 30: result = fromstruct_nxt(rdclass, type, source, target); break; \ - case 33: switch (rdclass) { \ - case 1: result = fromstruct_in_srv(rdclass, type, source, target); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 35: result = fromstruct_naptr(rdclass, type, source, target); break; \ - case 36: switch (rdclass) { \ - case 1: result = fromstruct_in_kx(rdclass, type, source, target); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 37: result = fromstruct_cert(rdclass, type, source, target); break; \ - case 38: switch (rdclass) { \ - case 1: result = fromstruct_in_a6(rdclass, type, source, target); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 39: result = fromstruct_dname(rdclass, type, source, target); break; \ - case 41: result = fromstruct_opt(rdclass, type, source, target); break; \ - case 42: switch (rdclass) { \ - case 1: result = fromstruct_in_apl(rdclass, type, source, target); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 43: result = fromstruct_ds(rdclass, type, source, target); break; \ - case 44: result = fromstruct_sshfp(rdclass, type, source, target); break; \ - case 45: result = fromstruct_ipseckey(rdclass, type, source, target); break; \ - case 46: result = fromstruct_rrsig(rdclass, type, source, target); break; \ - case 47: result = fromstruct_nsec(rdclass, type, source, target); break; \ - case 48: result = fromstruct_dnskey(rdclass, type, source, target); break; \ - case 49: switch (rdclass) { \ - case 1: result = fromstruct_in_dhcid(rdclass, type, source, target); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 50: result = fromstruct_nsec3(rdclass, type, source, target); break; \ - case 51: result = fromstruct_nsec3param(rdclass, type, source, target); break; \ - case 52: result = fromstruct_tlsa(rdclass, type, source, target); break; \ - case 55: result = fromstruct_hip(rdclass, type, source, target); break; \ - case 99: result = fromstruct_spf(rdclass, type, source, target); break; \ - case 103: result = fromstruct_unspec(rdclass, type, source, target); break; \ - case 104: result = fromstruct_nid(rdclass, type, source, target); break; \ - case 105: result = fromstruct_l32(rdclass, type, source, target); break; \ - case 106: result = fromstruct_l64(rdclass, type, source, target); break; \ - case 107: result = fromstruct_lp(rdclass, type, source, target); break; \ - case 108: result = fromstruct_eui48(rdclass, type, source, target); break; \ - case 109: result = fromstruct_eui64(rdclass, type, source, target); break; \ - case 249: result = fromstruct_tkey(rdclass, type, source, target); break; \ - case 250: switch (rdclass) { \ - case 255: result = fromstruct_any_tsig(rdclass, type, source, target); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 256: result = fromstruct_uri(rdclass, type, source, target); break; \ - case 32769: result = fromstruct_dlv(rdclass, type, source, target); break; \ - case 65533: result = fromstruct_keydata(rdclass, type, source, target); break; \ - default: use_default = ISC_TRUE; break; \ - } - -#define TOSTRUCTSWITCH \ - switch (rdata->type) { \ - case 1: switch (rdata->rdclass) { \ - case 1: result = tostruct_in_a(rdata, target, mctx); break; \ - case 3: result = tostruct_ch_a(rdata, target, mctx); break; \ - case 4: result = tostruct_hs_a(rdata, target, mctx); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 2: result = tostruct_ns(rdata, target, mctx); break; \ - case 3: result = tostruct_md(rdata, target, mctx); break; \ - case 4: result = tostruct_mf(rdata, target, mctx); break; \ - case 5: result = tostruct_cname(rdata, target, mctx); break; \ - case 6: result = tostruct_soa(rdata, target, mctx); break; \ - case 7: result = tostruct_mb(rdata, target, mctx); break; \ - case 8: result = tostruct_mg(rdata, target, mctx); break; \ - case 9: result = tostruct_mr(rdata, target, mctx); break; \ - case 10: result = tostruct_null(rdata, target, mctx); break; \ - case 11: switch (rdata->rdclass) { \ - case 1: result = tostruct_in_wks(rdata, target, mctx); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 12: result = tostruct_ptr(rdata, target, mctx); break; \ - case 13: result = tostruct_hinfo(rdata, target, mctx); break; \ - case 14: result = tostruct_minfo(rdata, target, mctx); break; \ - case 15: result = tostruct_mx(rdata, target, mctx); break; \ - case 16: result = tostruct_txt(rdata, target, mctx); break; \ - case 17: result = tostruct_rp(rdata, target, mctx); break; \ - case 18: result = tostruct_afsdb(rdata, target, mctx); break; \ - case 19: result = tostruct_x25(rdata, target, mctx); break; \ - case 20: result = tostruct_isdn(rdata, target, mctx); break; \ - case 21: result = tostruct_rt(rdata, target, mctx); break; \ - case 22: switch (rdata->rdclass) { \ - case 1: result = tostruct_in_nsap(rdata, target, mctx); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 23: switch (rdata->rdclass) { \ - case 1: result = tostruct_in_nsap_ptr(rdata, target, mctx); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 24: result = tostruct_sig(rdata, target, mctx); break; \ - case 25: result = tostruct_key(rdata, target, mctx); break; \ - case 26: switch (rdata->rdclass) { \ - case 1: result = tostruct_in_px(rdata, target, mctx); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 27: result = tostruct_gpos(rdata, target, mctx); break; \ - case 28: switch (rdata->rdclass) { \ - case 1: result = tostruct_in_aaaa(rdata, target, mctx); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 29: result = tostruct_loc(rdata, target, mctx); break; \ - case 30: result = tostruct_nxt(rdata, target, mctx); break; \ - case 33: switch (rdata->rdclass) { \ - case 1: result = tostruct_in_srv(rdata, target, mctx); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 35: result = tostruct_naptr(rdata, target, mctx); break; \ - case 36: switch (rdata->rdclass) { \ - case 1: result = tostruct_in_kx(rdata, target, mctx); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 37: result = tostruct_cert(rdata, target, mctx); break; \ - case 38: switch (rdata->rdclass) { \ - case 1: result = tostruct_in_a6(rdata, target, mctx); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 39: result = tostruct_dname(rdata, target, mctx); break; \ - case 41: result = tostruct_opt(rdata, target, mctx); break; \ - case 42: switch (rdata->rdclass) { \ - case 1: result = tostruct_in_apl(rdata, target, mctx); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 43: result = tostruct_ds(rdata, target, mctx); break; \ - case 44: result = tostruct_sshfp(rdata, target, mctx); break; \ - case 45: result = tostruct_ipseckey(rdata, target, mctx); break; \ - case 46: result = tostruct_rrsig(rdata, target, mctx); break; \ - case 47: result = tostruct_nsec(rdata, target, mctx); break; \ - case 48: result = tostruct_dnskey(rdata, target, mctx); break; \ - case 49: switch (rdata->rdclass) { \ - case 1: result = tostruct_in_dhcid(rdata, target, mctx); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 50: result = tostruct_nsec3(rdata, target, mctx); break; \ - case 51: result = tostruct_nsec3param(rdata, target, mctx); break; \ - case 52: result = tostruct_tlsa(rdata, target, mctx); break; \ - case 55: result = tostruct_hip(rdata, target, mctx); break; \ - case 99: result = tostruct_spf(rdata, target, mctx); break; \ - case 103: result = tostruct_unspec(rdata, target, mctx); break; \ - case 104: result = tostruct_nid(rdata, target, mctx); break; \ - case 105: result = tostruct_l32(rdata, target, mctx); break; \ - case 106: result = tostruct_l64(rdata, target, mctx); break; \ - case 107: result = tostruct_lp(rdata, target, mctx); break; \ - case 108: result = tostruct_eui48(rdata, target, mctx); break; \ - case 109: result = tostruct_eui64(rdata, target, mctx); break; \ - case 249: result = tostruct_tkey(rdata, target, mctx); break; \ - case 250: switch (rdata->rdclass) { \ - case 255: result = tostruct_any_tsig(rdata, target, mctx); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 256: result = tostruct_uri(rdata, target, mctx); break; \ - case 32769: result = tostruct_dlv(rdata, target, mctx); break; \ - case 65533: result = tostruct_keydata(rdata, target, mctx); break; \ - default: use_default = ISC_TRUE; break; \ - } - -#define FREESTRUCTSWITCH \ - switch (common->rdtype) { \ - case 1: switch (common->rdclass) { \ - case 1: freestruct_in_a(source); break; \ - case 3: freestruct_ch_a(source); break; \ - case 4: freestruct_hs_a(source); break; \ - default: break; \ - } \ - break; \ - case 2: freestruct_ns(source); break; \ - case 3: freestruct_md(source); break; \ - case 4: freestruct_mf(source); break; \ - case 5: freestruct_cname(source); break; \ - case 6: freestruct_soa(source); break; \ - case 7: freestruct_mb(source); break; \ - case 8: freestruct_mg(source); break; \ - case 9: freestruct_mr(source); break; \ - case 10: freestruct_null(source); break; \ - case 11: switch (common->rdclass) { \ - case 1: freestruct_in_wks(source); break; \ - default: break; \ - } \ - break; \ - case 12: freestruct_ptr(source); break; \ - case 13: freestruct_hinfo(source); break; \ - case 14: freestruct_minfo(source); break; \ - case 15: freestruct_mx(source); break; \ - case 16: freestruct_txt(source); break; \ - case 17: freestruct_rp(source); break; \ - case 18: freestruct_afsdb(source); break; \ - case 19: freestruct_x25(source); break; \ - case 20: freestruct_isdn(source); break; \ - case 21: freestruct_rt(source); break; \ - case 22: switch (common->rdclass) { \ - case 1: freestruct_in_nsap(source); break; \ - default: break; \ - } \ - break; \ - case 23: switch (common->rdclass) { \ - case 1: freestruct_in_nsap_ptr(source); break; \ - default: break; \ - } \ - break; \ - case 24: freestruct_sig(source); break; \ - case 25: freestruct_key(source); break; \ - case 26: switch (common->rdclass) { \ - case 1: freestruct_in_px(source); break; \ - default: break; \ - } \ - break; \ - case 27: freestruct_gpos(source); break; \ - case 28: switch (common->rdclass) { \ - case 1: freestruct_in_aaaa(source); break; \ - default: break; \ - } \ - break; \ - case 29: freestruct_loc(source); break; \ - case 30: freestruct_nxt(source); break; \ - case 33: switch (common->rdclass) { \ - case 1: freestruct_in_srv(source); break; \ - default: break; \ - } \ - break; \ - case 35: freestruct_naptr(source); break; \ - case 36: switch (common->rdclass) { \ - case 1: freestruct_in_kx(source); break; \ - default: break; \ - } \ - break; \ - case 37: freestruct_cert(source); break; \ - case 38: switch (common->rdclass) { \ - case 1: freestruct_in_a6(source); break; \ - default: break; \ - } \ - break; \ - case 39: freestruct_dname(source); break; \ - case 41: freestruct_opt(source); break; \ - case 42: switch (common->rdclass) { \ - case 1: freestruct_in_apl(source); break; \ - default: break; \ - } \ - break; \ - case 43: freestruct_ds(source); break; \ - case 44: freestruct_sshfp(source); break; \ - case 45: freestruct_ipseckey(source); break; \ - case 46: freestruct_rrsig(source); break; \ - case 47: freestruct_nsec(source); break; \ - case 48: freestruct_dnskey(source); break; \ - case 49: switch (common->rdclass) { \ - case 1: freestruct_in_dhcid(source); break; \ - default: break; \ - } \ - break; \ - case 50: freestruct_nsec3(source); break; \ - case 51: freestruct_nsec3param(source); break; \ - case 52: freestruct_tlsa(source); break; \ - case 55: freestruct_hip(source); break; \ - case 99: freestruct_spf(source); break; \ - case 103: freestruct_unspec(source); break; \ - case 104: freestruct_nid(source); break; \ - case 105: freestruct_l32(source); break; \ - case 106: freestruct_l64(source); break; \ - case 107: freestruct_lp(source); break; \ - case 108: freestruct_eui48(source); break; \ - case 109: freestruct_eui64(source); break; \ - case 249: freestruct_tkey(source); break; \ - case 250: switch (common->rdclass) { \ - case 255: freestruct_any_tsig(source); break; \ - default: break; \ - } \ - break; \ - case 256: freestruct_uri(source); break; \ - case 32769: freestruct_dlv(source); break; \ - case 65533: freestruct_keydata(source); break; \ - default: break; \ - } - -#define ADDITIONALDATASWITCH \ - switch (rdata->type) { \ - case 1: switch (rdata->rdclass) { \ - case 1: result = additionaldata_in_a(rdata, add, arg); break; \ - case 3: result = additionaldata_ch_a(rdata, add, arg); break; \ - case 4: result = additionaldata_hs_a(rdata, add, arg); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 2: result = additionaldata_ns(rdata, add, arg); break; \ - case 3: result = additionaldata_md(rdata, add, arg); break; \ - case 4: result = additionaldata_mf(rdata, add, arg); break; \ - case 5: result = additionaldata_cname(rdata, add, arg); break; \ - case 6: result = additionaldata_soa(rdata, add, arg); break; \ - case 7: result = additionaldata_mb(rdata, add, arg); break; \ - case 8: result = additionaldata_mg(rdata, add, arg); break; \ - case 9: result = additionaldata_mr(rdata, add, arg); break; \ - case 10: result = additionaldata_null(rdata, add, arg); break; \ - case 11: switch (rdata->rdclass) { \ - case 1: result = additionaldata_in_wks(rdata, add, arg); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 12: result = additionaldata_ptr(rdata, add, arg); break; \ - case 13: result = additionaldata_hinfo(rdata, add, arg); break; \ - case 14: result = additionaldata_minfo(rdata, add, arg); break; \ - case 15: result = additionaldata_mx(rdata, add, arg); break; \ - case 16: result = additionaldata_txt(rdata, add, arg); break; \ - case 17: result = additionaldata_rp(rdata, add, arg); break; \ - case 18: result = additionaldata_afsdb(rdata, add, arg); break; \ - case 19: result = additionaldata_x25(rdata, add, arg); break; \ - case 20: result = additionaldata_isdn(rdata, add, arg); break; \ - case 21: result = additionaldata_rt(rdata, add, arg); break; \ - case 22: switch (rdata->rdclass) { \ - case 1: result = additionaldata_in_nsap(rdata, add, arg); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 23: switch (rdata->rdclass) { \ - case 1: result = additionaldata_in_nsap_ptr(rdata, add, arg); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 24: result = additionaldata_sig(rdata, add, arg); break; \ - case 25: result = additionaldata_key(rdata, add, arg); break; \ - case 26: switch (rdata->rdclass) { \ - case 1: result = additionaldata_in_px(rdata, add, arg); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 27: result = additionaldata_gpos(rdata, add, arg); break; \ - case 28: switch (rdata->rdclass) { \ - case 1: result = additionaldata_in_aaaa(rdata, add, arg); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 29: result = additionaldata_loc(rdata, add, arg); break; \ - case 30: result = additionaldata_nxt(rdata, add, arg); break; \ - case 33: switch (rdata->rdclass) { \ - case 1: result = additionaldata_in_srv(rdata, add, arg); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 35: result = additionaldata_naptr(rdata, add, arg); break; \ - case 36: switch (rdata->rdclass) { \ - case 1: result = additionaldata_in_kx(rdata, add, arg); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 37: result = additionaldata_cert(rdata, add, arg); break; \ - case 38: switch (rdata->rdclass) { \ - case 1: result = additionaldata_in_a6(rdata, add, arg); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 39: result = additionaldata_dname(rdata, add, arg); break; \ - case 41: result = additionaldata_opt(rdata, add, arg); break; \ - case 42: switch (rdata->rdclass) { \ - case 1: result = additionaldata_in_apl(rdata, add, arg); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 43: result = additionaldata_ds(rdata, add, arg); break; \ - case 44: result = additionaldata_sshfp(rdata, add, arg); break; \ - case 45: result = additionaldata_ipseckey(rdata, add, arg); break; \ - case 46: result = additionaldata_rrsig(rdata, add, arg); break; \ - case 47: result = additionaldata_nsec(rdata, add, arg); break; \ - case 48: result = additionaldata_dnskey(rdata, add, arg); break; \ - case 49: switch (rdata->rdclass) { \ - case 1: result = additionaldata_in_dhcid(rdata, add, arg); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 50: result = additionaldata_nsec3(rdata, add, arg); break; \ - case 51: result = additionaldata_nsec3param(rdata, add, arg); break; \ - case 52: result = additionaldata_tlsa(rdata, add, arg); break; \ - case 55: result = additionaldata_hip(rdata, add, arg); break; \ - case 99: result = additionaldata_spf(rdata, add, arg); break; \ - case 103: result = additionaldata_unspec(rdata, add, arg); break; \ - case 104: result = additionaldata_nid(rdata, add, arg); break; \ - case 105: result = additionaldata_l32(rdata, add, arg); break; \ - case 106: result = additionaldata_l64(rdata, add, arg); break; \ - case 107: result = additionaldata_lp(rdata, add, arg); break; \ - case 108: result = additionaldata_eui48(rdata, add, arg); break; \ - case 109: result = additionaldata_eui64(rdata, add, arg); break; \ - case 249: result = additionaldata_tkey(rdata, add, arg); break; \ - case 250: switch (rdata->rdclass) { \ - case 255: result = additionaldata_any_tsig(rdata, add, arg); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 256: result = additionaldata_uri(rdata, add, arg); break; \ - case 32769: result = additionaldata_dlv(rdata, add, arg); break; \ - case 65533: result = additionaldata_keydata(rdata, add, arg); break; \ - default: use_default = ISC_TRUE; break; \ - } - -#define DIGESTSWITCH \ - switch (rdata->type) { \ - case 1: switch (rdata->rdclass) { \ - case 1: result = digest_in_a(rdata, digest, arg); break; \ - case 3: result = digest_ch_a(rdata, digest, arg); break; \ - case 4: result = digest_hs_a(rdata, digest, arg); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 2: result = digest_ns(rdata, digest, arg); break; \ - case 3: result = digest_md(rdata, digest, arg); break; \ - case 4: result = digest_mf(rdata, digest, arg); break; \ - case 5: result = digest_cname(rdata, digest, arg); break; \ - case 6: result = digest_soa(rdata, digest, arg); break; \ - case 7: result = digest_mb(rdata, digest, arg); break; \ - case 8: result = digest_mg(rdata, digest, arg); break; \ - case 9: result = digest_mr(rdata, digest, arg); break; \ - case 10: result = digest_null(rdata, digest, arg); break; \ - case 11: switch (rdata->rdclass) { \ - case 1: result = digest_in_wks(rdata, digest, arg); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 12: result = digest_ptr(rdata, digest, arg); break; \ - case 13: result = digest_hinfo(rdata, digest, arg); break; \ - case 14: result = digest_minfo(rdata, digest, arg); break; \ - case 15: result = digest_mx(rdata, digest, arg); break; \ - case 16: result = digest_txt(rdata, digest, arg); break; \ - case 17: result = digest_rp(rdata, digest, arg); break; \ - case 18: result = digest_afsdb(rdata, digest, arg); break; \ - case 19: result = digest_x25(rdata, digest, arg); break; \ - case 20: result = digest_isdn(rdata, digest, arg); break; \ - case 21: result = digest_rt(rdata, digest, arg); break; \ - case 22: switch (rdata->rdclass) { \ - case 1: result = digest_in_nsap(rdata, digest, arg); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 23: switch (rdata->rdclass) { \ - case 1: result = digest_in_nsap_ptr(rdata, digest, arg); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 24: result = digest_sig(rdata, digest, arg); break; \ - case 25: result = digest_key(rdata, digest, arg); break; \ - case 26: switch (rdata->rdclass) { \ - case 1: result = digest_in_px(rdata, digest, arg); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 27: result = digest_gpos(rdata, digest, arg); break; \ - case 28: switch (rdata->rdclass) { \ - case 1: result = digest_in_aaaa(rdata, digest, arg); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 29: result = digest_loc(rdata, digest, arg); break; \ - case 30: result = digest_nxt(rdata, digest, arg); break; \ - case 33: switch (rdata->rdclass) { \ - case 1: result = digest_in_srv(rdata, digest, arg); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 35: result = digest_naptr(rdata, digest, arg); break; \ - case 36: switch (rdata->rdclass) { \ - case 1: result = digest_in_kx(rdata, digest, arg); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 37: result = digest_cert(rdata, digest, arg); break; \ - case 38: switch (rdata->rdclass) { \ - case 1: result = digest_in_a6(rdata, digest, arg); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 39: result = digest_dname(rdata, digest, arg); break; \ - case 41: result = digest_opt(rdata, digest, arg); break; \ - case 42: switch (rdata->rdclass) { \ - case 1: result = digest_in_apl(rdata, digest, arg); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 43: result = digest_ds(rdata, digest, arg); break; \ - case 44: result = digest_sshfp(rdata, digest, arg); break; \ - case 45: result = digest_ipseckey(rdata, digest, arg); break; \ - case 46: result = digest_rrsig(rdata, digest, arg); break; \ - case 47: result = digest_nsec(rdata, digest, arg); break; \ - case 48: result = digest_dnskey(rdata, digest, arg); break; \ - case 49: switch (rdata->rdclass) { \ - case 1: result = digest_in_dhcid(rdata, digest, arg); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 50: result = digest_nsec3(rdata, digest, arg); break; \ - case 51: result = digest_nsec3param(rdata, digest, arg); break; \ - case 52: result = digest_tlsa(rdata, digest, arg); break; \ - case 55: result = digest_hip(rdata, digest, arg); break; \ - case 99: result = digest_spf(rdata, digest, arg); break; \ - case 103: result = digest_unspec(rdata, digest, arg); break; \ - case 104: result = digest_nid(rdata, digest, arg); break; \ - case 105: result = digest_l32(rdata, digest, arg); break; \ - case 106: result = digest_l64(rdata, digest, arg); break; \ - case 107: result = digest_lp(rdata, digest, arg); break; \ - case 108: result = digest_eui48(rdata, digest, arg); break; \ - case 109: result = digest_eui64(rdata, digest, arg); break; \ - case 249: result = digest_tkey(rdata, digest, arg); break; \ - case 250: switch (rdata->rdclass) { \ - case 255: result = digest_any_tsig(rdata, digest, arg); break; \ - default: use_default = ISC_TRUE; break; \ - } \ - break; \ - case 256: result = digest_uri(rdata, digest, arg); break; \ - case 32769: result = digest_dlv(rdata, digest, arg); break; \ - case 65533: result = digest_keydata(rdata, digest, arg); break; \ - default: use_default = ISC_TRUE; break; \ - } - -#define CHECKOWNERSWITCH \ - switch (type) { \ - case 1: switch (rdclass) { \ - case 1: result = checkowner_in_a(name, rdclass, type, wildcard); break; \ - case 3: result = checkowner_ch_a(name, rdclass, type, wildcard); break; \ - case 4: result = checkowner_hs_a(name, rdclass, type, wildcard); break; \ - default: result = ISC_TRUE; break; \ - } \ - break; \ - case 2: result = checkowner_ns(name, rdclass, type, wildcard); break; \ - case 3: result = checkowner_md(name, rdclass, type, wildcard); break; \ - case 4: result = checkowner_mf(name, rdclass, type, wildcard); break; \ - case 5: result = checkowner_cname(name, rdclass, type, wildcard); break; \ - case 6: result = checkowner_soa(name, rdclass, type, wildcard); break; \ - case 7: result = checkowner_mb(name, rdclass, type, wildcard); break; \ - case 8: result = checkowner_mg(name, rdclass, type, wildcard); break; \ - case 9: result = checkowner_mr(name, rdclass, type, wildcard); break; \ - case 10: result = checkowner_null(name, rdclass, type, wildcard); break; \ - case 11: switch (rdclass) { \ - case 1: result = checkowner_in_wks(name, rdclass, type, wildcard); break; \ - default: result = ISC_TRUE; break; \ - } \ - break; \ - case 12: result = checkowner_ptr(name, rdclass, type, wildcard); break; \ - case 13: result = checkowner_hinfo(name, rdclass, type, wildcard); break; \ - case 14: result = checkowner_minfo(name, rdclass, type, wildcard); break; \ - case 15: result = checkowner_mx(name, rdclass, type, wildcard); break; \ - case 16: result = checkowner_txt(name, rdclass, type, wildcard); break; \ - case 17: result = checkowner_rp(name, rdclass, type, wildcard); break; \ - case 18: result = checkowner_afsdb(name, rdclass, type, wildcard); break; \ - case 19: result = checkowner_x25(name, rdclass, type, wildcard); break; \ - case 20: result = checkowner_isdn(name, rdclass, type, wildcard); break; \ - case 21: result = checkowner_rt(name, rdclass, type, wildcard); break; \ - case 22: switch (rdclass) { \ - case 1: result = checkowner_in_nsap(name, rdclass, type, wildcard); break; \ - default: result = ISC_TRUE; break; \ - } \ - break; \ - case 23: switch (rdclass) { \ - case 1: result = checkowner_in_nsap_ptr(name, rdclass, type, wildcard); break; \ - default: result = ISC_TRUE; break; \ - } \ - break; \ - case 24: result = checkowner_sig(name, rdclass, type, wildcard); break; \ - case 25: result = checkowner_key(name, rdclass, type, wildcard); break; \ - case 26: switch (rdclass) { \ - case 1: result = checkowner_in_px(name, rdclass, type, wildcard); break; \ - default: result = ISC_TRUE; break; \ - } \ - break; \ - case 27: result = checkowner_gpos(name, rdclass, type, wildcard); break; \ - case 28: switch (rdclass) { \ - case 1: result = checkowner_in_aaaa(name, rdclass, type, wildcard); break; \ - default: result = ISC_TRUE; break; \ - } \ - break; \ - case 29: result = checkowner_loc(name, rdclass, type, wildcard); break; \ - case 30: result = checkowner_nxt(name, rdclass, type, wildcard); break; \ - case 33: switch (rdclass) { \ - case 1: result = checkowner_in_srv(name, rdclass, type, wildcard); break; \ - default: result = ISC_TRUE; break; \ - } \ - break; \ - case 35: result = checkowner_naptr(name, rdclass, type, wildcard); break; \ - case 36: switch (rdclass) { \ - case 1: result = checkowner_in_kx(name, rdclass, type, wildcard); break; \ - default: result = ISC_TRUE; break; \ - } \ - break; \ - case 37: result = checkowner_cert(name, rdclass, type, wildcard); break; \ - case 38: switch (rdclass) { \ - case 1: result = checkowner_in_a6(name, rdclass, type, wildcard); break; \ - default: result = ISC_TRUE; break; \ - } \ - break; \ - case 39: result = checkowner_dname(name, rdclass, type, wildcard); break; \ - case 41: result = checkowner_opt(name, rdclass, type, wildcard); break; \ - case 42: switch (rdclass) { \ - case 1: result = checkowner_in_apl(name, rdclass, type, wildcard); break; \ - default: result = ISC_TRUE; break; \ - } \ - break; \ - case 43: result = checkowner_ds(name, rdclass, type, wildcard); break; \ - case 44: result = checkowner_sshfp(name, rdclass, type, wildcard); break; \ - case 45: result = checkowner_ipseckey(name, rdclass, type, wildcard); break; \ - case 46: result = checkowner_rrsig(name, rdclass, type, wildcard); break; \ - case 47: result = checkowner_nsec(name, rdclass, type, wildcard); break; \ - case 48: result = checkowner_dnskey(name, rdclass, type, wildcard); break; \ - case 49: switch (rdclass) { \ - case 1: result = checkowner_in_dhcid(name, rdclass, type, wildcard); break; \ - default: result = ISC_TRUE; break; \ - } \ - break; \ - case 50: result = checkowner_nsec3(name, rdclass, type, wildcard); break; \ - case 51: result = checkowner_nsec3param(name, rdclass, type, wildcard); break; \ - case 52: result = checkowner_tlsa(name, rdclass, type, wildcard); break; \ - case 55: result = checkowner_hip(name, rdclass, type, wildcard); break; \ - case 99: result = checkowner_spf(name, rdclass, type, wildcard); break; \ - case 103: result = checkowner_unspec(name, rdclass, type, wildcard); break; \ - case 104: result = checkowner_nid(name, rdclass, type, wildcard); break; \ - case 105: result = checkowner_l32(name, rdclass, type, wildcard); break; \ - case 106: result = checkowner_l64(name, rdclass, type, wildcard); break; \ - case 107: result = checkowner_lp(name, rdclass, type, wildcard); break; \ - case 108: result = checkowner_eui48(name, rdclass, type, wildcard); break; \ - case 109: result = checkowner_eui64(name, rdclass, type, wildcard); break; \ - case 249: result = checkowner_tkey(name, rdclass, type, wildcard); break; \ - case 250: switch (rdclass) { \ - case 255: result = checkowner_any_tsig(name, rdclass, type, wildcard); break; \ - default: result = ISC_TRUE; break; \ - } \ - break; \ - case 256: result = checkowner_uri(name, rdclass, type, wildcard); break; \ - case 32769: result = checkowner_dlv(name, rdclass, type, wildcard); break; \ - case 65533: result = checkowner_keydata(name, rdclass, type, wildcard); break; \ - default: result = ISC_TRUE; break; \ - } - -#define CHECKNAMESSWITCH \ - switch (rdata->type) { \ - case 1: switch (rdata->rdclass) { \ - case 1: result = checknames_in_a(rdata, owner, bad); break; \ - case 3: result = checknames_ch_a(rdata, owner, bad); break; \ - case 4: result = checknames_hs_a(rdata, owner, bad); break; \ - default: result = ISC_TRUE; break; \ - } \ - break; \ - case 2: result = checknames_ns(rdata, owner, bad); break; \ - case 3: result = checknames_md(rdata, owner, bad); break; \ - case 4: result = checknames_mf(rdata, owner, bad); break; \ - case 5: result = checknames_cname(rdata, owner, bad); break; \ - case 6: result = checknames_soa(rdata, owner, bad); break; \ - case 7: result = checknames_mb(rdata, owner, bad); break; \ - case 8: result = checknames_mg(rdata, owner, bad); break; \ - case 9: result = checknames_mr(rdata, owner, bad); break; \ - case 10: result = checknames_null(rdata, owner, bad); break; \ - case 11: switch (rdata->rdclass) { \ - case 1: result = checknames_in_wks(rdata, owner, bad); break; \ - default: result = ISC_TRUE; break; \ - } \ - break; \ - case 12: result = checknames_ptr(rdata, owner, bad); break; \ - case 13: result = checknames_hinfo(rdata, owner, bad); break; \ - case 14: result = checknames_minfo(rdata, owner, bad); break; \ - case 15: result = checknames_mx(rdata, owner, bad); break; \ - case 16: result = checknames_txt(rdata, owner, bad); break; \ - case 17: result = checknames_rp(rdata, owner, bad); break; \ - case 18: result = checknames_afsdb(rdata, owner, bad); break; \ - case 19: result = checknames_x25(rdata, owner, bad); break; \ - case 20: result = checknames_isdn(rdata, owner, bad); break; \ - case 21: result = checknames_rt(rdata, owner, bad); break; \ - case 22: switch (rdata->rdclass) { \ - case 1: result = checknames_in_nsap(rdata, owner, bad); break; \ - default: result = ISC_TRUE; break; \ - } \ - break; \ - case 23: switch (rdata->rdclass) { \ - case 1: result = checknames_in_nsap_ptr(rdata, owner, bad); break; \ - default: result = ISC_TRUE; break; \ - } \ - break; \ - case 24: result = checknames_sig(rdata, owner, bad); break; \ - case 25: result = checknames_key(rdata, owner, bad); break; \ - case 26: switch (rdata->rdclass) { \ - case 1: result = checknames_in_px(rdata, owner, bad); break; \ - default: result = ISC_TRUE; break; \ - } \ - break; \ - case 27: result = checknames_gpos(rdata, owner, bad); break; \ - case 28: switch (rdata->rdclass) { \ - case 1: result = checknames_in_aaaa(rdata, owner, bad); break; \ - default: result = ISC_TRUE; break; \ - } \ - break; \ - case 29: result = checknames_loc(rdata, owner, bad); break; \ - case 30: result = checknames_nxt(rdata, owner, bad); break; \ - case 33: switch (rdata->rdclass) { \ - case 1: result = checknames_in_srv(rdata, owner, bad); break; \ - default: result = ISC_TRUE; break; \ - } \ - break; \ - case 35: result = checknames_naptr(rdata, owner, bad); break; \ - case 36: switch (rdata->rdclass) { \ - case 1: result = checknames_in_kx(rdata, owner, bad); break; \ - default: result = ISC_TRUE; break; \ - } \ - break; \ - case 37: result = checknames_cert(rdata, owner, bad); break; \ - case 38: switch (rdata->rdclass) { \ - case 1: result = checknames_in_a6(rdata, owner, bad); break; \ - default: result = ISC_TRUE; break; \ - } \ - break; \ - case 39: result = checknames_dname(rdata, owner, bad); break; \ - case 41: result = checknames_opt(rdata, owner, bad); break; \ - case 42: switch (rdata->rdclass) { \ - case 1: result = checknames_in_apl(rdata, owner, bad); break; \ - default: result = ISC_TRUE; break; \ - } \ - break; \ - case 43: result = checknames_ds(rdata, owner, bad); break; \ - case 44: result = checknames_sshfp(rdata, owner, bad); break; \ - case 45: result = checknames_ipseckey(rdata, owner, bad); break; \ - case 46: result = checknames_rrsig(rdata, owner, bad); break; \ - case 47: result = checknames_nsec(rdata, owner, bad); break; \ - case 48: result = checknames_dnskey(rdata, owner, bad); break; \ - case 49: switch (rdata->rdclass) { \ - case 1: result = checknames_in_dhcid(rdata, owner, bad); break; \ - default: result = ISC_TRUE; break; \ - } \ - break; \ - case 50: result = checknames_nsec3(rdata, owner, bad); break; \ - case 51: result = checknames_nsec3param(rdata, owner, bad); break; \ - case 52: result = checknames_tlsa(rdata, owner, bad); break; \ - case 55: result = checknames_hip(rdata, owner, bad); break; \ - case 99: result = checknames_spf(rdata, owner, bad); break; \ - case 103: result = checknames_unspec(rdata, owner, bad); break; \ - case 104: result = checknames_nid(rdata, owner, bad); break; \ - case 105: result = checknames_l32(rdata, owner, bad); break; \ - case 106: result = checknames_l64(rdata, owner, bad); break; \ - case 107: result = checknames_lp(rdata, owner, bad); break; \ - case 108: result = checknames_eui48(rdata, owner, bad); break; \ - case 109: result = checknames_eui64(rdata, owner, bad); break; \ - case 249: result = checknames_tkey(rdata, owner, bad); break; \ - case 250: switch (rdata->rdclass) { \ - case 255: result = checknames_any_tsig(rdata, owner, bad); break; \ - default: result = ISC_TRUE; break; \ - } \ - break; \ - case 256: result = checknames_uri(rdata, owner, bad); break; \ - case 32769: result = checknames_dlv(rdata, owner, bad); break; \ - case 65533: result = checknames_keydata(rdata, owner, bad); break; \ - default: result = ISC_TRUE; break; \ - } -#define RDATATYPE_COMPARE(_s, _d, _tn, _n, _tp) \ - do { \ - if (sizeof(_s) - 1 == _n && \ - strncasecmp(_s,(_tn),(sizeof(_s) - 1)) == 0) { \ - if ((dns_rdatatype_attributes(_d) & DNS_RDATATYPEATTR_RESERVED) != 0) \ - return (ISC_R_NOTIMPLEMENTED); \ - *(_tp) = _d; \ - return (ISC_R_SUCCESS); \ - } \ - } while (0) - -#define RDATATYPE_FROMTEXT_SW(_hash,_typename,_length,_typep) \ - switch (_hash) { \ - case 16: \ - RDATATYPE_COMPARE("reserved0", 0, _typename, _length, _typep); \ - break; \ - case 34: \ - RDATATYPE_COMPARE("a", 1, _typename, _length, _typep); \ - break; \ - case 80: \ - RDATATYPE_COMPARE("ns", 2, _typename, _length, _typep); \ - break; \ - case 92: \ - RDATATYPE_COMPARE("md", 3, _typename, _length, _typep); \ - break; \ - case 58: \ - RDATATYPE_COMPARE("mf", 4, _typename, _length, _typep); \ - break; \ - case 8: \ - RDATATYPE_COMPARE("cname", 5, _typename, _length, _typep); \ - RDATATYPE_COMPARE("mx", 15, _typename, _length, _typep); \ - break; \ - case 182: \ - RDATATYPE_COMPARE("soa", 6, _typename, _length, _typep); \ - break; \ - case 126: \ - RDATATYPE_COMPARE("mb", 7, _typename, _length, _typep); \ - break; \ - case 169: \ - RDATATYPE_COMPARE("mg", 8, _typename, _length, _typep); \ - break; \ - case 110: \ - RDATATYPE_COMPARE("mr", 9, _typename, _length, _typep); \ - RDATATYPE_COMPARE("minfo", 14, _typename, _length, _typep); \ - break; \ - case 24: \ - RDATATYPE_COMPARE("null", 10, _typename, _length, _typep); \ - RDATATYPE_COMPARE("kx", 36, _typename, _length, _typep); \ - RDATATYPE_COMPARE("nsec3param", 51, _typename, _length, _typep); \ - break; \ - case 206: \ - RDATATYPE_COMPARE("wks", 11, _typename, _length, _typep); \ - break; \ - case 54: \ - RDATATYPE_COMPARE("ptr", 12, _typename, _length, _typep); \ - RDATATYPE_COMPARE("naptr", 35, _typename, _length, _typep); \ - break; \ - case 67: \ - RDATATYPE_COMPARE("hinfo", 13, _typename, _length, _typep); \ - break; \ - case 236: \ - RDATATYPE_COMPARE("txt", 16, _typename, _length, _typep); \ - break; \ - case 192: \ - RDATATYPE_COMPARE("rp", 17, _typename, _length, _typep); \ - break; \ - case 12: \ - RDATATYPE_COMPARE("afsdb", 18, _typename, _length, _typep); \ - break; \ - case 119: \ - RDATATYPE_COMPARE("x25", 19, _typename, _length, _typep); \ - break; \ - case 214: \ - RDATATYPE_COMPARE("isdn", 20, _typename, _length, _typep); \ - break; \ - case 144: \ - RDATATYPE_COMPARE("rt", 21, _typename, _length, _typep); \ - break; \ - case 224: \ - RDATATYPE_COMPARE("nsap", 22, _typename, _length, _typep); \ - RDATATYPE_COMPARE("uid", 101, _typename, _length, _typep); \ - break; \ - case 140: \ - RDATATYPE_COMPARE("nsap-ptr", 23, _typename, _length, _typep); \ - RDATATYPE_COMPARE("l64", 106, _typename, _length, _typep); \ - break; \ - case 122: \ - RDATATYPE_COMPARE("sig", 24, _typename, _length, _typep); \ - RDATATYPE_COMPARE("dlv", 32769, _typename, _length, _typep); \ - break; \ - case 254: \ - RDATATYPE_COMPARE("key", 25, _typename, _length, _typep); \ - break; \ - case 112: \ - RDATATYPE_COMPARE("px", 26, _typename, _length, _typep); \ - break; \ - case 17: \ - RDATATYPE_COMPARE("gpos", 27, _typename, _length, _typep); \ - break; \ - case 69: \ - RDATATYPE_COMPARE("aaaa", 28, _typename, _length, _typep); \ - RDATATYPE_COMPARE("atma", 34, _typename, _length, _typep); \ - break; \ - case 237: \ - RDATATYPE_COMPARE("loc", 29, _typename, _length, _typep); \ - break; \ - case 52: \ - RDATATYPE_COMPARE("nxt", 30, _typename, _length, _typep); \ - break; \ - case 160: \ - RDATATYPE_COMPARE("eid", 31, _typename, _length, _typep); \ - break; \ - case 220: \ - RDATATYPE_COMPARE("nimloc", 32, _typename, _length, _typep); \ - break; \ - case 100: \ - RDATATYPE_COMPARE("srv", 33, _typename, _length, _typep); \ - break; \ - case 172: \ - RDATATYPE_COMPARE("cert", 37, _typename, _length, _typep); \ - break; \ - case 226: \ - RDATATYPE_COMPARE("a6", 38, _typename, _length, _typep); \ - break; \ - case 109: \ - RDATATYPE_COMPARE("dname", 39, _typename, _length, _typep); \ - break; \ - case 168: \ - RDATATYPE_COMPARE("opt", 41, _typename, _length, _typep); \ - break; \ - case 48: \ - RDATATYPE_COMPARE("apl", 42, _typename, _length, _typep); \ - RDATATYPE_COMPARE("eui48", 108, _typename, _length, _typep); \ - break; \ - case 210: \ - RDATATYPE_COMPARE("ds", 43, _typename, _length, _typep); \ - break; \ - case 128: \ - RDATATYPE_COMPARE("sshfp", 44, _typename, _length, _typep); \ - break; \ - case 105: \ - RDATATYPE_COMPARE("ipseckey", 45, _typename, _length, _typep); \ - break; \ - case 225: \ - RDATATYPE_COMPARE("rrsig", 46, _typename, _length, _typep); \ - break; \ - case 22: \ - RDATATYPE_COMPARE("nsec", 47, _typename, _length, _typep); \ - break; \ - case 26: \ - RDATATYPE_COMPARE("dnskey", 48, _typename, _length, _typep); \ - break; \ - case 4: \ - RDATATYPE_COMPARE("dhcid", 49, _typename, _length, _typep); \ - RDATATYPE_COMPARE("spf", 99, _typename, _length, _typep); \ - break; \ - case 233: \ - RDATATYPE_COMPARE("nsec3", 50, _typename, _length, _typep); \ - break; \ - case 120: \ - RDATATYPE_COMPARE("tlsa", 52, _typename, _length, _typep); \ - break; \ - case 208: \ - RDATATYPE_COMPARE("hip", 55, _typename, _length, _typep); \ - break; \ - case 230: \ - RDATATYPE_COMPARE("uinfo", 100, _typename, _length, _typep); \ - break; \ - case 104: \ - RDATATYPE_COMPARE("gid", 102, _typename, _length, _typep); \ - break; \ - case 145: \ - RDATATYPE_COMPARE("unspec", 103, _typename, _length, _typep); \ - break; \ - case 36: \ - RDATATYPE_COMPARE("nid", 104, _typename, _length, _typep); \ - break; \ - case 174: \ - RDATATYPE_COMPARE("l32", 105, _typename, _length, _typep); \ - break; \ - case 32: \ - RDATATYPE_COMPARE("lp", 107, _typename, _length, _typep); \ - break; \ - case 136: \ - RDATATYPE_COMPARE("eui64", 109, _typename, _length, _typep); \ - break; \ - case 184: \ - RDATATYPE_COMPARE("tkey", 249, _typename, _length, _typep); \ - break; \ - case 72: \ - RDATATYPE_COMPARE("tsig", 250, _typename, _length, _typep); \ - break; \ - case 138: \ - RDATATYPE_COMPARE("ixfr", 251, _typename, _length, _typep); \ - break; \ - case 250: \ - RDATATYPE_COMPARE("axfr", 252, _typename, _length, _typep); \ - break; \ - case 164: \ - RDATATYPE_COMPARE("mailb", 253, _typename, _length, _typep); \ - break; \ - case 50: \ - RDATATYPE_COMPARE("maila", 254, _typename, _length, _typep); \ - RDATATYPE_COMPARE("keydata", 65533, _typename, _length, _typep); \ - break; \ - case 68: \ - RDATATYPE_COMPARE("any", 255, _typename, _length, _typep); \ - break; \ - case 56: \ - RDATATYPE_COMPARE("uri", 256, _typename, _length, _typep); \ - break; \ - } -#define RDATATYPE_ATTRIBUTE_SW \ - switch (type) { \ - case 0: return (DNS_RDATATYPEATTR_RESERVED); \ - case 1: return (RRTYPE_A_ATTRIBUTES); \ - case 2: return (RRTYPE_NS_ATTRIBUTES); \ - case 3: return (RRTYPE_MD_ATTRIBUTES); \ - case 4: return (RRTYPE_MF_ATTRIBUTES); \ - case 5: return (RRTYPE_CNAME_ATTRIBUTES); \ - case 6: return (RRTYPE_SOA_ATTRIBUTES); \ - case 7: return (RRTYPE_MB_ATTRIBUTES); \ - case 8: return (RRTYPE_MG_ATTRIBUTES); \ - case 9: return (RRTYPE_MR_ATTRIBUTES); \ - case 10: return (RRTYPE_NULL_ATTRIBUTES); \ - case 11: return (RRTYPE_WKS_ATTRIBUTES); \ - case 12: return (RRTYPE_PTR_ATTRIBUTES); \ - case 13: return (RRTYPE_HINFO_ATTRIBUTES); \ - case 14: return (RRTYPE_MINFO_ATTRIBUTES); \ - case 15: return (RRTYPE_MX_ATTRIBUTES); \ - case 16: return (RRTYPE_TXT_ATTRIBUTES); \ - case 17: return (RRTYPE_RP_ATTRIBUTES); \ - case 18: return (RRTYPE_AFSDB_ATTRIBUTES); \ - case 19: return (RRTYPE_X25_ATTRIBUTES); \ - case 20: return (RRTYPE_ISDN_ATTRIBUTES); \ - case 21: return (RRTYPE_RT_ATTRIBUTES); \ - case 22: return (RRTYPE_NSAP_ATTRIBUTES); \ - case 23: return (RRTYPE_NSAP_PTR_ATTRIBUTES); \ - case 24: return (RRTYPE_SIG_ATTRIBUTES); \ - case 25: return (RRTYPE_KEY_ATTRIBUTES); \ - case 26: return (RRTYPE_PX_ATTRIBUTES); \ - case 27: return (RRTYPE_GPOS_ATTRIBUTES); \ - case 28: return (RRTYPE_AAAA_ATTRIBUTES); \ - case 29: return (RRTYPE_LOC_ATTRIBUTES); \ - case 30: return (RRTYPE_NXT_ATTRIBUTES); \ - case 31: return (DNS_RDATATYPEATTR_RESERVED); \ - case 32: return (DNS_RDATATYPEATTR_RESERVED); \ - case 33: return (RRTYPE_SRV_ATTRIBUTES); \ - case 34: return (DNS_RDATATYPEATTR_RESERVED); \ - case 35: return (RRTYPE_NAPTR_ATTRIBUTES); \ - case 36: return (RRTYPE_KX_ATTRIBUTES); \ - case 37: return (RRTYPE_CERT_ATTRIBUTES); \ - case 38: return (RRTYPE_A6_ATTRIBUTES); \ - case 39: return (RRTYPE_DNAME_ATTRIBUTES); \ - case 41: return (RRTYPE_OPT_ATTRIBUTES); \ - case 42: return (RRTYPE_APL_ATTRIBUTES); \ - case 43: return (RRTYPE_DS_ATTRIBUTES); \ - case 44: return (RRTYPE_SSHFP_ATTRIBUTES); \ - case 45: return (RRTYPE_IPSECKEY_ATTRIBUTES); \ - case 46: return (RRTYPE_RRSIG_ATTRIBUTES); \ - case 47: return (RRTYPE_NSEC_ATTRIBUTES); \ - case 48: return (RRTYPE_DNSKEY_ATTRIBUTES); \ - case 49: return (RRTYPE_DHCID_ATTRIBUTES); \ - case 50: return (RRTYPE_NSEC3_ATTRIBUTES); \ - case 51: return (RRTYPE_NSEC3PARAM_ATTRIBUTES); \ - case 52: return (RRTYPE_TLSA_ATTRIBUTES); \ - case 55: return (RRTYPE_HIP_ATTRIBUTES); \ - case 99: return (RRTYPE_SPF_ATTRIBUTES); \ - case 100: return (DNS_RDATATYPEATTR_RESERVED); \ - case 101: return (DNS_RDATATYPEATTR_RESERVED); \ - case 102: return (DNS_RDATATYPEATTR_RESERVED); \ - case 103: return (RRTYPE_UNSPEC_ATTRIBUTES); \ - case 104: return (RRTYPE_NID_ATTRIBUTES); \ - case 105: return (RRTYPE_L32_ATTRIBUTES); \ - case 106: return (RRTYPE_L64_ATTRIBUTES); \ - case 107: return (RRTYPE_LP_ATTRIBUTES); \ - case 108: return (RRTYPE_EUI48_ATTRIBUTES); \ - case 109: return (RRTYPE_EUI64_ATTRIBUTES); \ - case 249: return (RRTYPE_TKEY_ATTRIBUTES); \ - case 250: return (RRTYPE_TSIG_ATTRIBUTES); \ - case 251: return (DNS_RDATATYPEATTR_META | DNS_RDATATYPEATTR_QUESTIONONLY); \ - case 252: return (DNS_RDATATYPEATTR_META | DNS_RDATATYPEATTR_QUESTIONONLY); \ - case 253: return (DNS_RDATATYPEATTR_META | DNS_RDATATYPEATTR_QUESTIONONLY); \ - case 254: return (DNS_RDATATYPEATTR_META | DNS_RDATATYPEATTR_QUESTIONONLY); \ - case 255: return (DNS_RDATATYPEATTR_META | DNS_RDATATYPEATTR_QUESTIONONLY); \ - case 256: return (RRTYPE_URI_ATTRIBUTES); \ - case 32769: return (RRTYPE_DLV_ATTRIBUTES); \ - case 65533: return (RRTYPE_KEYDATA_ATTRIBUTES); \ - } -#define RDATATYPE_TOTEXT_SW \ - switch (type) { \ - case 0: return (str_totext("RESERVED0", target)); \ - case 1: return (str_totext("A", target)); \ - case 2: return (str_totext("NS", target)); \ - case 3: return (str_totext("MD", target)); \ - case 4: return (str_totext("MF", target)); \ - case 5: return (str_totext("CNAME", target)); \ - case 6: return (str_totext("SOA", target)); \ - case 7: return (str_totext("MB", target)); \ - case 8: return (str_totext("MG", target)); \ - case 9: return (str_totext("MR", target)); \ - case 10: return (str_totext("NULL", target)); \ - case 11: return (str_totext("WKS", target)); \ - case 12: return (str_totext("PTR", target)); \ - case 13: return (str_totext("HINFO", target)); \ - case 14: return (str_totext("MINFO", target)); \ - case 15: return (str_totext("MX", target)); \ - case 16: return (str_totext("TXT", target)); \ - case 17: return (str_totext("RP", target)); \ - case 18: return (str_totext("AFSDB", target)); \ - case 19: return (str_totext("X25", target)); \ - case 20: return (str_totext("ISDN", target)); \ - case 21: return (str_totext("RT", target)); \ - case 22: return (str_totext("NSAP", target)); \ - case 23: return (str_totext("NSAP-PTR", target)); \ - case 24: return (str_totext("SIG", target)); \ - case 25: return (str_totext("KEY", target)); \ - case 26: return (str_totext("PX", target)); \ - case 27: return (str_totext("GPOS", target)); \ - case 28: return (str_totext("AAAA", target)); \ - case 29: return (str_totext("LOC", target)); \ - case 30: return (str_totext("NXT", target)); \ - case 31: return (str_totext("EID", target)); \ - case 32: return (str_totext("NIMLOC", target)); \ - case 33: return (str_totext("SRV", target)); \ - case 34: return (str_totext("ATMA", target)); \ - case 35: return (str_totext("NAPTR", target)); \ - case 36: return (str_totext("KX", target)); \ - case 37: return (str_totext("CERT", target)); \ - case 38: return (str_totext("A6", target)); \ - case 39: return (str_totext("DNAME", target)); \ - case 41: return (str_totext("OPT", target)); \ - case 42: return (str_totext("APL", target)); \ - case 43: return (str_totext("DS", target)); \ - case 44: return (str_totext("SSHFP", target)); \ - case 45: return (str_totext("IPSECKEY", target)); \ - case 46: return (str_totext("RRSIG", target)); \ - case 47: return (str_totext("NSEC", target)); \ - case 48: return (str_totext("DNSKEY", target)); \ - case 49: return (str_totext("DHCID", target)); \ - case 50: return (str_totext("NSEC3", target)); \ - case 51: return (str_totext("NSEC3PARAM", target)); \ - case 52: return (str_totext("TLSA", target)); \ - case 55: return (str_totext("HIP", target)); \ - case 99: return (str_totext("SPF", target)); \ - case 100: return (str_totext("UINFO", target)); \ - case 101: return (str_totext("UID", target)); \ - case 102: return (str_totext("GID", target)); \ - case 103: return (str_totext("UNSPEC", target)); \ - case 104: return (str_totext("NID", target)); \ - case 105: return (str_totext("L32", target)); \ - case 106: return (str_totext("L64", target)); \ - case 107: return (str_totext("LP", target)); \ - case 108: return (str_totext("EUI48", target)); \ - case 109: return (str_totext("EUI64", target)); \ - case 249: return (str_totext("TKEY", target)); \ - case 250: return (str_totext("TSIG", target)); \ - case 251: return (str_totext("IXFR", target)); \ - case 252: return (str_totext("AXFR", target)); \ - case 253: return (str_totext("MAILB", target)); \ - case 254: return (str_totext("MAILA", target)); \ - case 255: return (str_totext("ANY", target)); \ - case 256: return (str_totext("URI", target)); \ - case 32769: return (str_totext("DLV", target)); \ - case 65533: return (str_totext("KEYDATA", target)); \ - } -#endif /* DNS_CODE_H */ diff --git a/lib/bind/dns/dns/enumclass.h b/lib/bind/dns/dns/enumclass.h deleted file mode 100644 index f9249ec..0000000 --- a/lib/bind/dns/dns/enumclass.h +++ /dev/null @@ -1,50 +0,0 @@ -/* $FreeBSD$ */ - -/* - * Copyright (C) 2004-2013 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1998-2003 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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. - */ - -/*************** - *************** - *************** THIS FILE IS AUTOMATICALLY GENERATED BY gen.c. - *************** DO NOT EDIT! - *************** - ***************/ - -/*! \file */ - -#ifndef DNS_ENUMCLASS_H -#define DNS_ENUMCLASS_H 1 - -enum { - dns_rdataclass_reserved0 = 0, -#define dns_rdataclass_reserved0 \ - ((dns_rdataclass_t)dns_rdataclass_reserved0) - dns_rdataclass_in = 1, -#define dns_rdataclass_in ((dns_rdataclass_t)dns_rdataclass_in) - dns_rdataclass_chaos = 3, -#define dns_rdataclass_chaos ((dns_rdataclass_t)dns_rdataclass_chaos) - dns_rdataclass_ch = 3, -#define dns_rdataclass_ch ((dns_rdataclass_t)dns_rdataclass_ch) - dns_rdataclass_hs = 4, -#define dns_rdataclass_hs ((dns_rdataclass_t)dns_rdataclass_hs) - dns_rdataclass_none = 254, -#define dns_rdataclass_none ((dns_rdataclass_t)dns_rdataclass_none) - dns_rdataclass_any = 255 -#define dns_rdataclass_any ((dns_rdataclass_t)dns_rdataclass_any) -}; - -#endif /* DNS_ENUMCLASS_H */ diff --git a/lib/bind/dns/dns/enumtype.h b/lib/bind/dns/dns/enumtype.h deleted file mode 100644 index aa53689..0000000 --- a/lib/bind/dns/dns/enumtype.h +++ /dev/null @@ -1,172 +0,0 @@ -/* $FreeBSD$ */ - -/* - * Copyright (C) 2004-2013 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1998-2003 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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. - */ - -/*************** - *************** - *************** THIS FILE IS AUTOMATICALLY GENERATED BY gen.c. - *************** DO NOT EDIT! - *************** - ***************/ - -/*! \file */ - -#ifndef DNS_ENUMTYPE_H -#define DNS_ENUMTYPE_H 1 - -enum { - dns_rdatatype_none = 0, - dns_rdatatype_a = 1, - dns_rdatatype_ns = 2, - dns_rdatatype_md = 3, - dns_rdatatype_mf = 4, - dns_rdatatype_cname = 5, - dns_rdatatype_soa = 6, - dns_rdatatype_mb = 7, - dns_rdatatype_mg = 8, - dns_rdatatype_mr = 9, - dns_rdatatype_null = 10, - dns_rdatatype_wks = 11, - dns_rdatatype_ptr = 12, - dns_rdatatype_hinfo = 13, - dns_rdatatype_minfo = 14, - dns_rdatatype_mx = 15, - dns_rdatatype_txt = 16, - dns_rdatatype_rp = 17, - dns_rdatatype_afsdb = 18, - dns_rdatatype_x25 = 19, - dns_rdatatype_isdn = 20, - dns_rdatatype_rt = 21, - dns_rdatatype_nsap = 22, - dns_rdatatype_nsap_ptr = 23, - dns_rdatatype_sig = 24, - dns_rdatatype_key = 25, - dns_rdatatype_px = 26, - dns_rdatatype_gpos = 27, - dns_rdatatype_aaaa = 28, - dns_rdatatype_loc = 29, - dns_rdatatype_nxt = 30, - dns_rdatatype_srv = 33, - dns_rdatatype_naptr = 35, - dns_rdatatype_kx = 36, - dns_rdatatype_cert = 37, - dns_rdatatype_a6 = 38, - dns_rdatatype_dname = 39, - dns_rdatatype_opt = 41, - dns_rdatatype_apl = 42, - dns_rdatatype_ds = 43, - dns_rdatatype_sshfp = 44, - dns_rdatatype_ipseckey = 45, - dns_rdatatype_rrsig = 46, - dns_rdatatype_nsec = 47, - dns_rdatatype_dnskey = 48, - dns_rdatatype_dhcid = 49, - dns_rdatatype_nsec3 = 50, - dns_rdatatype_nsec3param = 51, - dns_rdatatype_tlsa = 52, - dns_rdatatype_hip = 55, - dns_rdatatype_spf = 99, - dns_rdatatype_unspec = 103, - dns_rdatatype_nid = 104, - dns_rdatatype_l32 = 105, - dns_rdatatype_l64 = 106, - dns_rdatatype_lp = 107, - dns_rdatatype_eui48 = 108, - dns_rdatatype_eui64 = 109, - dns_rdatatype_tkey = 249, - dns_rdatatype_tsig = 250, - dns_rdatatype_uri = 256, - dns_rdatatype_dlv = 32769, - dns_rdatatype_keydata = 65533, - dns_rdatatype_ixfr = 251, - dns_rdatatype_axfr = 252, - dns_rdatatype_mailb = 253, - dns_rdatatype_maila = 254, - dns_rdatatype_any = 255 -}; - -#define dns_rdatatype_none ((dns_rdatatype_t)dns_rdatatype_none) -#define dns_rdatatype_a ((dns_rdatatype_t)dns_rdatatype_a) -#define dns_rdatatype_ns ((dns_rdatatype_t)dns_rdatatype_ns) -#define dns_rdatatype_md ((dns_rdatatype_t)dns_rdatatype_md) -#define dns_rdatatype_mf ((dns_rdatatype_t)dns_rdatatype_mf) -#define dns_rdatatype_cname ((dns_rdatatype_t)dns_rdatatype_cname) -#define dns_rdatatype_soa ((dns_rdatatype_t)dns_rdatatype_soa) -#define dns_rdatatype_mb ((dns_rdatatype_t)dns_rdatatype_mb) -#define dns_rdatatype_mg ((dns_rdatatype_t)dns_rdatatype_mg) -#define dns_rdatatype_mr ((dns_rdatatype_t)dns_rdatatype_mr) -#define dns_rdatatype_null ((dns_rdatatype_t)dns_rdatatype_null) -#define dns_rdatatype_wks ((dns_rdatatype_t)dns_rdatatype_wks) -#define dns_rdatatype_ptr ((dns_rdatatype_t)dns_rdatatype_ptr) -#define dns_rdatatype_hinfo ((dns_rdatatype_t)dns_rdatatype_hinfo) -#define dns_rdatatype_minfo ((dns_rdatatype_t)dns_rdatatype_minfo) -#define dns_rdatatype_mx ((dns_rdatatype_t)dns_rdatatype_mx) -#define dns_rdatatype_txt ((dns_rdatatype_t)dns_rdatatype_txt) -#define dns_rdatatype_rp ((dns_rdatatype_t)dns_rdatatype_rp) -#define dns_rdatatype_afsdb ((dns_rdatatype_t)dns_rdatatype_afsdb) -#define dns_rdatatype_x25 ((dns_rdatatype_t)dns_rdatatype_x25) -#define dns_rdatatype_isdn ((dns_rdatatype_t)dns_rdatatype_isdn) -#define dns_rdatatype_rt ((dns_rdatatype_t)dns_rdatatype_rt) -#define dns_rdatatype_nsap ((dns_rdatatype_t)dns_rdatatype_nsap) -#define dns_rdatatype_nsap_ptr ((dns_rdatatype_t)dns_rdatatype_nsap_ptr) -#define dns_rdatatype_sig ((dns_rdatatype_t)dns_rdatatype_sig) -#define dns_rdatatype_key ((dns_rdatatype_t)dns_rdatatype_key) -#define dns_rdatatype_px ((dns_rdatatype_t)dns_rdatatype_px) -#define dns_rdatatype_gpos ((dns_rdatatype_t)dns_rdatatype_gpos) -#define dns_rdatatype_aaaa ((dns_rdatatype_t)dns_rdatatype_aaaa) -#define dns_rdatatype_loc ((dns_rdatatype_t)dns_rdatatype_loc) -#define dns_rdatatype_nxt ((dns_rdatatype_t)dns_rdatatype_nxt) -#define dns_rdatatype_srv ((dns_rdatatype_t)dns_rdatatype_srv) -#define dns_rdatatype_naptr ((dns_rdatatype_t)dns_rdatatype_naptr) -#define dns_rdatatype_kx ((dns_rdatatype_t)dns_rdatatype_kx) -#define dns_rdatatype_cert ((dns_rdatatype_t)dns_rdatatype_cert) -#define dns_rdatatype_a6 ((dns_rdatatype_t)dns_rdatatype_a6) -#define dns_rdatatype_dname ((dns_rdatatype_t)dns_rdatatype_dname) -#define dns_rdatatype_opt ((dns_rdatatype_t)dns_rdatatype_opt) -#define dns_rdatatype_apl ((dns_rdatatype_t)dns_rdatatype_apl) -#define dns_rdatatype_ds ((dns_rdatatype_t)dns_rdatatype_ds) -#define dns_rdatatype_sshfp ((dns_rdatatype_t)dns_rdatatype_sshfp) -#define dns_rdatatype_ipseckey ((dns_rdatatype_t)dns_rdatatype_ipseckey) -#define dns_rdatatype_rrsig ((dns_rdatatype_t)dns_rdatatype_rrsig) -#define dns_rdatatype_nsec ((dns_rdatatype_t)dns_rdatatype_nsec) -#define dns_rdatatype_dnskey ((dns_rdatatype_t)dns_rdatatype_dnskey) -#define dns_rdatatype_dhcid ((dns_rdatatype_t)dns_rdatatype_dhcid) -#define dns_rdatatype_nsec3 ((dns_rdatatype_t)dns_rdatatype_nsec3) -#define dns_rdatatype_nsec3param ((dns_rdatatype_t)dns_rdatatype_nsec3param) -#define dns_rdatatype_tlsa ((dns_rdatatype_t)dns_rdatatype_tlsa) -#define dns_rdatatype_hip ((dns_rdatatype_t)dns_rdatatype_hip) -#define dns_rdatatype_spf ((dns_rdatatype_t)dns_rdatatype_spf) -#define dns_rdatatype_unspec ((dns_rdatatype_t)dns_rdatatype_unspec) -#define dns_rdatatype_nid ((dns_rdatatype_t)dns_rdatatype_nid) -#define dns_rdatatype_l32 ((dns_rdatatype_t)dns_rdatatype_l32) -#define dns_rdatatype_l64 ((dns_rdatatype_t)dns_rdatatype_l64) -#define dns_rdatatype_lp ((dns_rdatatype_t)dns_rdatatype_lp) -#define dns_rdatatype_eui48 ((dns_rdatatype_t)dns_rdatatype_eui48) -#define dns_rdatatype_eui64 ((dns_rdatatype_t)dns_rdatatype_eui64) -#define dns_rdatatype_tkey ((dns_rdatatype_t)dns_rdatatype_tkey) -#define dns_rdatatype_tsig ((dns_rdatatype_t)dns_rdatatype_tsig) -#define dns_rdatatype_uri ((dns_rdatatype_t)dns_rdatatype_uri) -#define dns_rdatatype_dlv ((dns_rdatatype_t)dns_rdatatype_dlv) -#define dns_rdatatype_keydata ((dns_rdatatype_t)dns_rdatatype_keydata) -#define dns_rdatatype_ixfr ((dns_rdatatype_t)dns_rdatatype_ixfr) -#define dns_rdatatype_axfr ((dns_rdatatype_t)dns_rdatatype_axfr) -#define dns_rdatatype_mailb ((dns_rdatatype_t)dns_rdatatype_mailb) -#define dns_rdatatype_maila ((dns_rdatatype_t)dns_rdatatype_maila) -#define dns_rdatatype_any ((dns_rdatatype_t)dns_rdatatype_any) - -#endif /* DNS_ENUMTYPE_H */ diff --git a/lib/bind/dns/dns/rdatastruct.h b/lib/bind/dns/dns/rdatastruct.h deleted file mode 100644 index 3828c8e..0000000 --- a/lib/bind/dns/dns/rdatastruct.h +++ /dev/null @@ -1,2391 +0,0 @@ -/* $FreeBSD$ */ - -/* - * Copyright (C) 2004-2013 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1998-2003 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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. - */ - -/*************** - *************** - *************** THIS FILE IS AUTOMATICALLY GENERATED BY gen.c. - *************** DO NOT EDIT! - *************** - ***************/ - -/*! \file */ - -/* - * Copyright (C) 2004, 2007 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1999-2001 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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: rdatastructpre.h,v 1.16 2007/06/19 23:47:17 tbox Exp $ */ - -#ifndef DNS_RDATASTRUCT_H -#define DNS_RDATASTRUCT_H 1 - -#include <isc/lang.h> -#include <isc/sockaddr.h> - -#include <dns/name.h> -#include <dns/types.h> - -ISC_LANG_BEGINDECLS - -typedef struct dns_rdatacommon { - dns_rdataclass_t rdclass; - dns_rdatatype_t rdtype; - ISC_LINK(struct dns_rdatacommon) link; -} dns_rdatacommon_t; - -#define DNS_RDATACOMMON_INIT(_data, _rdtype, _rdclass) \ - do { \ - (_data)->common.rdtype = (_rdtype); \ - (_data)->common.rdclass = (_rdclass); \ - ISC_LINK_INIT(&(_data)->common, link); \ - } while (0) -/* - * Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1998-2001 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 IN_1_A_1_H -#define IN_1_A_1_H 1 - -/* $Id: a_1.h,v 1.28 2007/06/19 23:47:17 tbox Exp $ */ - -typedef struct dns_rdata_in_a { - dns_rdatacommon_t common; - struct in_addr in_addr; -} dns_rdata_in_a_t; - -#endif /* IN_1_A_1_H */ -/* - * Copyright (C) 2005, 2007 Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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: a_1.h,v 1.5 2007/06/19 23:47:17 tbox Exp $ */ - -/* by Bjorn.Victor@it.uu.se, 2005-05-07 */ -/* Based on generic/mx_15.h */ - -#ifndef CH_3_A_1_H -#define CH_3_A_1_H 1 - -typedef isc_uint16_t ch_addr_t; - -typedef struct dns_rdata_ch_a { - dns_rdatacommon_t common; - isc_mem_t *mctx; - dns_name_t ch_addr_dom; /* ch-addr domain for back mapping */ - ch_addr_t ch_addr; /* chaos address (16 bit) network order */ -} dns_rdata_ch_a_t; - -#endif /* CH_3_A_1_H */ -/* - * Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1999-2001 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 HS_4_A_1_H -#define HS_4_A_1_H 1 - -/* $Id: a_1.h,v 1.12 2007/06/19 23:47:17 tbox Exp $ */ - -typedef struct dns_rdata_hs_a { - dns_rdatacommon_t common; - struct in_addr in_addr; -} dns_rdata_hs_a_t; - -#endif /* HS_4_A_1_H */ -/* - * Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1998-2001 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 GENERIC_NS_2_H -#define GENERIC_NS_2_H 1 - -/* $Id: ns_2.h,v 1.27 2007/06/19 23:47:17 tbox Exp $ */ - -typedef struct dns_rdata_ns { - dns_rdatacommon_t common; - isc_mem_t *mctx; - dns_name_t name; -} dns_rdata_ns_t; - - -#endif /* GENERIC_NS_2_H */ -/* - * Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1998-2001 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 GENERIC_MD_3_H -#define GENERIC_MD_3_H 1 - -/* $Id: md_3.h,v 1.28 2007/06/19 23:47:17 tbox Exp $ */ - -typedef struct dns_rdata_md { - dns_rdatacommon_t common; - isc_mem_t *mctx; - dns_name_t md; -} dns_rdata_md_t; - - -#endif /* GENERIC_MD_3_H */ -/* - * Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1998-2001 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 GENERIC_MF_4_H -#define GENERIC_MF_4_H 1 - -/* $Id: mf_4.h,v 1.26 2007/06/19 23:47:17 tbox Exp $ */ - -typedef struct dns_rdata_mf { - dns_rdatacommon_t common; - isc_mem_t *mctx; - dns_name_t mf; -} dns_rdata_mf_t; - -#endif /* GENERIC_MF_4_H */ -/* - * Copyright (C) 2004, 2007 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1998-2001 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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: cname_5.h,v 1.26 2007/06/19 23:47:17 tbox Exp $ */ - -#ifndef GENERIC_CNAME_5_H -#define GENERIC_CNAME_5_H 1 - -typedef struct dns_rdata_cname { - dns_rdatacommon_t common; - isc_mem_t *mctx; - dns_name_t cname; -} dns_rdata_cname_t; - -#endif /* GENERIC_CNAME_5_H */ -/* - * Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1998-2001 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 GENERIC_SOA_6_H -#define GENERIC_SOA_6_H 1 - -/* $Id: soa_6.h,v 1.32 2007/06/19 23:47:17 tbox Exp $ */ - -typedef struct dns_rdata_soa { - dns_rdatacommon_t common; - isc_mem_t *mctx; - dns_name_t origin; - dns_name_t contact; - isc_uint32_t serial; /*%< host order */ - isc_uint32_t refresh; /*%< host order */ - isc_uint32_t retry; /*%< host order */ - isc_uint32_t expire; /*%< host order */ - isc_uint32_t minimum; /*%< host order */ -} dns_rdata_soa_t; - - -#endif /* GENERIC_SOA_6_H */ -/* - * Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1998-2001 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 GENERIC_MB_7_H -#define GENERIC_MB_7_H 1 - -/* $Id: mb_7.h,v 1.27 2007/06/19 23:47:17 tbox Exp $ */ - -typedef struct dns_rdata_mb { - dns_rdatacommon_t common; - isc_mem_t *mctx; - dns_name_t mb; -} dns_rdata_mb_t; - -#endif /* GENERIC_MB_7_H */ -/* - * Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1998-2001 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 GENERIC_MG_8_H -#define GENERIC_MG_8_H 1 - -/* $Id: mg_8.h,v 1.26 2007/06/19 23:47:17 tbox Exp $ */ - -typedef struct dns_rdata_mg { - dns_rdatacommon_t common; - isc_mem_t *mctx; - dns_name_t mg; -} dns_rdata_mg_t; - -#endif /* GENERIC_MG_8_H */ -/* - * Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1998-2001 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 GENERIC_MR_9_H -#define GENERIC_MR_9_H 1 - -/* $Id: mr_9.h,v 1.26 2007/06/19 23:47:17 tbox Exp $ */ - -typedef struct dns_rdata_mr { - dns_rdatacommon_t common; - isc_mem_t *mctx; - dns_name_t mr; -} dns_rdata_mr_t; - -#endif /* GENERIC_MR_9_H */ -/* - * Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1998-2001 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 GENERIC_NULL_10_H -#define GENERIC_NULL_10_H 1 - -/* $Id: null_10.h,v 1.25 2007/06/19 23:47:17 tbox Exp $ */ - -typedef struct dns_rdata_null { - dns_rdatacommon_t common; - isc_mem_t *mctx; - isc_uint16_t length; - unsigned char *data; -} dns_rdata_null_t; - - -#endif /* GENERIC_NULL_10_H */ -/* - * Copyright (C) 2004, 2007 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1999-2001 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 IN_1_WKS_11_H -#define IN_1_WKS_11_H 1 - -/* $Id: wks_11.h,v 1.22 2007/06/19 23:47:17 tbox Exp $ */ - -typedef struct dns_rdata_in_wks { - dns_rdatacommon_t common; - isc_mem_t *mctx; - struct in_addr in_addr; - isc_uint16_t protocol; - unsigned char *map; - isc_uint16_t map_len; -} dns_rdata_in_wks_t; - -#endif /* IN_1_WKS_11_H */ -/* - * Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1998-2001 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 GENERIC_PTR_12_H -#define GENERIC_PTR_12_H 1 - -/* $Id: ptr_12.h,v 1.27 2007/06/19 23:47:17 tbox Exp $ */ - -typedef struct dns_rdata_ptr { - dns_rdatacommon_t common; - isc_mem_t *mctx; - dns_name_t ptr; -} dns_rdata_ptr_t; - -#endif /* GENERIC_PTR_12_H */ -/* - * Copyright (C) 2004, 2007 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1998-2001 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 GENERIC_HINFO_13_H -#define GENERIC_HINFO_13_H 1 - -/* $Id: hinfo_13.h,v 1.25 2007/06/19 23:47:17 tbox Exp $ */ - -typedef struct dns_rdata_hinfo { - dns_rdatacommon_t common; - isc_mem_t *mctx; - char *cpu; - char *os; - isc_uint8_t cpu_len; - isc_uint8_t os_len; -} dns_rdata_hinfo_t; - -#endif /* GENERIC_HINFO_13_H */ -/* - * Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1998-2001 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 GENERIC_MINFO_14_H -#define GENERIC_MINFO_14_H 1 - -/* $Id: minfo_14.h,v 1.27 2007/06/19 23:47:17 tbox Exp $ */ - -typedef struct dns_rdata_minfo { - dns_rdatacommon_t common; - isc_mem_t *mctx; - dns_name_t rmailbox; - dns_name_t emailbox; -} dns_rdata_minfo_t; - -#endif /* GENERIC_MINFO_14_H */ -/* - * Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1998-2001 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 GENERIC_MX_15_H -#define GENERIC_MX_15_H 1 - -/* $Id: mx_15.h,v 1.29 2007/06/19 23:47:17 tbox Exp $ */ - -typedef struct dns_rdata_mx { - dns_rdatacommon_t common; - isc_mem_t *mctx; - isc_uint16_t pref; - dns_name_t mx; -} dns_rdata_mx_t; - -#endif /* GENERIC_MX_15_H */ -/* - * Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1998-2001 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 GENERIC_TXT_16_H -#define GENERIC_TXT_16_H 1 - -/* $Id: txt_16.h,v 1.28 2007/06/19 23:47:17 tbox Exp $ */ - -typedef struct dns_rdata_txt_string { - isc_uint8_t length; - unsigned char *data; -} dns_rdata_txt_string_t; - -typedef struct dns_rdata_txt { - dns_rdatacommon_t common; - isc_mem_t *mctx; - unsigned char *txt; - isc_uint16_t txt_len; - /* private */ - isc_uint16_t offset; -} dns_rdata_txt_t; - -/* - * ISC_LANG_BEGINDECLS and ISC_LANG_ENDDECLS are already done - * via rdatastructpre.h and rdatastructsuf.h. - */ - -isc_result_t -dns_rdata_txt_first(dns_rdata_txt_t *); - -isc_result_t -dns_rdata_txt_next(dns_rdata_txt_t *); - -isc_result_t -dns_rdata_txt_current(dns_rdata_txt_t *, dns_rdata_txt_string_t *); - -#endif /* GENERIC_TXT_16_H */ -/* - * Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1999-2001 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 GENERIC_RP_17_H -#define GENERIC_RP_17_H 1 - -/* $Id: rp_17.h,v 1.21 2007/06/19 23:47:17 tbox Exp $ */ - -/*! - * \brief Per RFC1183 */ - -typedef struct dns_rdata_rp { - dns_rdatacommon_t common; - isc_mem_t *mctx; - dns_name_t mail; - dns_name_t text; -} dns_rdata_rp_t; - - -#endif /* GENERIC_RP_17_H */ -/* - * Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1999-2001 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 GENERIC_AFSDB_18_H -#define GENERIC_AFSDB_18_H 1 - -/* $Id: afsdb_18.h,v 1.20 2007/06/19 23:47:17 tbox Exp $ */ - -/*! - * \brief Per RFC1183 */ - -typedef struct dns_rdata_afsdb { - dns_rdatacommon_t common; - isc_mem_t *mctx; - isc_uint16_t subtype; - dns_name_t server; -} dns_rdata_afsdb_t; - -#endif /* GENERIC_AFSDB_18_H */ - -/* - * Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1999-2001 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 GENERIC_X25_19_H -#define GENERIC_X25_19_H 1 - -/* $Id: x25_19.h,v 1.18 2007/06/19 23:47:17 tbox Exp $ */ - -/*! - * \brief Per RFC1183 */ - -typedef struct dns_rdata_x25 { - dns_rdatacommon_t common; - isc_mem_t *mctx; - unsigned char *x25; - isc_uint8_t x25_len; -} dns_rdata_x25_t; - -#endif /* GENERIC_X25_19_H */ -/* - * Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1999-2001 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 GENERIC_ISDN_20_H -#define GENERIC_ISDN_20_H 1 - -/* $Id: isdn_20.h,v 1.18 2007/06/19 23:47:17 tbox Exp $ */ - -/*! - * \brief Per RFC1183 */ - -typedef struct dns_rdata_isdn { - dns_rdatacommon_t common; - isc_mem_t *mctx; - char *isdn; - char *subaddress; - isc_uint8_t isdn_len; - isc_uint8_t subaddress_len; -} dns_rdata_isdn_t; - -#endif /* GENERIC_ISDN_20_H */ -/* - * Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1999-2001 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 GENERIC_RT_21_H -#define GENERIC_RT_21_H 1 - -/* $Id: rt_21.h,v 1.21 2007/06/19 23:47:17 tbox Exp $ */ - -/*! - * \brief Per RFC1183 */ - -typedef struct dns_rdata_rt { - dns_rdatacommon_t common; - isc_mem_t *mctx; - isc_uint16_t preference; - dns_name_t host; -} dns_rdata_rt_t; - -#endif /* GENERIC_RT_21_H */ -/* - * Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1999-2001 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 IN_1_NSAP_22_H -#define IN_1_NSAP_22_H 1 - -/* $Id: nsap_22.h,v 1.18 2007/06/19 23:47:17 tbox Exp $ */ - -/*! - * \brief Per RFC1706 */ - -typedef struct dns_rdata_in_nsap { - dns_rdatacommon_t common; - isc_mem_t *mctx; - unsigned char *nsap; - isc_uint16_t nsap_len; -} dns_rdata_in_nsap_t; - -#endif /* IN_1_NSAP_22_H */ -/* - * Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1999-2001 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 IN_1_NSAP_PTR_23_H -#define IN_1_NSAP_PTR_23_H 1 - -/* $Id: nsap-ptr_23.h,v 1.19 2007/06/19 23:47:17 tbox Exp $ */ - -/*! - * \brief Per RFC1348. Obsoleted in RFC 1706 - use PTR instead. */ - -typedef struct dns_rdata_in_nsap_ptr { - dns_rdatacommon_t common; - isc_mem_t *mctx; - dns_name_t owner; -} dns_rdata_in_nsap_ptr_t; - -#endif /* IN_1_NSAP_PTR_23_H */ -/* - * Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1999-2001 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 GENERIC_SIG_24_H -#define GENERIC_SIG_24_H 1 - -/* $Id: sig_24.h,v 1.26 2007/06/19 23:47:17 tbox Exp $ */ - -/*! - * \brief Per RFC2535 */ - -typedef struct dns_rdata_sig_t { - dns_rdatacommon_t common; - isc_mem_t * mctx; - dns_rdatatype_t covered; - dns_secalg_t algorithm; - isc_uint8_t labels; - isc_uint32_t originalttl; - isc_uint32_t timeexpire; - isc_uint32_t timesigned; - isc_uint16_t keyid; - dns_name_t signer; - isc_uint16_t siglen; - unsigned char * signature; -} dns_rdata_sig_t; - - -#endif /* GENERIC_SIG_24_H */ -/* - * Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1999-2001 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 GENERIC_KEY_25_H -#define GENERIC_KEY_25_H 1 - -/* $Id: key_25.h,v 1.19 2007/06/19 23:47:17 tbox Exp $ */ - -/*! - * \brief Per RFC2535 */ - -typedef struct dns_rdata_key_t { - dns_rdatacommon_t common; - isc_mem_t * mctx; - isc_uint16_t flags; - isc_uint8_t protocol; - isc_uint8_t algorithm; - isc_uint16_t datalen; - unsigned char * data; -} dns_rdata_key_t; - - -#endif /* GENERIC_KEY_25_H */ -/* - * Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1999-2001 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 IN_1_PX_26_H -#define IN_1_PX_26_H 1 - -/* $Id: px_26.h,v 1.19 2007/06/19 23:47:17 tbox Exp $ */ - -/*! - * \brief Per RFC2163 */ - -typedef struct dns_rdata_in_px { - dns_rdatacommon_t common; - isc_mem_t *mctx; - isc_uint16_t preference; - dns_name_t map822; - dns_name_t mapx400; -} dns_rdata_in_px_t; - -#endif /* IN_1_PX_26_H */ -/* - * Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1999-2001 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 GENERIC_GPOS_27_H -#define GENERIC_GPOS_27_H 1 - -/* $Id: gpos_27.h,v 1.17 2007/06/19 23:47:17 tbox Exp $ */ - -/*! - * \brief per RFC1712 */ - -typedef struct dns_rdata_gpos { - dns_rdatacommon_t common; - isc_mem_t *mctx; - char *longitude; - char *latitude; - char *altitude; - isc_uint8_t long_len; - isc_uint8_t lat_len; - isc_uint8_t alt_len; -} dns_rdata_gpos_t; - -#endif /* GENERIC_GPOS_27_H */ -/* - * Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1999-2001 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 IN_1_AAAA_28_H -#define IN_1_AAAA_28_H 1 - -/* $Id: aaaa_28.h,v 1.21 2007/06/19 23:47:17 tbox Exp $ */ - -/*! - * \brief Per RFC1886 */ - -typedef struct dns_rdata_in_aaaa { - dns_rdatacommon_t common; - struct in6_addr in6_addr; -} dns_rdata_in_aaaa_t; - -#endif /* IN_1_AAAA_28_H */ -/* - * Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1999-2001 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 GENERIC_LOC_29_H -#define GENERIC_LOC_29_H 1 - -/* $Id: loc_29.h,v 1.19 2007/06/19 23:47:17 tbox Exp $ */ - -/*! - * \brief Per RFC1876 */ - -typedef struct dns_rdata_loc_0 { - isc_uint8_t version; /* must be first and zero */ - isc_uint8_t size; - isc_uint8_t horizontal; - isc_uint8_t vertical; - isc_uint32_t latitude; - isc_uint32_t longitude; - isc_uint32_t altitude; -} dns_rdata_loc_0_t; - -typedef struct dns_rdata_loc { - dns_rdatacommon_t common; - union { - dns_rdata_loc_0_t v0; - } v; -} dns_rdata_loc_t; - -#endif /* GENERIC_LOC_29_H */ -/* - * Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1999-2002 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 GENERIC_NXT_30_H -#define GENERIC_NXT_30_H 1 - -/* $Id: nxt_30.h,v 1.25 2007/06/19 23:47:17 tbox Exp $ */ - -/*! - * \brief RFC2535 */ - -typedef struct dns_rdata_nxt { - dns_rdatacommon_t common; - isc_mem_t *mctx; - dns_name_t next; - unsigned char *typebits; - isc_uint16_t len; -} dns_rdata_nxt_t; - -#endif /* GENERIC_NXT_30_H */ -/* - * Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1999-2001 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 IN_1_SRV_33_H -#define IN_1_SRV_33_H 1 - -/* $Id: srv_33.h,v 1.19 2007/06/19 23:47:17 tbox Exp $ */ - -/* Reviewed: Fri Mar 17 13:01:00 PST 2000 by bwelling */ - -/*! - * \brief Per RFC2782 */ - -typedef struct dns_rdata_in_srv { - dns_rdatacommon_t common; - isc_mem_t *mctx; - isc_uint16_t priority; - isc_uint16_t weight; - isc_uint16_t port; - dns_name_t target; -} dns_rdata_in_srv_t; - -#endif /* IN_1_SRV_33_H */ -/* - * Copyright (C) 2004, 2005, 2007, 2011, 2012 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1999-2001 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 GENERIC_NAPTR_35_H -#define GENERIC_NAPTR_35_H 1 - -/* $Id$ */ - -/*! - * \brief Per RFC2915 */ - -typedef struct dns_rdata_naptr { - dns_rdatacommon_t common; - isc_mem_t *mctx; - isc_uint16_t order; - isc_uint16_t preference; - char *flags; - isc_uint8_t flags_len; - char *service; - isc_uint8_t service_len; - char *regexp; - isc_uint8_t regexp_len; - dns_name_t replacement; -} dns_rdata_naptr_t; - -#endif /* GENERIC_NAPTR_35_H */ -/* - * Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1999-2001 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 IN_1_KX_36_H -#define IN_1_KX_36_H 1 - -/* $Id: kx_36.h,v 1.20 2007/06/19 23:47:17 tbox Exp $ */ - -/*! - * \brief Per RFC2230 */ - -typedef struct dns_rdata_in_kx { - dns_rdatacommon_t common; - isc_mem_t *mctx; - isc_uint16_t preference; - dns_name_t exchange; -} dns_rdata_in_kx_t; - -#endif /* IN_1_KX_36_H */ -/* - * Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1999-2001 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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: cert_37.h,v 1.20 2007/06/19 23:47:17 tbox Exp $ */ - -#ifndef GENERIC_CERT_37_H -#define GENERIC_CERT_37_H 1 - -/*% RFC2538 */ -typedef struct dns_rdata_cert { - dns_rdatacommon_t common; - isc_mem_t *mctx; - isc_uint16_t type; - isc_uint16_t key_tag; - isc_uint8_t algorithm; - isc_uint16_t length; - unsigned char *certificate; -} dns_rdata_cert_t; - -#endif /* GENERIC_CERT_37_H */ -/* - * Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1999-2001 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 IN_1_A6_38_H -#define IN_1_A6_38_H 1 - -/* $Id: a6_38.h,v 1.24 2007/06/19 23:47:17 tbox Exp $ */ - -/*! - * \brief Per RFC2874 */ - -typedef struct dns_rdata_in_a6 { - dns_rdatacommon_t common; - isc_mem_t *mctx; - dns_name_t prefix; - isc_uint8_t prefixlen; - struct in6_addr in6_addr; -} dns_rdata_in_a6_t; - -#endif /* IN_1_A6_38_H */ -/* - * Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1999-2001 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 GENERIC_DNAME_39_H -#define GENERIC_DNAME_39_H 1 - -/* $Id: dname_39.h,v 1.21 2007/06/19 23:47:17 tbox Exp $ */ - -/*! - * \brief per RFC2672 */ - -typedef struct dns_rdata_dname { - dns_rdatacommon_t common; - isc_mem_t *mctx; - dns_name_t dname; -} dns_rdata_dname_t; - -#endif /* GENERIC_DNAME_39_H */ -/* - * Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1998-2001 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 GENERIC_OPT_41_H -#define GENERIC_OPT_41_H 1 - -/* $Id: opt_41.h,v 1.18 2007/06/19 23:47:17 tbox Exp $ */ - -/*! - * \brief Per RFC2671 */ - -typedef struct dns_rdata_opt_opcode { - isc_uint16_t opcode; - isc_uint16_t length; - unsigned char *data; -} dns_rdata_opt_opcode_t; - -typedef struct dns_rdata_opt { - dns_rdatacommon_t common; - isc_mem_t *mctx; - unsigned char *options; - isc_uint16_t length; - /* private */ - isc_uint16_t offset; -} dns_rdata_opt_t; - -/* - * ISC_LANG_BEGINDECLS and ISC_LANG_ENDDECLS are already done - * via rdatastructpre.h and rdatastructsuf.h. - */ - -isc_result_t -dns_rdata_opt_first(dns_rdata_opt_t *); - -isc_result_t -dns_rdata_opt_next(dns_rdata_opt_t *); - -isc_result_t -dns_rdata_opt_current(dns_rdata_opt_t *, dns_rdata_opt_opcode_t *); - -#endif /* GENERIC_OPT_41_H */ -/* - * Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 2002 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 IN_1_APL_42_H -#define IN_1_APL_42_H 1 - -/* $Id: apl_42.h,v 1.6 2007/06/19 23:47:17 tbox Exp $ */ - -typedef struct dns_rdata_apl_ent { - isc_boolean_t negative; - isc_uint16_t family; - isc_uint8_t prefix; - isc_uint8_t length; - unsigned char *data; -} dns_rdata_apl_ent_t; - -typedef struct dns_rdata_in_apl { - dns_rdatacommon_t common; - isc_mem_t *mctx; - /* type & class specific elements */ - unsigned char *apl; - isc_uint16_t apl_len; - /* private */ - isc_uint16_t offset; -} dns_rdata_in_apl_t; - -/* - * ISC_LANG_BEGINDECLS and ISC_LANG_ENDDECLS are already done - * via rdatastructpre.h and rdatastructsuf.h. - */ - -isc_result_t -dns_rdata_apl_first(dns_rdata_in_apl_t *); - -isc_result_t -dns_rdata_apl_next(dns_rdata_in_apl_t *); - -isc_result_t -dns_rdata_apl_current(dns_rdata_in_apl_t *, dns_rdata_apl_ent_t *); - -#endif /* IN_1_APL_42_H */ -/* - * Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 2002 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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: ds_43.h,v 1.7 2007/06/19 23:47:17 tbox Exp $ */ - -#ifndef GENERIC_DS_43_H -#define GENERIC_DS_43_H 1 - -/*! - * \brief per draft-ietf-dnsext-delegation-signer-05.txt */ -typedef struct dns_rdata_ds { - dns_rdatacommon_t common; - isc_mem_t *mctx; - isc_uint16_t key_tag; - isc_uint8_t algorithm; - isc_uint8_t digest_type; - isc_uint16_t length; - unsigned char *digest; -} dns_rdata_ds_t; - -#endif /* GENERIC_DS_43_H */ -/* - * Copyright (C) 2004-2007 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 2003 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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: sshfp_44.h,v 1.8 2007/06/19 23:47:17 tbox Exp $ */ - -/*! - * \brief Per RFC 4255 */ - -#ifndef GENERIC_SSHFP_44_H -#define GENERIC_SSHFP_44_H 1 - -typedef struct dns_rdata_sshfp { - dns_rdatacommon_t common; - isc_mem_t *mctx; - isc_uint8_t algorithm; - isc_uint8_t digest_type; - isc_uint16_t length; - unsigned char *digest; -} dns_rdata_sshfp_t; - -#endif /* GENERIC_SSHFP_44_H */ -/* - * Copyright (C) 2005, 2007 Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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: ipseckey_45.h,v 1.4 2007/06/19 23:47:17 tbox Exp $ */ - -#ifndef GENERIC_IPSECKEY_45_H -#define GENERIC_IPSECKEY_45_H 1 - -typedef struct dns_rdata_ipseckey { - dns_rdatacommon_t common; - isc_mem_t *mctx; - isc_uint8_t precedence; - isc_uint8_t gateway_type; - isc_uint8_t algorithm; - struct in_addr in_addr; /* gateway type 1 */ - struct in6_addr in6_addr; /* gateway type 2 */ - dns_name_t gateway; /* gateway type 3 */ - unsigned char *key; - isc_uint16_t keylength; -} dns_rdata_ipseckey_t; - -#endif /* GENERIC_IPSECKEY_45_H */ -/* - * Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 2003 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 GENERIC_DNSSIG_46_H -#define GENERIC_DNSSIG_46_H 1 - -/* $Id: rrsig_46.h,v 1.7 2007/06/19 23:47:17 tbox Exp $ */ - -/*! - * \brief Per RFC2535 */ -typedef struct dns_rdata_rrsig { - dns_rdatacommon_t common; - isc_mem_t * mctx; - dns_rdatatype_t covered; - dns_secalg_t algorithm; - isc_uint8_t labels; - isc_uint32_t originalttl; - isc_uint32_t timeexpire; - isc_uint32_t timesigned; - isc_uint16_t keyid; - dns_name_t signer; - isc_uint16_t siglen; - unsigned char * signature; -} dns_rdata_rrsig_t; - - -#endif /* GENERIC_DNSSIG_46_H */ -/* - * Copyright (C) 2004, 2005, 2007, 2008 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 2003 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 GENERIC_NSEC_47_H -#define GENERIC_NSEC_47_H 1 - -/* $Id: nsec_47.h,v 1.10 2008/07/15 23:47:21 tbox Exp $ */ - -/*! - * \brief Per RFC 3845 */ - -typedef struct dns_rdata_nsec { - dns_rdatacommon_t common; - isc_mem_t *mctx; - dns_name_t next; - unsigned char *typebits; - isc_uint16_t len; -} dns_rdata_nsec_t; - -#endif /* GENERIC_NSEC_47_H */ -/* - * Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 2003 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 GENERIC_DNSKEY_48_H -#define GENERIC_DNSKEY_48_H 1 - -/* $Id: dnskey_48.h,v 1.7 2007/06/19 23:47:17 tbox Exp $ */ - -/*! - * \brief per RFC2535 */ - -typedef struct dns_rdata_dnskey { - dns_rdatacommon_t common; - isc_mem_t * mctx; - isc_uint16_t flags; - isc_uint8_t protocol; - isc_uint8_t algorithm; - isc_uint16_t datalen; - unsigned char * data; -} dns_rdata_dnskey_t; - - -#endif /* GENERIC_DNSKEY_48_H */ -/* - * Copyright (C) 2006, 2007 Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 IN_1_DHCID_49_H -#define IN_1_DHCID_49_H 1 - -/* $Id: dhcid_49.h,v 1.5 2007/06/19 23:47:17 tbox Exp $ */ - -typedef struct dns_rdata_in_dhcid { - dns_rdatacommon_t common; - isc_mem_t *mctx; - unsigned char *dhcid; - unsigned int length; -} dns_rdata_in_dhcid_t; - -#endif /* IN_1_DHCID_49_H */ -/* - * Copyright (C) 2008, 2011, 2012 Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 GENERIC_NSEC3_50_H -#define GENERIC_NSEC3_50_H 1 - -/* $Id$ */ - -/*! - * \brief Per RFC 5155 */ - -#include <isc/iterated_hash.h> - -typedef struct dns_rdata_nsec3 { - dns_rdatacommon_t common; - isc_mem_t *mctx; - dns_hash_t hash; - unsigned char flags; - dns_iterations_t iterations; - unsigned char salt_length; - unsigned char next_length; - isc_uint16_t len; - unsigned char *salt; - unsigned char *next; - unsigned char *typebits; -} dns_rdata_nsec3_t; - -/* - * The corresponding NSEC3 interval is OPTOUT indicating possible - * insecure delegations. - */ -#define DNS_NSEC3FLAG_OPTOUT 0x01U - -/*% - * The following flags are used in the private-type record (implemented in - * lib/dns/private.c) which is used to store NSEC3PARAM data during the - * time when it is not legal to have an actual NSEC3PARAM record in the - * zone. They are defined here because the private-type record uses the - * same flags field for the OPTOUT flag above and for the private flags - * below. XXX: This should be considered for refactoring. - */ - -/*% - * Non-standard, private type only. - * - * Create a corresponding NSEC3 chain. - * Once the NSEC3 chain is complete this flag will be removed to signal - * that there is a complete chain. - * - * This flag is automatically set when a NSEC3PARAM record is added to - * the zone via UPDATE. - * - * NSEC3PARAM records containing this flag should never be published, - * but if they are, they should be ignored by RFC 5155 compliant - * nameservers. - */ -#define DNS_NSEC3FLAG_CREATE 0x80U - -/*% - * Non-standard, private type only. - * - * The corresponding NSEC3 set is to be removed once the NSEC chain - * has been generated. - * - * This flag is automatically set when the last active NSEC3PARAM record - * is removed from the zone via UPDATE. - * - * NSEC3PARAM records containing this flag should never be published, - * but if they are, they should be ignored by RFC 5155 compliant - * nameservers. - */ -#define DNS_NSEC3FLAG_REMOVE 0x40U - -/*% - * Non-standard, private type only. - * - * When set with the CREATE flag, a corresponding NSEC3 chain will be - * created when the zone becomes capable of supporting one (i.e., when it - * has a DNSKEY RRset containing at least one NSEC3-capable algorithm). - * Without this flag, NSEC3 chain creation would be attempted immediately, - * fail, and the private type record would be removed. With it, the NSEC3 - * parameters are stored until they can be used. When the zone has the - * necessary prerequisites for NSEC3, then the INITIAL flag can be cleared, - * and the record will be cleaned up normally. - * - * NSEC3PARAM records containing this flag should never be published, but - * if they are, they should be ignored by RFC 5155 compliant nameservers. - */ -#define DNS_NSEC3FLAG_INITIAL 0x20U - -/*% - * Non-standard, private type only. - * - * Prevent the creation of a NSEC chain before the last NSEC3 chain - * is removed. This will normally only be set when the zone is - * transitioning from secure with NSEC3 chains to insecure. - * - * NSEC3PARAM records containing this flag should never be published, - * but if they are, they should be ignored by RFC 5155 compliant - * nameservers. - */ -#define DNS_NSEC3FLAG_NONSEC 0x10U - -#endif /* GENERIC_NSEC3_50_H */ -/* - * Copyright (C) 2008 Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 GENERIC_NSEC3PARAM_51_H -#define GENERIC_NSEC3PARAM_51_H 1 - -/* $Id: nsec3param_51.h,v 1.4 2008/09/25 04:02:39 tbox Exp $ */ - -/*! - * \brief Per RFC 5155 */ - -#include <isc/iterated_hash.h> - -typedef struct dns_rdata_nsec3param { - dns_rdatacommon_t common; - isc_mem_t *mctx; - dns_hash_t hash; - unsigned char flags; /* DNS_NSEC3FLAG_* */ - dns_iterations_t iterations; - unsigned char salt_length; - unsigned char *salt; -} dns_rdata_nsec3param_t; - -#endif /* GENERIC_NSEC3PARAM_51_H */ -/* - * Copyright (C) 2012 Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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$ */ - -#ifndef GENERIC_TLSA_52_H -#define GENERIC_TLSA_52_H 1 - -/*! - * \brief per draft-ietf-dane-protocol-19.txt - */ -typedef struct dns_rdata_tlsa { - dns_rdatacommon_t common; - isc_mem_t *mctx; - isc_uint8_t usage; - isc_uint8_t selector; - isc_uint8_t match; - isc_uint16_t length; - unsigned char *data; -} dns_rdata_tlsa_t; - -#endif /* GENERIC_TLSA_52_H */ -/* - * Copyright (C) 2009 Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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: hip_55.h,v 1.2 2009/02/26 06:09:19 marka Exp $ */ - -#ifndef GENERIC_HIP_5_H -#define GENERIC_HIP_5_H 1 - -/* RFC 5205 */ - -typedef struct dns_rdata_hip { - dns_rdatacommon_t common; - isc_mem_t * mctx; - unsigned char * hit; - unsigned char * key; - unsigned char * servers; - isc_uint8_t algorithm; - isc_uint8_t hit_len; - isc_uint16_t key_len; - isc_uint16_t servers_len; - /* Private */ - isc_uint16_t offset; -} dns_rdata_hip_t; - -isc_result_t -dns_rdata_hip_first(dns_rdata_hip_t *); - -isc_result_t -dns_rdata_hip_next(dns_rdata_hip_t *); - -void -dns_rdata_hip_current(dns_rdata_hip_t *, dns_name_t *); - -#endif /* GENERIC_HIP_5_H */ -/* - * Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1998-2001 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 GENERIC_SPF_99_H -#define GENERIC_SPF_99_H 1 - -/* $Id: spf_99.h,v 1.4 2007/06/19 23:47:17 tbox Exp $ */ - -typedef struct dns_rdata_spf_string { - isc_uint8_t length; - unsigned char *data; -} dns_rdata_spf_string_t; - -typedef struct dns_rdata_spf { - dns_rdatacommon_t common; - isc_mem_t *mctx; - unsigned char *txt; - isc_uint16_t txt_len; - /* private */ - isc_uint16_t offset; -} dns_rdata_spf_t; - -/* - * ISC_LANG_BEGINDECLS and ISC_LANG_ENDDECLS are already done - * via rdatastructpre.h and rdatastructsuf.h. - */ - -isc_result_t -dns_rdata_spf_first(dns_rdata_spf_t *); - -isc_result_t -dns_rdata_spf_next(dns_rdata_spf_t *); - -isc_result_t -dns_rdata_spf_current(dns_rdata_spf_t *, dns_rdata_spf_string_t *); - -#endif /* GENERIC_SPF_99_H */ -/* - * Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1999-2001 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 GENERIC_UNSPEC_103_H -#define GENERIC_UNSPEC_103_H 1 - -/* $Id: unspec_103.h,v 1.17 2007/06/19 23:47:17 tbox Exp $ */ - -typedef struct dns_rdata_unspec_t { - dns_rdatacommon_t common; - isc_mem_t *mctx; - unsigned char *data; - isc_uint16_t datalen; -} dns_rdata_unspec_t; - -#endif /* GENERIC_UNSPEC_103_H */ -/* - * Copyright (C) 2013 Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 GENERIC_NID_104_H -#define GENERIC_NID_104_H 1 - -typedef struct dns_rdata_nid { - dns_rdatacommon_t common; - isc_uint16_t pref; - unsigned char nid[8]; -} dns_rdata_nid_t; - -#endif /* GENERIC_NID_104_H */ -/* - * Copyright (C) 2013 Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 GENERIC_L32_105_H -#define GENERIC_L32_105_H 1 - -typedef struct dns_rdata_l32 { - dns_rdatacommon_t common; - isc_uint16_t pref; - struct in_addr l32; -} dns_rdata_l32_t; - -#endif /* GENERIC_L32_105_H */ -/* - * Copyright (C) 2013 Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 GENERIC_L64_106_H -#define GENERIC_L64_106_H 1 - -typedef struct dns_rdata_l64 { - dns_rdatacommon_t common; - isc_uint16_t pref; - unsigned char l64[8]; -} dns_rdata_l64_t; - -#endif /* GENERIC_L64_106_H */ -/* - * Copyright (C) 2013 Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 GENERIC_LP_107_H -#define GENERIC_LP_107_H 1 - -typedef struct dns_rdata_lp { - dns_rdatacommon_t common; - isc_mem_t *mctx; - isc_uint16_t pref; - dns_name_t lp; -} dns_rdata_lp_t; - -#endif /* GENERIC_LP_107_H */ -/* - * Copyright (C) 2013 Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 GENERIC_EUI48_108_H -#define GENERIC_EUI48_108_H 1 - -typedef struct dns_rdata_eui48 { - dns_rdatacommon_t common; - unsigned char eui48[6]; -} dns_rdata_eui48_t; - -#endif /* GENERIC_EUI48_10k_H */ -/* - * Copyright (C) 2013 Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 GENERIC_EUI64_109_H -#define GENERIC_EUI64_109_H 1 - -typedef struct dns_rdata_eui64 { - dns_rdatacommon_t common; - unsigned char eui64[8]; -} dns_rdata_eui64_t; - -#endif /* GENERIC_EUI64_10k_H */ -/* - * Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1999-2001, 2003 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 GENERIC_TKEY_249_H -#define GENERIC_TKEY_249_H 1 - -/* $Id: tkey_249.h,v 1.24 2007/06/19 23:47:17 tbox Exp $ */ - -/*! - * \brief Per draft-ietf-dnsind-tkey-00.txt */ - -typedef struct dns_rdata_tkey { - dns_rdatacommon_t common; - isc_mem_t * mctx; - dns_name_t algorithm; - isc_uint32_t inception; - isc_uint32_t expire; - isc_uint16_t mode; - isc_uint16_t error; - isc_uint16_t keylen; - unsigned char * key; - isc_uint16_t otherlen; - unsigned char * other; -} dns_rdata_tkey_t; - - -#endif /* GENERIC_TKEY_249_H */ -/* - * Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1999-2001 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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: tsig_250.h,v 1.25 2007/06/19 23:47:17 tbox Exp $ */ - -#ifndef ANY_255_TSIG_250_H -#define ANY_255_TSIG_250_H 1 - -/*% RFC2845 */ -typedef struct dns_rdata_any_tsig { - dns_rdatacommon_t common; - isc_mem_t * mctx; - dns_name_t algorithm; - isc_uint64_t timesigned; - isc_uint16_t fudge; - isc_uint16_t siglen; - unsigned char * signature; - isc_uint16_t originalid; - isc_uint16_t error; - isc_uint16_t otherlen; - unsigned char * other; -} dns_rdata_any_tsig_t; - -#endif /* ANY_255_TSIG_250_H */ -/* - * Copyright (C) 2011, 2012 Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 GENERIC_URI_256_H -#define GENERIC_URI_256_H 1 - -/* $Id$ */ - -typedef struct dns_rdata_uri { - dns_rdatacommon_t common; - isc_mem_t * mctx; - isc_uint16_t priority; - isc_uint16_t weight; - unsigned char * target; - isc_uint16_t tgt_len; -} dns_rdata_uri_t; - -#endif /* GENERIC_URI_256_H */ -/* - * Copyright (C) 2004, 2006, 2007 Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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: dlv_32769.h,v 1.5 2007/06/19 23:47:17 tbox Exp $ */ - -/* draft-ietf-dnsext-delegation-signer-05.txt */ -#ifndef GENERIC_DLV_32769_H -#define GENERIC_DLV_32769_H 1 - -typedef struct dns_rdata_dlv { - dns_rdatacommon_t common; - isc_mem_t *mctx; - isc_uint16_t key_tag; - isc_uint8_t algorithm; - isc_uint8_t digest_type; - isc_uint16_t length; - unsigned char *digest; -} dns_rdata_dlv_t; - -#endif /* GENERIC_DLV_32769_H */ -/* - * Copyright (C) 2009 Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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 GENERIC_KEYDATA_65533_H -#define GENERIC_KEYDATA_65533_H 1 - -/* $Id: keydata_65533.h,v 1.2 2009/06/30 02:52:32 each Exp $ */ - -typedef struct dns_rdata_keydata { - dns_rdatacommon_t common; - isc_mem_t * mctx; - isc_uint32_t refresh; /* Timer for refreshing data */ - isc_uint32_t addhd; /* Hold-down timer for adding */ - isc_uint32_t removehd; /* Hold-down timer for removing */ - isc_uint16_t flags; /* Copy of DNSKEY_48 */ - isc_uint8_t protocol; - isc_uint8_t algorithm; - isc_uint16_t datalen; - unsigned char * data; -} dns_rdata_keydata_t; - -#endif /* GENERIC_KEYDATA_65533_H */ -/* - * Copyright (C) 2004, 2007 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1999-2001 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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: rdatastructsuf.h,v 1.10 2007/06/19 23:47:17 tbox Exp $ */ - -ISC_LANG_ENDDECLS - -#endif /* DNS_RDATASTRUCT_H */ diff --git a/lib/bind/isc/Makefile b/lib/bind/isc/Makefile deleted file mode 100644 index 773666e..0000000 --- a/lib/bind/isc/Makefile +++ /dev/null @@ -1,155 +0,0 @@ -# $FreeBSD$ - -.include <bsd.own.mk> - -BIND_DIR= ${.CURDIR}/../../../contrib/bind9 -LIB_BIND_REL= .. -LIB_BIND_DIR= ${.CURDIR}/${LIB_BIND_REL} -SRCDIR= ${BIND_DIR}/lib/isc - -.include "${LIB_BIND_DIR}/config.mk" - -LIB= isc - -.PATH: ${SRCDIR}/unix -SRCS+= app.c dir.c entropy.c \ - errno2result.c file.c fsaccess.c \ - interfaceiter.c keyboard.c net.c \ - os.c resource.c socket.c stdio.c \ - stdtime.c strerror.c syslog.c time.c \ - -.PATH: ${SRCDIR}/nls -SRCS+= msgcat.c \ - -.PATH: ${SRCDIR}/pthreads -SRCS+= condition.c mutex.c \ - thread.c - -.PATH: ${SRCDIR} -SRCS+= inet_pton.c \ - assertions.c backtrace.c base32.c base64.c bitstring.c \ - buffer.c bufferlist.c commandline.c error.c event.c \ - fsaccess.c hash.c \ - heap.c hex.c hmacmd5.c hmacsha.c \ - httpd.c inet_aton.c \ - inet_ntop.c \ - iterated_hash.c \ - lex.c lfsr.c lib.c log.c \ - md5.c mem.c mutexblock.c \ - netaddr.c netscope.c ondestroy.c \ - parseint.c pool.c portset.c \ - print.c \ - quota.c radix.c random.c \ - ratelimiter.c refcount.c region.c regex.c result.c rwlock.c \ - serial.c sha1.c sha2.c sockaddr.c stats.c string.c strtoul.c \ - symtab.c task.c taskpool.c timer.c version.c - -.PATH: ${.CURDIR} -SRCS+= backtrace-emptytbl.c - -CFLAGS+= -I${SRCDIR}/unix/include -I${SRCDIR}/pthreads/include -CFLAGS+= -I${SRCDIR}/include -I${.CURDIR} -CFLAGS+= -I${SRCDIR}/${ISC_ATOMIC_ARCH}/include - -DPADD= ${PTHREAD_DPADD} -LDADD= ${PTHREAD_LDADD} - -.if ${MK_BIND_LIBS} != "no" -INCS= ${SRCDIR}/include/isc/app.h \ - ${SRCDIR}/include/isc/assertions.h \ - ${SRCDIR}/include/isc/base32.h \ - ${SRCDIR}/include/isc/base64.h \ - ${SRCDIR}/include/isc/bind9.h \ - ${SRCDIR}/include/isc/bitstring.h \ - ${SRCDIR}/include/isc/boolean.h \ - ${SRCDIR}/include/isc/buffer.h \ - ${SRCDIR}/include/isc/bufferlist.h \ - ${SRCDIR}/include/isc/commandline.h \ - ${SRCDIR}/include/isc/entropy.h \ - ${SRCDIR}/include/isc/error.h \ - ${SRCDIR}/include/isc/event.h \ - ${SRCDIR}/include/isc/eventclass.h \ - ${SRCDIR}/include/isc/file.h \ - ${SRCDIR}/include/isc/formatcheck.h \ - ${SRCDIR}/include/isc/fsaccess.h \ - ${SRCDIR}/include/isc/hash.h \ - ${SRCDIR}/include/isc/heap.h \ - ${SRCDIR}/include/isc/hex.h \ - ${SRCDIR}/include/isc/hmacmd5.h \ - ${SRCDIR}/include/isc/hmacsha.h \ - ${SRCDIR}/include/isc/httpd.h \ - ${SRCDIR}/include/isc/iterated_hash.h \ - ${SRCDIR}/include/isc/interfaceiter.h \ - ${SRCDIR}/include/isc/ipv6.h \ - ${SRCDIR}/include/isc/lang.h \ - ${SRCDIR}/include/isc/lex.h \ - ${SRCDIR}/include/isc/lfsr.h \ - ${SRCDIR}/include/isc/lib.h \ - ${SRCDIR}/include/isc/list.h \ - ${SRCDIR}/include/isc/log.h \ - ${SRCDIR}/include/isc/magic.h \ - ${SRCDIR}/include/isc/md5.h \ - ${SRCDIR}/include/isc/mem.h \ - ${SRCDIR}/include/isc/msgcat.h \ - ${SRCDIR}/include/isc/msgs.h \ - ${SRCDIR}/include/isc/mutexblock.h \ - ${SRCDIR}/include/isc/namespace.h \ - ${SRCDIR}/include/isc/netaddr.h \ - ${SRCDIR}/include/isc/netscope.h \ - ${SRCDIR}/include/isc/ondestroy.h \ - ${SRCDIR}/include/isc/os.h \ - ${SRCDIR}/include/isc/parseint.h \ - ${SRCDIR}/include/isc/pool.h \ - ${SRCDIR}/include/isc/portset.h \ - ${SRCDIR}/include/isc/print.h \ - ${SRCDIR}/include/isc/queue.h \ - ${SRCDIR}/include/isc/quota.h \ - ${SRCDIR}/include/isc/radix.h \ - ${SRCDIR}/include/isc/random.h \ - ${SRCDIR}/include/isc/ratelimiter.h \ - ${SRCDIR}/include/isc/refcount.h \ - ${SRCDIR}/include/isc/region.h \ - ${SRCDIR}/include/isc/regex.h \ - ${SRCDIR}/include/isc/resource.h \ - ${SRCDIR}/include/isc/result.h \ - ${SRCDIR}/include/isc/resultclass.h \ - ${SRCDIR}/include/isc/rwlock.h \ - ${SRCDIR}/include/isc/serial.h \ - ${SRCDIR}/include/isc/sha1.h \ - ${SRCDIR}/include/isc/sha2.h \ - ${SRCDIR}/include/isc/sockaddr.h \ - ${SRCDIR}/include/isc/socket.h \ - ${SRCDIR}/include/isc/stats.h \ - ${SRCDIR}/include/isc/stdio.h \ - ${SRCDIR}/include/isc/stdlib.h \ - ${SRCDIR}/include/isc/string.h \ - ${SRCDIR}/include/isc/symtab.h \ - ${SRCDIR}/include/isc/task.h \ - ${SRCDIR}/include/isc/taskpool.h \ - ${SRCDIR}/include/isc/timer.h \ - ${SRCDIR}/include/isc/types.h \ - ${SRCDIR}/include/isc/util.h \ - ${SRCDIR}/include/isc/version.h \ - ${SRCDIR}/include/isc/xml.h \ - ${SRCDIR}/pthreads/include/isc/condition.h \ - ${SRCDIR}/pthreads/include/isc/mutex.h \ - ${SRCDIR}/pthreads/include/isc/once.h \ - ${SRCDIR}/pthreads/include/isc/thread.h \ - ${SRCDIR}/unix/include/isc/dir.h \ - ${SRCDIR}/unix/include/isc/int.h \ - ${SRCDIR}/unix/include/isc/keyboard.h \ - ${SRCDIR}/unix/include/isc/net.h \ - ${SRCDIR}/unix/include/isc/netdb.h \ - ${SRCDIR}/unix/include/isc/offset.h \ - ${SRCDIR}/unix/include/isc/stat.h \ - ${SRCDIR}/unix/include/isc/stdtime.h \ - ${SRCDIR}/unix/include/isc/strerror.h \ - ${SRCDIR}/unix/include/isc/syslog.h \ - ${SRCDIR}/unix/include/isc/time.h \ - ${SRCDIR}/${ISC_ATOMIC_ARCH}/include/isc/atomic.h \ - isc/platform.h - -INCSDIR= ${INCLUDEDIR}/isc -.endif - -.include <bsd.lib.mk> diff --git a/lib/bind/isc/Makefile.depend b/lib/bind/isc/Makefile.depend deleted file mode 100644 index 84c1819..0000000 --- a/lib/bind/isc/Makefile.depend +++ /dev/null @@ -1,15 +0,0 @@ -# Autogenerated - do NOT edit! - -DEP_RELDIR := ${_PARSEDIR:S,${SRCTOP}/,,} - -DIRDEPS = \ - include \ - include/arpa \ - include/xlocale \ - - -.include <dirdeps.mk> - -.if ${DEP_RELDIR} == ${_DEP_RELDIR} -# local dependencies - needed for -jN in clean tree -.endif diff --git a/lib/bind/isc/backtrace-emptytbl.c b/lib/bind/isc/backtrace-emptytbl.c deleted file mode 100644 index 9c50d95..0000000 --- a/lib/bind/isc/backtrace-emptytbl.c +++ /dev/null @@ -1,36 +0,0 @@ -/* $FreeBSD$ */ - -/* - * Copyright (C) 2009 Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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: backtrace-emptytbl.c,v 1.3 2009-09-01 20:13:44 each Exp $ */ - -/*! \file */ - -/* - * This file defines an empty (default) symbol table used in backtrace.c - * If the application wants to have a complete symbol table, it should redefine - * isc__backtrace_symtable with the complete table in some way, and link the - * version of the library not including this definition - * (e.g. libisc-nosymbol.a). - */ - -#include <config.h> - -#include <isc/backtrace.h> - -const int isc__backtrace_nsymbols = 0; -const isc_backtrace_symmap_t isc__backtrace_symtable[] = { { NULL, "" } }; diff --git a/lib/bind/isc/isc/platform.h b/lib/bind/isc/isc/platform.h deleted file mode 100644 index 61630f4..0000000 --- a/lib/bind/isc/isc/platform.h +++ /dev/null @@ -1,404 +0,0 @@ -/* $FreeBSD$ */ - -/* - * Copyright (C) 2004-2010 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 1999-2003 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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: platform.h.in,v 1.56 2010/12/18 01:56:23 each Exp $ */ - -#ifndef ISC_PLATFORM_H -#define ISC_PLATFORM_H 1 - -/*! \file */ - -/***** - ***** Platform-dependent defines. - *****/ - -/*** - *** Network. - ***/ - -/*! \brief - * Define if this system needs the <netinet/in6.h> header file included - * for full IPv6 support (pretty much only UnixWare). - */ -#undef ISC_PLATFORM_NEEDNETINETIN6H - -/*! \brief - * Define if this system needs the <netinet6/in6.h> header file included - * to support in6_pkinfo (pretty much only BSD/OS). - */ -#undef ISC_PLATFORM_NEEDNETINET6IN6H - -/*! \brief - * If sockaddrs on this system have an sa_len field, ISC_PLATFORM_HAVESALEN - * will be defined. - */ -#define ISC_PLATFORM_HAVESALEN 1 - -/*! \brief - * If this system has the IPv6 structure definitions, ISC_PLATFORM_HAVEIPV6 - * will be defined. - */ -#define ISC_PLATFORM_HAVEIPV6 1 - -/*! \brief - * If this system is missing in6addr_any, ISC_PLATFORM_NEEDIN6ADDRANY will - * be defined. - */ -#undef ISC_PLATFORM_NEEDIN6ADDRANY - -/*! \brief - * If this system is missing in6addr_loopback, ISC_PLATFORM_NEEDIN6ADDRLOOPBACK - * will be defined. - */ -#undef ISC_PLATFORM_NEEDIN6ADDRLOOPBACK - -/*! \brief - * If this system has in6_pktinfo, ISC_PLATFORM_HAVEIN6PKTINFO will be - * defined. - */ -#define ISC_PLATFORM_HAVEIN6PKTINFO 1 - -/*! \brief - * If this system has in_addr6, rather than in6_addr, ISC_PLATFORM_HAVEINADDR6 - * will be defined. - */ -#undef ISC_PLATFORM_HAVEINADDR6 - -/*! \brief - * If this system has sin6_scope_id, ISC_PLATFORM_HAVESCOPEID will be defined. - */ -#define ISC_PLATFORM_HAVESCOPEID 1 - -/*! \brief - * If this system needs inet_ntop(), ISC_PLATFORM_NEEDNTOP will be defined. - */ -#undef ISC_PLATFORM_NEEDNTOP - -/*! \brief - * If this system needs inet_pton(), ISC_PLATFORM_NEEDPTON will be defined. - */ -#undef ISC_PLATFORM_NEEDPTON - -/*! \brief - * If this system needs in_port_t, ISC_PLATFORM_NEEDPORTT will be defined. - */ -#undef ISC_PLATFORM_NEEDPORTT - -/*! \brief - * Define if the system has struct lifconf which is a extended struct ifconf - * for IPv6. - */ -#undef ISC_PLATFORM_HAVELIFCONF - -/*! \brief - * Define if the system has struct if_laddrconf which is a extended struct - * ifconf for IPv6. - */ -#undef ISC_PLATFORM_HAVEIF_LADDRCONF - -/*! \brief - * Define if the system has struct if_laddrreq. - */ -#undef ISC_PLATFORM_HAVEIF_LADDRREQ - -/*! \brief - * Define either ISC_PLATFORM_BSD44MSGHDR or ISC_PLATFORM_BSD43MSGHDR. - */ -#define ISC_NET_BSD44MSGHDR 1 - -/*! \brief - * Define if the system supports if_nametoindex. - */ -#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1 - -/*! \brief - * Define on some UnixWare systems to fix erroneous definitions of various - * IN6_IS_ADDR_* macros. - */ -#undef ISC_PLATFORM_FIXIN6ISADDR - -/*! \brief - * Define if the system supports kqueue multiplexing - */ -#define ISC_PLATFORM_HAVEKQUEUE 1 - -/*! \brief - * Define if the system supports epoll multiplexing - */ -#undef ISC_PLATFORM_HAVEEPOLL - -/*! \brief - * Define if the system supports /dev/poll multiplexing - */ -#undef ISC_PLATFORM_HAVEDEVPOLL - -/*! \brief - * Define if we want to log backtrace - */ -#define ISC_PLATFORM_USEBACKTRACE 1 - -/* - *** Printing. - ***/ - -/*! \brief - * If this system needs vsnprintf() and snprintf(), ISC_PLATFORM_NEEDVSNPRINTF - * will be defined. - */ -#undef ISC_PLATFORM_NEEDVSNPRINTF - -/*! \brief - * If this system need a modern sprintf() that returns (int) not (char*). - */ -#undef ISC_PLATFORM_NEEDSPRINTF - -/*! \brief - * The printf format string modifier to use with isc_uint64_t values. - */ -#define ISC_PLATFORM_QUADFORMAT "ll" - -/*** - *** String functions. - ***/ -/* - * If the system needs strsep(), ISC_PLATFORM_NEEDSTRSEP will be defined. - */ -#undef ISC_PLATFORM_NEEDSTRSEP - -/* - * If the system needs strlcpy(), ISC_PLATFORM_NEEDSTRLCPY will be defined. - */ -#undef ISC_PLATFORM_NEEDSTRLCPY - -/* - * If the system needs strlcat(), ISC_PLATFORM_NEEDSTRLCAT will be defined. - */ -#undef ISC_PLATFORM_NEEDSTRLCAT - -/* - * Define if this system needs strtoul. - */ -#undef ISC_PLATFORM_NEEDSTRTOUL - -/* - * Define if this system needs memmove. - */ -#undef ISC_PLATFORM_NEEDMEMMOVE - -/*** - *** Miscellaneous. - ***/ - -/* - * Defined if we are using threads. - */ -#define ISC_PLATFORM_USETHREADS 1 - -/* - * Defined if unistd.h does not cause fd_set to be delared. - */ -#undef ISC_PLATFORM_NEEDSYSSELECTH - -/* - * Defined to <gssapi.h> or <gssapi/gssapi.h> for how to include - * the GSSAPI header. - */ -#define ISC_PLATFORM_GSSAPIHEADER <gssapi/gssapi.h> - -/* - * Defined to <gssapi_krb5.h> or <gssapi/gssapi_krb5.h> for how to - * include the GSSAPI KRB5 header. - */ -#define ISC_PLATFORM_GSSAPI_KRB5_HEADER <gssapi/gssapi_krb5.h> - -/* - * Defined to <krb5.h> or <krb5/krb5.h> for how to include - * the KRB5 header. - */ -#define ISC_PLATFORM_KRB5HEADER <krb5.h> - -/* - * Type used for resource limits. - */ -#define ISC_PLATFORM_RLIMITTYPE rlim_t - -/* - * Define if your compiler supports "long long int". - */ -#define ISC_PLATFORM_HAVELONGLONG 1 - -/* - * Define if PTHREAD_ONCE_INIT should be surrounded by braces to - * prevent compiler warnings (such as with gcc on Solaris 2.8). - */ -#undef ISC_PLATFORM_BRACEPTHREADONCEINIT - -/* - * Used to control how extern data is linked; needed for Win32 platforms. - */ -#undef ISC_PLATFORM_USEDECLSPEC - -/* - * Define if the platform has <sys/un.h>. - */ -#define ISC_PLATFORM_HAVESYSUNH 1 - -/* - * If the "xadd" operation is available on this architecture, - * ISC_PLATFORM_HAVEXADD will be defined. - */ -/* - * FreeBSD local modification, preserve this over upgrades - */ -#if defined (__i386__) || defined (__amd64__) || defined (__ia64__) -#define ISC_PLATFORM_HAVEXADD 1 -#else -#undef ISC_PLATFORM_HAVEXADD -#endif - -/* - * If the "xaddq" operation (64bit xadd) is available on this architecture, - * ISC_PLATFORM_HAVEXADDQ will be defined. - */ -/* - * FreeBSD local modification, preserve this over upgrades - */ -#ifdef __amd64__ -#define ISC_PLATFORM_HAVEXADDQ 1 -#else -#undef ISC_PLATFORM_HAVEXADDQ -#endif - -/* - * If the "atomic swap" operation is available on this architecture, - * ISC_PLATFORM_HAVEATOMICSTORE" will be defined. - */ -/* - * FreeBSD local modification, preserve this over upgrades - */ -#if defined (__i386__) || defined (__amd64__) || defined (__ia64__) -#define ISC_PLATFORM_HAVEATOMICSTORE 1 -#else -#undef ISC_PLATFORM_HAVEATOMICSTORE -#endif - -/* - * If the "compare-and-exchange" operation is available on this architecture, - * ISC_PLATFORM_HAVECMPXCHG will be defined. - */ -/* - * FreeBSD local modification, preserve this over upgrades - */ -#if defined (__i386__) || defined (__amd64__) || defined (__ia64__) -#define ISC_PLATFORM_HAVECMPXCHG 1 -#else -#undef ISC_PLATFORM_HAVECMPXCHG -#endif - -/* - * Define if gcc ASM extension is available - */ -/* - * FreeBSD local modification, preserve this over upgrades - */ -#if defined (__i386__) || defined (__amd64__) || defined (__ia64__) -#define ISC_PLATFORM_USEGCCASM 1 -#else -#undef ISC_PLATFORM_USEGCCASM -#endif - -/* - * Define if Tru64 style ASM syntax must be used. - */ -#undef ISC_PLATFORM_USEOSFASM - -/* - * Define if the standard __asm function must be used. - */ - - -/* - * Define if the platform has <strings.h>. - */ -#define ISC_PLATFORM_HAVESTRINGSH 1 - -/* - * Define if the hash functions must be provided by OpenSSL. - */ -#undef ISC_PLATFORM_OPENSSLHASH - -/* - * Defines for the noreturn attribute. - */ -#define ISC_PLATFORM_NORETURN_PRE -#define ISC_PLATFORM_NORETURN_POST __attribute__((noreturn)) - -/*** - *** Windows dll support. - ***/ - -/* - * Define if MacOS style of PPC assembly must be used. - * e.g. "r6", not "6", for register six. - */ - - -#ifndef ISC_PLATFORM_USEDECLSPEC -#define LIBISC_EXTERNAL_DATA -#define LIBDNS_EXTERNAL_DATA -#define LIBISCCC_EXTERNAL_DATA -#define LIBISCCFG_EXTERNAL_DATA -#define LIBBIND9_EXTERNAL_DATA -#else /*! \brief ISC_PLATFORM_USEDECLSPEC */ -#ifdef LIBISC_EXPORTS -#define LIBISC_EXTERNAL_DATA __declspec(dllexport) -#else -#define LIBISC_EXTERNAL_DATA __declspec(dllimport) -#endif -#ifdef LIBDNS_EXPORTS -#define LIBDNS_EXTERNAL_DATA __declspec(dllexport) -#else -#define LIBDNS_EXTERNAL_DATA __declspec(dllimport) -#endif -#ifdef LIBISCCC_EXPORTS -#define LIBISCCC_EXTERNAL_DATA __declspec(dllexport) -#else -#define LIBISCCC_EXTERNAL_DATA __declspec(dllimport) -#endif -#ifdef LIBISCCFG_EXPORTS -#define LIBISCCFG_EXTERNAL_DATA __declspec(dllexport) -#else -#define LIBISCCFG_EXTERNAL_DATA __declspec(dllimport) -#endif -#ifdef LIBBIND9_EXPORTS -#define LIBBIND9_EXTERNAL_DATA __declspec(dllexport) -#else -#define LIBBIND9_EXTERNAL_DATA __declspec(dllimport) -#endif -#endif /*! \brief ISC_PLATFORM_USEDECLSPEC */ - -/* - * Tell emacs to use C mode for this file. - * - * Local Variables: - * mode: c - * End: - */ - -#endif /* ISC_PLATFORM_H */ diff --git a/lib/bind/isccc/Makefile b/lib/bind/isccc/Makefile deleted file mode 100644 index 19fc2bf..0000000 --- a/lib/bind/isccc/Makefile +++ /dev/null @@ -1,43 +0,0 @@ -# $FreeBSD$ - -.include <bsd.own.mk> - -BIND_DIR= ${.CURDIR}/../../../contrib/bind9 -LIB_BIND_REL= .. -LIB_BIND_DIR= ${.CURDIR}/${LIB_BIND_REL} -SRCDIR= ${BIND_DIR}/lib/isccc - -.include "${LIB_BIND_DIR}/config.mk" - -LIB= isccc - -.PATH: ${SRCDIR} -SRCS= alist.c base64.c cc.c ccmsg.c \ - lib.c \ - result.c sexpr.c symtab.c version.c - -CFLAGS+= -I${SRCDIR}/include -CFLAGS+= -I${BIND_DIR}/lib/isc/${ISC_ATOMIC_ARCH}/include - -DPADD= ${PTHREAD_DPADD} -LDADD= ${PTHREAD_LDADD} - -.if ${MK_BIND_LIBS} != "no" -INCS= ${SRCDIR}/include/isccc/alist.h \ - ${SRCDIR}/include/isccc/base64.h \ - ${SRCDIR}/include/isccc/cc.h \ - ${SRCDIR}/include/isccc/ccmsg.h \ - ${SRCDIR}/include/isccc/events.h \ - ${SRCDIR}/include/isccc/lib.h \ - ${SRCDIR}/include/isccc/result.h \ - ${SRCDIR}/include/isccc/sexpr.h \ - ${SRCDIR}/include/isccc/symtab.h \ - ${SRCDIR}/include/isccc/symtype.h \ - ${SRCDIR}/include/isccc/types.h \ - ${SRCDIR}/include/isccc/util.h \ - ${SRCDIR}/include/isccc/version.h - -INCSDIR= ${INCLUDEDIR}/isccc -.endif - -.include <bsd.lib.mk> diff --git a/lib/bind/isccc/Makefile.depend b/lib/bind/isccc/Makefile.depend deleted file mode 100644 index 84c1819..0000000 --- a/lib/bind/isccc/Makefile.depend +++ /dev/null @@ -1,15 +0,0 @@ -# Autogenerated - do NOT edit! - -DEP_RELDIR := ${_PARSEDIR:S,${SRCTOP}/,,} - -DIRDEPS = \ - include \ - include/arpa \ - include/xlocale \ - - -.include <dirdeps.mk> - -.if ${DEP_RELDIR} == ${_DEP_RELDIR} -# local dependencies - needed for -jN in clean tree -.endif diff --git a/lib/bind/isccfg/Makefile b/lib/bind/isccfg/Makefile deleted file mode 100644 index a4f5785..0000000 --- a/lib/bind/isccfg/Makefile +++ /dev/null @@ -1,34 +0,0 @@ -# $FreeBSD$ - -.include <bsd.own.mk> - -BIND_DIR= ${.CURDIR}/../../../contrib/bind9 -LIB_BIND_REL= .. -LIB_BIND_DIR= ${.CURDIR}/${LIB_BIND_REL} -SRCDIR= ${BIND_DIR}/lib/isccfg - -.include "${LIB_BIND_DIR}/config.mk" - -LIB= isccfg - -.PATH: ${SRCDIR} -SRCS= aclconf.c log.c namedconf.c parser.c version.c - -CFLAGS+= -I${SRCDIR}/include -I${.CURDIR} -CFLAGS+= -I${BIND_DIR}/lib/isc/${ISC_ATOMIC_ARCH}/include - -DPADD= ${PTHREAD_DPADD} -LDADD= ${PTHREAD_LDADD} - -.if ${MK_BIND_LIBS} != "no" -INCS= ${SRCDIR}/include/isccfg/aclconf.h \ - ${SRCDIR}/include/isccfg/cfg.h \ - ${SRCDIR}/include/isccfg/grammar.h \ - ${SRCDIR}/include/isccfg/log.h \ - ${SRCDIR}/include/isccfg/namedconf.h \ - ${SRCDIR}/include/isccfg/version.h - -INCSDIR= ${INCLUDEDIR}/isccfg -.endif - -.include <bsd.lib.mk> diff --git a/lib/bind/isccfg/Makefile.depend b/lib/bind/isccfg/Makefile.depend deleted file mode 100644 index 84c1819..0000000 --- a/lib/bind/isccfg/Makefile.depend +++ /dev/null @@ -1,15 +0,0 @@ -# Autogenerated - do NOT edit! - -DEP_RELDIR := ${_PARSEDIR:S,${SRCTOP}/,,} - -DIRDEPS = \ - include \ - include/arpa \ - include/xlocale \ - - -.include <dirdeps.mk> - -.if ${DEP_RELDIR} == ${_DEP_RELDIR} -# local dependencies - needed for -jN in clean tree -.endif diff --git a/lib/bind/lwres/Makefile b/lib/bind/lwres/Makefile deleted file mode 100644 index d4a94d7..0000000 --- a/lib/bind/lwres/Makefile +++ /dev/null @@ -1,130 +0,0 @@ -# $FreeBSD$ - -.include <bsd.own.mk> - -BIND_DIR= ${.CURDIR}/../../../contrib/bind9 -LIB_BIND_REL= .. -LIB_BIND_DIR= ${.CURDIR}/${LIB_BIND_REL} -SRCDIR= ${BIND_DIR}/lib/lwres - -# Unlike other BIND libs, this should be installed unless the user says NO. -.if ${MK_BIND_LIBS_LWRES} != "no" -MK_BIND_LIBS= yes -.endif - -.include "${LIB_BIND_DIR}/config.mk" - -LIB= lwres - -.PATH: ${SRCDIR} ${SRCDIR}/man -SRCS+= context.c gai_strerror.c getaddrinfo.c gethost.c \ - getipnode.c getnameinfo.c getrrset.c herror.c \ - lwbuffer.c lwconfig.c lwpacket.c lwresutil.c \ - lwres_gabn.c lwres_gnba.c lwres_grbn.c lwres_noop.c \ - lwinetaton.c lwinetpton.c lwinetntop.c print.c \ - strtoul.c - -CFLAGS+= -I${SRCDIR}/unix/include -I${SRCDIR}/include -CFLAGS+= -I${.CURDIR} -CFLAGS+= -I${BIND_DIR}/lib/isc/${ISC_ATOMIC_ARCH}/include -CFLAGS+= -I${BIND_DIR}/lib/isc/include -CFLAGS+= -I${BIND_DIR}/lib/isc/unix/include -CFLAGS+= -I${LIB_BIND_DIR}/isc - -DPADD= ${PTHREAD_DPADD} -LDADD= ${PTHREAD_LDADD} - -.if ${MK_BIND_LIBS} != "no" -MAN= lwres.3 lwres_buffer.3 lwres_config.3 lwres_context.3 \ - lwres_gabn.3 lwres_gai_strerror.3 lwres_getaddrinfo.3 \ - lwres_gethostent.3 lwres_getipnode.3 lwres_getnameinfo.3 \ - lwres_getrrsetbyname.3 lwres_gnba.3 lwres_hstrerror.3 \ - lwres_inetntop.3 lwres_noop.3 lwres_packet.3 lwres_resutil.3 - -MLINKS= lwres_buffer.3 lwres_buffer_add.3 \ - lwres_buffer.3 lwres_buffer_back.3 \ - lwres_buffer.3 lwres_buffer_clear.3 \ - lwres_buffer.3 lwres_buffer_first.3 \ - lwres_buffer.3 lwres_buffer_forward.3 \ - lwres_buffer.3 lwres_buffer_getmem.3 \ - lwres_buffer.3 lwres_buffer_getuint16.3 \ - lwres_buffer.3 lwres_buffer_getuint32.3 \ - lwres_buffer.3 lwres_buffer_getuint8.3 \ - lwres_buffer.3 lwres_buffer_init.3 \ - lwres_buffer.3 lwres_buffer_invalidate.3 \ - lwres_buffer.3 lwres_buffer_putmem.3 \ - lwres_buffer.3 lwres_buffer_putuint16.3 \ - lwres_buffer.3 lwres_buffer_putuint32.3 \ - lwres_buffer.3 lwres_buffer_putuint8.3 \ - lwres_buffer.3 lwres_buffer_subtract.3 \ - lwres_config.3 lwres_conf_clear.3 \ - lwres_config.3 lwres_conf_get.3 \ - lwres_config.3 lwres_conf_init.3 \ - lwres_config.3 lwres_conf_parse.3 \ - lwres_config.3 lwres_conf_print.3 \ - lwres_context.3 lwres_context_allocmem.3 \ - lwres_context.3 lwres_context_create.3 \ - lwres_context.3 lwres_context_destroy.3 \ - lwres_context.3 lwres_context_freemem.3 \ - lwres_context.3 lwres_context_initserial.3 \ - lwres_context.3 lwres_context_nextserial.3 \ - lwres_context.3 lwres_context_sendrecv.3 \ - lwres_gabn.3 lwres_gabnrequest_free.3 \ - lwres_gabn.3 lwres_gabnrequest_parse.3 \ - lwres_gabn.3 lwres_gabnrequest_render.3 \ - lwres_gabn.3 lwres_gabnresponse_free.3 \ - lwres_gabn.3 lwres_gabnresponse_parse.3 \ - lwres_gabn.3 lwres_gabnresponse_render.3 \ - lwres_getaddrinfo.3 lwres_freeaddrinfo.3 \ - lwres_gethostent.3 lwres_endhostent.3 \ - lwres_gethostent.3 lwres_endhostent_r.3 \ - lwres_gethostent.3 lwres_gethostbyaddr.3 \ - lwres_gethostent.3 lwres_gethostbyaddr_r.3 \ - lwres_gethostent.3 lwres_gethostbyname.3 \ - lwres_gethostent.3 lwres_gethostbyname2.3 \ - lwres_gethostent.3 lwres_gethostbyname_r.3 \ - lwres_gethostent.3 lwres_gethostent_r.3 \ - lwres_gethostent.3 lwres_sethostent.3 \ - lwres_gethostent.3 lwres_sethostent_r.3 \ - lwres_getipnode.3 lwres_freehostent.3 \ - lwres_getipnode.3 lwres_getipnodebyaddr.3 \ - lwres_getipnode.3 lwres_getipnodebyname.3 \ - lwres_gnba.3 lwres_gnbarequest_free.3 \ - lwres_gnba.3 lwres_gnbarequest_parse.3 \ - lwres_gnba.3 lwres_gnbarequest_render.3 \ - lwres_gnba.3 lwres_gnbaresponse_free.3 \ - lwres_gnba.3 lwres_gnbaresponse_parse.3 \ - lwres_gnba.3 lwres_gnbaresponse_render.3 \ - lwres_hstrerror.3 lwres_herror.3 \ - lwres_inetntop.3 lwres_net_ntop.3 \ - lwres_noop.3 lwres_nooprequest_free.3 \ - lwres_noop.3 lwres_nooprequest_parse.3 \ - lwres_noop.3 lwres_nooprequest_render.3 \ - lwres_noop.3 lwres_noopresponse_free.3 \ - lwres_noop.3 lwres_noopresponse_parse.3 \ - lwres_noop.3 lwres_noopresponse_render.3 \ - lwres_packet.3 lwres_lwpacket_parseheader.3 \ - lwres_packet.3 lwres_lwpacket_renderheader.3 \ - lwres_resutil.3 lwres_addr_parse.3 \ - lwres_resutil.3 lwres_getaddrsbyname.3 \ - lwres_resutil.3 lwres_getnamebyaddr.3 \ - lwres_resutil.3 lwres_string_parse.3 - -INCS= ${SRCDIR}/include/lwres/context.h \ - ${SRCDIR}/include/lwres/int.h \ - ${SRCDIR}/include/lwres/ipv6.h \ - ${SRCDIR}/include/lwres/lang.h \ - ${SRCDIR}/include/lwres/list.h \ - ${SRCDIR}/include/lwres/lwbuffer.h \ - ${SRCDIR}/include/lwres/lwpacket.h \ - ${SRCDIR}/include/lwres/lwres.h \ - ${SRCDIR}/include/lwres/result.h \ - ${SRCDIR}/include/lwres/version.h \ - ${SRCDIR}/unix/include/lwres/net.h \ - lwres/netdb.h \ - lwres/platform.h - -INCSDIR= ${INCLUDEDIR}/lwres -.endif - -.include <bsd.lib.mk> diff --git a/lib/bind/lwres/Makefile.depend b/lib/bind/lwres/Makefile.depend deleted file mode 100644 index c973021..0000000 --- a/lib/bind/lwres/Makefile.depend +++ /dev/null @@ -1,20 +0,0 @@ -# Autogenerated - do NOT edit! - -DEP_RELDIR := ${_PARSEDIR:S,${SRCTOP}/,,} - -DIRDEPS = \ - gnu/lib/libgcc \ - include \ - include/arpa \ - include/xlocale \ - lib/${CSU_DIR} \ - lib/libc \ - lib/libcompiler_rt \ - lib/libthr \ - - -.include <dirdeps.mk> - -.if ${DEP_RELDIR} == ${_DEP_RELDIR} -# local dependencies - needed for -jN in clean tree -.endif diff --git a/lib/bind/lwres/lwres/netdb.h b/lib/bind/lwres/lwres/netdb.h deleted file mode 100644 index 55dc7a1..0000000 --- a/lib/bind/lwres/lwres/netdb.h +++ /dev/null @@ -1,522 +0,0 @@ -/* $FreeBSD$ */ - -/* - * Copyright (C) 2004, 2005, 2007, 2009 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 2000, 2001 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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: netdb.h.in,v 1.41 2009/01/18 23:48:14 tbox Exp $ */ - -/*! \file */ - -#ifndef LWRES_NETDB_H -#define LWRES_NETDB_H 1 - -#include <stddef.h> /* Required on FreeBSD (and others?) for size_t. */ -#include <netdb.h> /* Contractual provision. */ - -#include <lwres/lang.h> - -/* - * Define if <netdb.h> does not declare struct addrinfo. - */ -#undef ISC_LWRES_NEEDADDRINFO - -#ifdef ISC_LWRES_NEEDADDRINFO -struct addrinfo { - int ai_flags; /* AI_PASSIVE, AI_CANONNAME */ - int ai_family; /* PF_xxx */ - int ai_socktype; /* SOCK_xxx */ - int ai_protocol; /* 0 or IPPROTO_xxx for IPv4 and IPv6 */ - size_t ai_addrlen; /* Length of ai_addr */ - char *ai_canonname; /* Canonical name for hostname */ - struct sockaddr *ai_addr; /* Binary address */ - struct addrinfo *ai_next; /* Next structure in linked list */ -}; -#endif - -/* - * Undefine all #defines we are interested in as <netdb.h> may or may not have - * defined them. - */ - -/* - * Error return codes from gethostbyname() and gethostbyaddr() - * (left in extern int h_errno). - */ - -#undef NETDB_INTERNAL -#undef NETDB_SUCCESS -#undef HOST_NOT_FOUND -#undef TRY_AGAIN -#undef NO_RECOVERY -#undef NO_DATA -#undef NO_ADDRESS - -#define NETDB_INTERNAL -1 /* see errno */ -#define NETDB_SUCCESS 0 /* no problem */ -#define HOST_NOT_FOUND 1 /* Authoritative Answer Host not found */ -#define TRY_AGAIN 2 /* Non-Authoritative Host not found, or SERVERFAIL */ -#define NO_RECOVERY 3 /* Non recoverable errors, FORMERR, REFUSED, NOTIMP */ -#define NO_DATA 4 /* Valid name, no data record of requested type */ -#define NO_ADDRESS NO_DATA /* no address, look for MX record */ - -/* - * Error return codes from getaddrinfo() - */ - -#undef EAI_ADDRFAMILY -#undef EAI_AGAIN -#undef EAI_BADFLAGS -#undef EAI_FAIL -#undef EAI_FAMILY -#undef EAI_MEMORY -#undef EAI_NODATA -#undef EAI_NONAME -#undef EAI_SERVICE -#undef EAI_SOCKTYPE -#undef EAI_SYSTEM -#undef EAI_BADHINTS -#undef EAI_PROTOCOL -#undef EAI_MAX - -#define EAI_ADDRFAMILY 1 /* address family for hostname not supported */ -#define EAI_AGAIN 2 /* temporary failure in name resolution */ -#define EAI_BADFLAGS 3 /* invalid value for ai_flags */ -#define EAI_FAIL 4 /* non-recoverable failure in name resolution */ -#define EAI_FAMILY 5 /* ai_family not supported */ -#define EAI_MEMORY 6 /* memory allocation failure */ -#define EAI_NODATA 7 /* no address associated with hostname */ -#define EAI_NONAME 8 /* hostname nor servname provided, or not known */ -#define EAI_SERVICE 9 /* servname not supported for ai_socktype */ -#define EAI_SOCKTYPE 10 /* ai_socktype not supported */ -#define EAI_SYSTEM 11 /* system error returned in errno */ -#define EAI_BADHINTS 12 -#define EAI_PROTOCOL 13 -#define EAI_MAX 14 - -/* - * Flag values for getaddrinfo() - */ -#undef AI_PASSIVE -#undef AI_CANONNAME -#undef AI_NUMERICHOST - -#define AI_PASSIVE 0x00000001 -#define AI_CANONNAME 0x00000002 -#define AI_NUMERICHOST 0x00000004 - -/* - * Flag values for getipnodebyname() - */ -#undef AI_V4MAPPED -#undef AI_ALL -#undef AI_ADDRCONFIG -#undef AI_DEFAULT - -#define AI_V4MAPPED 0x00000008 -#define AI_ALL 0x00000010 -#define AI_ADDRCONFIG 0x00000020 -#define AI_DEFAULT (AI_V4MAPPED|AI_ADDRCONFIG) - -/* - * Constants for lwres_getnameinfo() - */ -#undef NI_MAXHOST -#undef NI_MAXSERV - -#define NI_MAXHOST 1025 -#define NI_MAXSERV 32 - -/* - * Flag values for lwres_getnameinfo() - */ -#undef NI_NOFQDN -#undef NI_NUMERICHOST -#undef NI_NAMEREQD -#undef NI_NUMERICSERV -#undef NI_DGRAM -#undef NI_NUMERICSCOPE - -#define NI_NOFQDN 0x00000001 -#define NI_NUMERICHOST 0x00000002 -#define NI_NAMEREQD 0x00000004 -#define NI_NUMERICSERV 0x00000008 -#define NI_DGRAM 0x00000010 -#define NI_NUMERICSCOPE 0x00000020 /*2553bis-00*/ - -/* - * Define if <netdb.h> does not declare struct rrsetinfo. - */ -#define ISC_LWRES_NEEDRRSETINFO 1 - -#ifdef ISC_LWRES_NEEDRRSETINFO -/* - * Structures for getrrsetbyname() - */ -struct rdatainfo { - unsigned int rdi_length; - unsigned char *rdi_data; -}; - -struct rrsetinfo { - unsigned int rri_flags; - int rri_rdclass; - int rri_rdtype; - unsigned int rri_ttl; - unsigned int rri_nrdatas; - unsigned int rri_nsigs; - char *rri_name; - struct rdatainfo *rri_rdatas; - struct rdatainfo *rri_sigs; -}; - -/* - * Flags for getrrsetbyname() - */ -#define RRSET_VALIDATED 0x00000001 - /* Set was dnssec validated */ - -/* - * Return codes for getrrsetbyname() - */ -#define ERRSET_SUCCESS 0 -#define ERRSET_NOMEMORY 1 -#define ERRSET_FAIL 2 -#define ERRSET_INVAL 3 -#define ERRSET_NONAME 4 -#define ERRSET_NODATA 5 -#endif - -/* - * Define to map into lwres_ namespace. - */ - -#define LWRES_NAMESPACE - -#ifdef LWRES_NAMESPACE - -/* - * Use our versions not the ones from the C library. - */ - -#ifdef getnameinfo -#undef getnameinfo -#endif -#define getnameinfo lwres_getnameinfo - -#ifdef getaddrinfo -#undef getaddrinfo -#endif -#define getaddrinfo lwres_getaddrinfo - -#ifdef freeaddrinfo -#undef freeaddrinfo -#endif -#define freeaddrinfo lwres_freeaddrinfo - -#ifdef gai_strerror -#undef gai_strerror -#endif -#define gai_strerror lwres_gai_strerror - -#ifdef herror -#undef herror -#endif -#define herror lwres_herror - -#ifdef hstrerror -#undef hstrerror -#endif -#define hstrerror lwres_hstrerror - -#ifdef getipnodebyname -#undef getipnodebyname -#endif -#define getipnodebyname lwres_getipnodebyname - -#ifdef getipnodebyaddr -#undef getipnodebyaddr -#endif -#define getipnodebyaddr lwres_getipnodebyaddr - -#ifdef freehostent -#undef freehostent -#endif -#define freehostent lwres_freehostent - -#ifdef gethostbyname -#undef gethostbyname -#endif -#define gethostbyname lwres_gethostbyname - -#ifdef gethostbyname2 -#undef gethostbyname2 -#endif -#define gethostbyname2 lwres_gethostbyname2 - -#ifdef gethostbyaddr -#undef gethostbyaddr -#endif -#define gethostbyaddr lwres_gethostbyaddr - -#ifdef gethostent -#undef gethostent -#endif -#define gethostent lwres_gethostent - -#ifdef sethostent -#undef sethostent -#endif -#define sethostent lwres_sethostent - -#ifdef endhostent -#undef endhostent -#endif -#define endhostent lwres_endhostent - -/* #define sethostfile lwres_sethostfile */ - -#ifdef gethostbyname_r -#undef gethostbyname_r -#endif -#define gethostbyname_r lwres_gethostbyname_r - -#ifdef gethostbyaddr_r -#undef gethostbyaddr_r -#endif -#define gethostbyaddr_r lwres_gethostbyaddr_r - -#ifdef gethostent_r -#undef gethostent_r -#endif -#define gethostent_r lwres_gethostent_r - -#ifdef sethostent_r -#undef sethostent_r -#endif -#define sethostent_r lwres_sethostent_r - -#ifdef endhostent_r -#undef endhostent_r -#endif -#define endhostent_r lwres_endhostent_r - -#ifdef getrrsetbyname -#undef getrrsetbyname -#endif -#define getrrsetbyname lwres_getrrsetbyname - -#ifdef freerrset -#undef freerrset -#endif -#define freerrset lwres_freerrset - -#ifdef notyet -#define getservbyname lwres_getservbyname -#define getservbyport lwres_getservbyport -#define getservent lwres_getservent -#define setservent lwres_setservent -#define endservent lwres_endservent - -#define getservbyname_r lwres_getservbyname_r -#define getservbyport_r lwres_getservbyport_r -#define getservent_r lwres_getservent_r -#define setservent_r lwres_setservent_r -#define endservent_r lwres_endservent_r - -#define getprotobyname lwres_getprotobyname -#define getprotobynumber lwres_getprotobynumber -#define getprotoent lwres_getprotoent -#define setprotoent lwres_setprotoent -#define endprotoent lwres_endprotoent - -#define getprotobyname_r lwres_getprotobyname_r -#define getprotobynumber_r lwres_getprotobynumber_r -#define getprotoent_r lwres_getprotoent_r -#define setprotoent_r lwres_setprotoent_r -#define endprotoent_r lwres_endprotoent_r - -#ifdef getnetbyname -#undef getnetbyname -#endif -#define getnetbyname lwres_getnetbyname - -#ifdef getnetbyaddr -#undef getnetbyaddr -#endif -#define getnetbyaddr lwres_getnetbyaddr - -#ifdef getnetent -#undef getnetent -#endif -#define getnetent lwres_getnetent - -#ifdef setnetent -#undef setnetent -#endif -#define setnetent lwres_setnetent - -#ifdef endnetent -#undef endnetent -#endif -#define endnetent lwres_endnetent - - -#ifdef getnetbyname_r -#undef getnetbyname_r -#endif -#define getnetbyname_r lwres_getnetbyname_r - -#ifdef getnetbyaddr_r -#undef getnetbyaddr_r -#endif -#define getnetbyaddr_r lwres_getnetbyaddr_r - -#ifdef getnetent_r -#undef getnetent_r -#endif -#define getnetent_r lwres_getnetent_r - -#ifdef setnetent_r -#undef setnetent_r -#endif -#define setnetent_r lwres_setnetent_r - -#ifdef endnetent_r -#undef endnetent_r -#endif -#define endnetent_r lwres_endnetent_r -#endif /* notyet */ - -#ifdef h_errno -#undef h_errno -#endif -#define h_errno lwres_h_errno - -#endif /* LWRES_NAMESPACE */ - -LWRES_LANG_BEGINDECLS - -extern int lwres_h_errno; - -int lwres_getaddrinfo(const char *, const char *, - const struct addrinfo *, struct addrinfo **); -int lwres_getnameinfo(const struct sockaddr *, size_t, char *, - size_t, char *, size_t, int); -void lwres_freeaddrinfo(struct addrinfo *); -char *lwres_gai_strerror(int); - -struct hostent *lwres_gethostbyaddr(const char *, int, int); -struct hostent *lwres_gethostbyname(const char *); -struct hostent *lwres_gethostbyname2(const char *, int); -struct hostent *lwres_gethostent(void); -struct hostent *lwres_getipnodebyname(const char *, int, int, int *); -struct hostent *lwres_getipnodebyaddr(const void *, size_t, int, int *); -void lwres_endhostent(void); -void lwres_sethostent(int); -/* void lwres_sethostfile(const char *); */ -void lwres_freehostent(struct hostent *); - -int lwres_getrrsetbyname(const char *, unsigned int, unsigned int, - unsigned int, struct rrsetinfo **); -void lwres_freerrset(struct rrsetinfo *); - -#ifdef notyet -struct netent *lwres_getnetbyaddr(unsigned long, int); -struct netent *lwres_getnetbyname(const char *); -struct netent *lwres_getnetent(void); -void lwres_endnetent(void); -void lwres_setnetent(int); - -struct protoent *lwres_getprotobyname(const char *); -struct protoent *lwres_getprotobynumber(int); -struct protoent *lwres_getprotoent(void); -void lwres_endprotoent(void); -void lwres_setprotoent(int); - -struct servent *lwres_getservbyname(const char *, const char *); -struct servent *lwres_getservbyport(int, const char *); -struct servent *lwres_getservent(void); -void lwres_endservent(void); -void lwres_setservent(int); -#endif /* notyet */ - -void lwres_herror(const char *); -const char *lwres_hstrerror(int); - - -struct hostent *lwres_gethostbyaddr_r(const char *, int, int, struct hostent *, - char *, int, int *); -struct hostent *lwres_gethostbyname_r(const char *, struct hostent *, - char *, int, int *); -struct hostent *lwres_gethostent_r(struct hostent *, char *, int, int *); -void lwres_sethostent_r(int); -void lwres_endhostent_r(void); - -#ifdef notyet -struct netent *lwres_getnetbyname_r(const char *, struct netent *, - char *, int); -struct netent *lwres_getnetbyaddr_r(long, int, struct netent *, - char *, int); -struct netent *lwres_getnetent_r(struct netent *, char *, int); -void lwres_setnetent_r(int); -void lwres_endnetent_r(void); - -struct protoent *lwres_getprotobyname_r(const char *, - struct protoent *, char *, int); -struct protoent *lwres_getprotobynumber_r(int, - struct protoent *, char *, int); -struct protoent *lwres_getprotoent_r(struct protoent *, char *, int); -void lwres_setprotoent_r(int); -void lwres_endprotoent_r(void); - -struct servent *lwres_getservbyname_r(const char *name, const char *, - struct servent *, char *, int); -struct servent *lwres_getservbyport_r(int port, const char *, - struct servent *, char *, int); -struct servent *lwres_getservent_r(struct servent *, char *, int); -void lwres_setservent_r(int); -void lwres_endservent_r(void); -#endif /* notyet */ - -LWRES_LANG_ENDDECLS - -#ifdef notyet -/* This is nec'y to make this include file properly replace the sun version. */ -#ifdef sun -#ifdef __GNU_LIBRARY__ -#include <rpc/netdb.h> /* Required. */ -#else /* !__GNU_LIBRARY__ */ -struct rpcent { - char *r_name; /* name of server for this rpc program */ - char **r_aliases; /* alias list */ - int r_number; /* rpc program number */ -}; -struct rpcent *lwres_getrpcbyname(); -struct rpcent *lwres_getrpcbynumber(), -struct rpcent *lwres_getrpcent(); -#endif /* __GNU_LIBRARY__ */ -#endif /* sun */ -#endif /* notyet */ - -/* - * Tell Emacs to use C mode on this file. - * Local variables: - * mode: c - * End: - */ - -#endif /* LWRES_NETDB_H */ diff --git a/lib/bind/lwres/lwres/platform.h b/lib/bind/lwres/lwres/platform.h deleted file mode 100644 index 608bb72..0000000 --- a/lib/bind/lwres/lwres/platform.h +++ /dev/null @@ -1,122 +0,0 @@ -/* $FreeBSD$ */ - -/* - * Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC") - * Copyright (C) 2000, 2001 Internet Software Consortium. - * - * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC 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: platform.h.in,v 1.21 2007/06/19 23:47:23 tbox Exp $ */ - -/*! \file */ - -#ifndef LWRES_PLATFORM_H -#define LWRES_PLATFORM_H 1 - -/***** - ***** Platform-dependent defines. - *****/ - -/*** - *** Network. - ***/ - -/* - * Define if this system needs the <netinet/in6.h> header file for IPv6. - */ -#undef LWRES_PLATFORM_NEEDNETINETIN6H - -/* - * Define if this system needs the <netinet6/in6.h> header file for IPv6. - */ -#undef LWRES_PLATFORM_NEEDNETINET6IN6H - -/* - * If sockaddrs on this system have an sa_len field, LWRES_PLATFORM_HAVESALEN - * will be defined. - */ -#define LWRES_PLATFORM_HAVESALEN 1 - -/* - * If this system has the IPv6 structure definitions, LWRES_PLATFORM_HAVEIPV6 - * will be defined. - */ -#define LWRES_PLATFORM_HAVEIPV6 1 - -/* - * If this system is missing in6addr_any, LWRES_PLATFORM_NEEDIN6ADDRANY will - * be defined. - */ -#undef LWRES_PLATFORM_NEEDIN6ADDRANY - -/* - * If this system is missing in6addr_loopback, - * LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK will be defined. - */ -#undef LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK - -/* - * If this system has in_addr6, rather than in6_addr, - * LWRES_PLATFORM_HAVEINADDR6 will be defined. - */ -#undef LWRES_PLATFORM_HAVEINADDR6 - -/* - * Defined if unistd.h does not cause fd_set to be delared. - */ -#undef LWRES_PLATFORM_NEEDSYSSELECTH - -/* - * Used to control how extern data is linked; needed for Win32 platforms. - */ -#undef LWRES_PLATFORM_USEDECLSPEC - -/* - * Defined this system needs vsnprintf() and snprintf(). - */ -#undef LWRES_PLATFORM_NEEDVSNPRINTF - -/* - * If this system need a modern sprintf() that returns (int) not (char*). - */ -#undef LWRES_PLATFORM_NEEDSPRINTF - -/* - * The printf format string modifier to use with lwres_uint64_t values. - */ -#define LWRES_PLATFORM_QUADFORMAT "ll" - -/*! \brief - * Define if this system needs strtoul. - */ -#undef LWRES_PLATFORM_NEEDSTRTOUL - -#ifndef LWRES_PLATFORM_USEDECLSPEC -#define LIBLWRES_EXTERNAL_DATA -#else -#ifdef LIBLWRES_EXPORTS -#define LIBLWRES_EXTERNAL_DATA __declspec(dllexport) -#else -#define LIBLWRES_EXTERNAL_DATA __declspec(dllimport) -#endif -#endif - -/* - * Tell Emacs to use C mode on this file. - * Local Variables: - * mode: c - * End: - */ - -#endif /* LWRES_PLATFORM_H */ diff --git a/lib/clang/Makefile b/lib/clang/Makefile index 6bc9552..3f30c96 100644 --- a/lib/clang/Makefile +++ b/lib/clang/Makefile @@ -3,17 +3,22 @@ .include <bsd.own.mk> .if !make(install) -.if !defined(EARLY_BUILD) && defined(MK_CLANG_FULL) && ${MK_CLANG_FULL} != "no" +.if !defined(EARLY_BUILD) +.if defined(MK_CLANG_FULL) && ${MK_CLANG_FULL} != "no" _libclangstaticanalyzer= \ libclangstaticanalyzercheckers \ libclangstaticanalyzercore \ libclangstaticanalyzerfrontend _libclangarcmigrate= \ libclangarcmigrate +.endif # MK_CLANG_FULL +.if (defined(MK_CLANG_FULL) && ${MK_CLANG_FULL} != "no") || \ + (defined(MK_LLDB) && ${MK_LLDB} != "no") _libclangrewriter= \ libclangrewritecore \ libclangrewritefrontend -.endif # !EARLY_BUILD && MK_CLANG_FULL +.endif # (MK_CLANG_FULL || MK_LLDB) +.endif # !EARLY_BUILD SUBDIR= libclanganalysis \ ${_libclangarcmigrate} \ @@ -82,14 +87,55 @@ SUBDIR= libclanganalysis \ libllvmx86utils .if ${MK_CLANG_EXTRAS} != "no" -SUBDIR+=libllvmdebuginfo \ - libllvmexecutionengine \ +SUBDIR+=libllvmdebuginfo +.endif # MK_CLANG_EXTRAS +.if ${MK_CLANG_EXTRAS} != "no" || ${MK_LLDB} != "no" +SUBDIR+=libllvmexecutionengine \ libllvminterpreter \ libllvmjit \ libllvmmcdisassembler \ libllvmmcjit \ libllvmruntimedyld -.endif # MK_CLANG_EXTRAS +.endif # MK_CLANG_EXTRAS | LLDB + +.if !defined(EARLY_BUILD) && ${MK_LLDB} != "no" +SUBDIR+=liblldb \ + \ + liblldbAPI \ + liblldbBreakpoint \ + liblldbCommands \ + liblldbCore \ + liblldbDataFormatters \ + liblldbExpression \ + liblldbHostCommon \ + liblldbHostFreeBSD \ + liblldbInterpreter \ + liblldbSymbol \ + liblldbTarget \ + liblldbUtility \ + \ + liblldbPluginABISysV_x86_64 \ + liblldbPluginCXXItaniumABI \ + liblldbPluginDisassemblerLLVM \ + liblldbPluginDynamicLoaderStatic \ + liblldbPluginDynamicLoaderPosixDYLD \ + liblldbPluginInstructionARM \ + liblldbPluginObjectContainerBSDArchive \ + liblldbPluginObjectFileELF \ + liblldbPluginPlatformFreeBSD \ + liblldbPluginPlatformGDB \ + liblldbPluginProcessElfCore \ + liblldbPluginProcessFreeBSD \ + liblldbPluginProcessGDBRemote \ + liblldbPluginProcessPOSIX \ + liblldbPluginProcessUtility \ + liblldbPluginSymbolFileDWARF \ + liblldbPluginSymbolFileSymtab \ + liblldbPluginSymbolVendorELF \ + liblldbPluginUnwindAssemblyInstEmulation \ + liblldbPluginUnwindAssemblyX86 +.endif # !EARLY_BUILD && MK_LLDB + .endif # !make(install) SUBDIR+= include diff --git a/lib/clang/liblldb/Makefile b/lib/clang/liblldb/Makefile new file mode 100644 index 0000000..cba14e7 --- /dev/null +++ b/lib/clang/liblldb/Makefile @@ -0,0 +1,18 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +LIB= lldb + +CFLAGS+=-I${.CURDIR}/../../../contrib/llvm/tools/lldb/source/Plugins/Process/POSIX + +SRCDIR= tools/lldb/source +SRCS= lldb.cpp \ + lldb-log.cpp + +TGHDRS= DiagnosticCommonKinds \ + DeclNodes \ + StmtNodes \ + CommentCommandList + +.include "../lldb.lib.mk" diff --git a/lib/clang/liblldbAPI/Makefile b/lib/clang/liblldbAPI/Makefile new file mode 100644 index 0000000..275b26f --- /dev/null +++ b/lib/clang/liblldbAPI/Makefile @@ -0,0 +1,61 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +LIB= lldbAPI + +SRCDIR= tools/lldb/source/API +SRCS= SBAddress.cpp \ + SBBlock.cpp \ + SBBreakpoint.cpp \ + SBBreakpointLocation.cpp \ + SBBroadcaster.cpp \ + SBCommandInterpreter.cpp \ + SBCommandReturnObject.cpp \ + SBCommunication.cpp \ + SBCompileUnit.cpp \ + SBData.cpp \ + SBDebugger.cpp \ + SBDeclaration.cpp \ + SBError.cpp \ + SBEvent.cpp \ + SBExpressionOptions.cpp \ + SBFileSpec.cpp \ + SBFileSpecList.cpp \ + SBFrame.cpp \ + SBFunction.cpp \ + SBHostOS.cpp \ + SBInputReader.cpp \ + SBInstruction.cpp \ + SBInstructionList.cpp \ + SBLineEntry.cpp \ + SBListener.cpp \ + SBModule.cpp \ + SBModuleSpec.cpp \ + SBProcess.cpp \ + SBSection.cpp \ + SBSourceManager.cpp \ + SBStream.cpp \ + SBStringList.cpp \ + SBSymbol.cpp \ + SBSymbolContext.cpp \ + SBSymbolContextList.cpp \ + SBTarget.cpp \ + SBThread.cpp \ + SBType.cpp \ + SBTypeCategory.cpp \ + SBTypeFilter.cpp \ + SBTypeFormat.cpp \ + SBTypeNameSpecifier.cpp \ + SBTypeSummary.cpp \ + SBTypeSynthetic.cpp \ + SBValue.cpp \ + SBValueList.cpp \ + SBWatchpoint.cpp + +TGHDRS= DiagnosticCommonKinds \ + DeclNodes \ + StmtNodes \ + CommentCommandList + +.include "../lldb.lib.mk" diff --git a/lib/clang/liblldbBreakpoint/Makefile b/lib/clang/liblldbBreakpoint/Makefile new file mode 100644 index 0000000..396b0aa --- /dev/null +++ b/lib/clang/liblldbBreakpoint/Makefile @@ -0,0 +1,35 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +LIB= lldbBreakpoint + +SRCDIR= tools/lldb/source/Breakpoint +SRCS= Breakpoint.cpp \ + BreakpointID.cpp \ + BreakpointIDList.cpp \ + BreakpointList.cpp \ + BreakpointLocation.cpp \ + BreakpointLocationCollection.cpp \ + BreakpointLocationList.cpp \ + BreakpointOptions.cpp \ + BreakpointResolver.cpp \ + BreakpointResolverAddress.cpp \ + BreakpointResolverFileLine.cpp \ + BreakpointResolverFileRegex.cpp \ + BreakpointResolverName.cpp \ + BreakpointSite.cpp \ + BreakpointSiteList.cpp \ + Stoppoint.cpp \ + StoppointCallbackContext.cpp \ + StoppointLocation.cpp \ + Watchpoint.cpp \ + WatchpointList.cpp \ + WatchpointOptions.cpp + +TGHDRS= DiagnosticCommonKinds \ + DeclNodes \ + StmtNodes \ + CommentCommandList + +.include "../lldb.lib.mk" diff --git a/lib/clang/liblldbCommands/Makefile b/lib/clang/liblldbCommands/Makefile new file mode 100644 index 0000000..6709017 --- /dev/null +++ b/lib/clang/liblldbCommands/Makefile @@ -0,0 +1,41 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +LIB= lldbCommands + +SRCDIR= tools/lldb/source/Commands +SRCS= CommandCompletions.cpp \ + CommandObjectApropos.cpp \ + CommandObjectArgs.cpp \ + CommandObjectBreakpoint.cpp \ + CommandObjectBreakpointCommand.cpp \ + CommandObjectCommands.cpp \ + CommandObjectDisassemble.cpp \ + CommandObjectExpression.cpp \ + CommandObjectFrame.cpp \ + CommandObjectHelp.cpp \ + CommandObjectLog.cpp \ + CommandObjectMemory.cpp \ + CommandObjectMultiword.cpp \ + CommandObjectPlatform.cpp \ + CommandObjectPlugin.cpp \ + CommandObjectProcess.cpp \ + CommandObjectQuit.cpp \ + CommandObjectRegister.cpp \ + CommandObjectSettings.cpp \ + CommandObjectSource.cpp \ + CommandObjectSyntax.cpp \ + CommandObjectTarget.cpp \ + CommandObjectThread.cpp \ + CommandObjectType.cpp \ + CommandObjectVersion.cpp \ + CommandObjectWatchpoint.cpp \ + CommandObjectWatchpointCommand.cpp + +TGHDRS= DiagnosticCommonKinds \ + DeclNodes \ + StmtNodes \ + CommentCommandList + +.include "../lldb.lib.mk" diff --git a/lib/clang/liblldbCore/Makefile b/lib/clang/liblldbCore/Makefile new file mode 100644 index 0000000..4457531 --- /dev/null +++ b/lib/clang/liblldbCore/Makefile @@ -0,0 +1,84 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +LIB= lldbCore + +SRCDIR= tools/lldb/source/Core +SRCS= Address.cpp \ + AddressRange.cpp \ + AddressResolver.cpp \ + AddressResolverFileLine.cpp \ + AddressResolverName.cpp \ + ArchSpec.cpp \ + Baton.cpp \ + Broadcaster.cpp \ + Communication.cpp \ + Connection.cpp \ + ConnectionFileDescriptor.cpp \ + ConnectionMachPort.cpp \ + ConnectionSharedMemory.cpp \ + ConstString.cpp \ + DataBufferHeap.cpp \ + DataBufferMemoryMap.cpp \ + DataEncoder.cpp \ + DataExtractor.cpp \ + Debugger.cpp \ + Disassembler.cpp \ + DynamicLoader.cpp \ + EmulateInstruction.cpp \ + Error.cpp \ + Event.cpp \ + FileLineResolver.cpp \ + FileSpecList.cpp \ + History.cpp \ + InputReader.cpp \ + InputReaderEZ.cpp \ + InputReaderStack.cpp \ + Language.cpp \ + Listener.cpp \ + Log.cpp \ + Mangled.cpp \ + Module.cpp \ + ModuleChild.cpp \ + ModuleList.cpp \ + Opcode.cpp \ + PluginManager.cpp \ + RegisterValue.cpp \ + RegularExpression.cpp \ + Scalar.cpp \ + SearchFilter.cpp \ + Section.cpp \ + SourceManager.cpp \ + State.cpp \ + Stream.cpp \ + StreamAsynchronousIO.cpp \ + StreamCallback.cpp \ + StreamFile.cpp \ + StreamString.cpp \ + StringList.cpp \ + Timer.cpp \ + UserID.cpp \ + UserSettingsController.cpp \ + UUID.cpp \ + Value.cpp \ + ValueObject.cpp \ + ValueObjectCast.cpp \ + ValueObjectChild.cpp \ + ValueObjectConstResult.cpp \ + ValueObjectConstResultChild.cpp \ + ValueObjectConstResultImpl.cpp \ + ValueObjectDynamicValue.cpp \ + ValueObjectList.cpp \ + ValueObjectMemory.cpp \ + ValueObjectRegister.cpp \ + ValueObjectSyntheticFilter.cpp \ + ValueObjectVariable.cpp \ + VMRange.cpp + +TGHDRS= DiagnosticCommonKinds \ + DeclNodes \ + StmtNodes \ + CommentCommandList + +.include "../lldb.lib.mk" diff --git a/lib/clang/liblldbDataFormatters/Makefile b/lib/clang/liblldbDataFormatters/Makefile new file mode 100644 index 0000000..ca8a6c8 --- /dev/null +++ b/lib/clang/liblldbDataFormatters/Makefile @@ -0,0 +1,33 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +LIB= lldbDataFormatters + +SRCDIR= tools/lldb/source/DataFormatters +SRCS= CF.cpp \ + Cocoa.cpp \ + CXXFormatterFunctions.cpp \ + DataVisualization.cpp \ + FormatCache.cpp \ + FormatClasses.cpp \ + FormatManager.cpp \ + LibCxx.cpp \ + LibCxxList.cpp \ + LibCxxMap.cpp \ + LibStdcpp.cpp \ + NSArray.cpp \ + NSDictionary.cpp \ + NSSet.cpp \ + TypeCategory.cpp \ + TypeCategoryMap.cpp \ + TypeFormat.cpp \ + TypeSummary.cpp \ + TypeSynthetic.cpp + +TGHDRS= DiagnosticCommonKinds \ + DeclNodes \ + StmtNodes \ + CommentCommandList + +.include "../lldb.lib.mk" diff --git a/lib/clang/liblldbExpression/Makefile b/lib/clang/liblldbExpression/Makefile new file mode 100644 index 0000000..120add5 --- /dev/null +++ b/lib/clang/liblldbExpression/Makefile @@ -0,0 +1,39 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +LIB= lldbExpression + +SRCDIR= tools/lldb/source/Expression +SRCS= ASTDumper.cpp \ + ASTResultSynthesizer.cpp \ + ASTStructExtractor.cpp \ + ClangASTSource.cpp \ + ClangExpressionDeclMap.cpp \ + ClangExpressionParser.cpp \ + ClangExpressionVariable.cpp \ + ClangFunction.cpp \ + ClangPersistentVariables.cpp \ + ClangUserExpression.cpp \ + ClangUtilityFunction.cpp \ + DWARFExpression.cpp \ + ExpressionSourceCode.cpp \ + IRDynamicChecks.cpp \ + IRExecutionUnit.cpp \ + IRForTarget.cpp \ + IRInterpreter.cpp \ + IRMemoryMap.cpp \ + Materializer.cpp + +TGHDRS= DiagnosticCommonKinds \ + DeclNodes \ + StmtNodes \ + CommentCommandList \ + AttrList \ + Attrs \ + AttrParsedAttrList \ + DiagnosticFrontendKinds \ + DiagnosticSemaKinds \ + Intrinsics + +.include "../lldb.lib.mk" diff --git a/lib/clang/liblldbHostCommon/Makefile b/lib/clang/liblldbHostCommon/Makefile new file mode 100644 index 0000000..e787cbc --- /dev/null +++ b/lib/clang/liblldbHostCommon/Makefile @@ -0,0 +1,24 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +LIB= lldbHostCommon + +SRCDIR= tools/lldb/source/Host/common +SRCS= Condition.cpp \ + DynamicLibrary.cpp \ + File.cpp \ + FileSpec.cpp \ + Host.cpp \ + Mutex.cpp \ + SocketAddress.cpp \ + Symbols.cpp \ + Terminal.cpp \ + TimeValue.cpp + +TGHDRS= DiagnosticCommonKinds \ + DeclNodes \ + StmtNodes \ + CommentCommandList + +.include "../lldb.lib.mk" diff --git a/lib/clang/liblldbHostFreeBSD/Makefile b/lib/clang/liblldbHostFreeBSD/Makefile new file mode 100644 index 0000000..e07f8ed --- /dev/null +++ b/lib/clang/liblldbHostFreeBSD/Makefile @@ -0,0 +1,15 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +LIB= lldbHostFreeBSD + +SRCDIR= tools/lldb/source/Host/freebsd +SRCS= Host.cpp + +TGHDRS= DiagnosticCommonKinds \ + DeclNodes \ + StmtNodes \ + CommentCommandList + +.include "../lldb.lib.mk" diff --git a/lib/clang/liblldbInterpreter/Makefile b/lib/clang/liblldbInterpreter/Makefile new file mode 100644 index 0000000..c560adf --- /dev/null +++ b/lib/clang/liblldbInterpreter/Makefile @@ -0,0 +1,56 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +LIB= lldbInterpreter + +SRCDIR= tools/lldb/source/Interpreter +SRCS= Args.cpp \ + CommandHistory.cpp \ + CommandInterpreter.cpp \ + CommandObject.cpp \ + CommandObjectRegexCommand.cpp \ + CommandObjectScript.cpp \ + CommandReturnObject.cpp \ + OptionGroupArchitecture.cpp \ + OptionGroupBoolean.cpp \ + OptionGroupFile.cpp \ + OptionGroupFormat.cpp \ + OptionGroupOutputFile.cpp \ + OptionGroupPlatform.cpp \ + OptionGroupString.cpp \ + OptionGroupUInt64.cpp \ + OptionGroupUUID.cpp \ + OptionGroupValueObjectDisplay.cpp \ + OptionValue.cpp \ + OptionValueArch.cpp \ + OptionValueArgs.cpp \ + OptionValueArray.cpp \ + OptionValueBoolean.cpp \ + OptionValueDictionary.cpp \ + OptionValueEnumeration.cpp \ + OptionValueFileSpec.cpp \ + OptionValueFileSpecLIst.cpp \ + OptionValueFormat.cpp \ + OptionValuePathMappings.cpp \ + OptionValueProperties.cpp \ + OptionValueRegex.cpp \ + OptionValueSInt64.cpp \ + OptionValueString.cpp \ + OptionValueUInt64.cpp \ + OptionValueUUID.cpp \ + OptionGroupVariable.cpp \ + OptionGroupWatchpoint.cpp \ + Options.cpp \ + Property.cpp \ + PythonDataObjects.cpp \ + ScriptInterpreter.cpp \ + ScriptInterpreterNone.cpp \ + ScriptInterpreterPython.cpp + +TGHDRS= DiagnosticCommonKinds \ + DeclNodes \ + StmtNodes \ + CommentCommandList + +.include "../lldb.lib.mk" diff --git a/lib/clang/liblldbPluginABISysV_x86_64/Makefile b/lib/clang/liblldbPluginABISysV_x86_64/Makefile new file mode 100644 index 0000000..730b107 --- /dev/null +++ b/lib/clang/liblldbPluginABISysV_x86_64/Makefile @@ -0,0 +1,15 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +LIB= lldbPluginABISysV_x86_64 + +SRCDIR= tools/lldb/source/Plugins/ABI/SysV-x86_64 +SRCS= ABISysV_x86_64.cpp + +TGHDRS= DiagnosticCommonKinds \ + DeclNodes \ + StmtNodes \ + CommentCommandList + +.include "../lldb.lib.mk" diff --git a/lib/clang/liblldbPluginCXXItaniumABI/Makefile b/lib/clang/liblldbPluginCXXItaniumABI/Makefile new file mode 100644 index 0000000..35376f2 --- /dev/null +++ b/lib/clang/liblldbPluginCXXItaniumABI/Makefile @@ -0,0 +1,15 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +LIB= lldbPluginCXXItaniumABI + +SRCDIR= tools/lldb/source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI +SRCS= ItaniumABILanguageRuntime.cpp + +TGHDRS= DiagnosticCommonKinds \ + DeclNodes \ + StmtNodes \ + CommentCommandList + +.include "../lldb.lib.mk" diff --git a/lib/clang/liblldbPluginDisassemblerLLVM/Makefile b/lib/clang/liblldbPluginDisassemblerLLVM/Makefile new file mode 100644 index 0000000..0b00ac5 --- /dev/null +++ b/lib/clang/liblldbPluginDisassemblerLLVM/Makefile @@ -0,0 +1,15 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +LIB= lldbPluginDisassemblerLLVM + +SRCDIR= tools/lldb/source/Plugins/Disassembler/llvm +SRCS= DisassemblerLLVMC.cpp + +TGHDRS= DiagnosticCommonKinds \ + DeclNodes \ + StmtNodes \ + CommentCommandList + +.include "../lldb.lib.mk" diff --git a/lib/clang/liblldbPluginDynamicLoaderPosixDYLD/Makefile b/lib/clang/liblldbPluginDynamicLoaderPosixDYLD/Makefile new file mode 100644 index 0000000..718607d --- /dev/null +++ b/lib/clang/liblldbPluginDynamicLoaderPosixDYLD/Makefile @@ -0,0 +1,17 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +LIB= lldbPluginDynamicLoaderPosixDYLD + +SRCDIR= tools/lldb/source/Plugins/DynamicLoader/POSIX-DYLD +SRCS= AuxVector.cpp \ + DYLDRendezvous.cpp \ + DynamicLoaderPOSIXDYLD.cpp + +TGHDRS= DiagnosticCommonKinds \ + DeclNodes \ + StmtNodes \ + CommentCommandList + +.include "../lldb.lib.mk" diff --git a/lib/clang/liblldbPluginDynamicLoaderStatic/Makefile b/lib/clang/liblldbPluginDynamicLoaderStatic/Makefile new file mode 100644 index 0000000..9ebe62b --- /dev/null +++ b/lib/clang/liblldbPluginDynamicLoaderStatic/Makefile @@ -0,0 +1,15 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +LIB= lldbPluginDynamicLoaderStatic + +SRCDIR= tools/lldb/source/Plugins/DynamicLoader/Static +SRCS= DynamicLoaderStatic.cpp + +TGHDRS= DiagnosticCommonKinds \ + DeclNodes \ + StmtNodes \ + CommentCommandList + +.include "../lldb.lib.mk" diff --git a/lib/clang/liblldbPluginInstructionARM/Makefile b/lib/clang/liblldbPluginInstructionARM/Makefile new file mode 100644 index 0000000..a9afb77 --- /dev/null +++ b/lib/clang/liblldbPluginInstructionARM/Makefile @@ -0,0 +1,16 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +LIB= lldbPluginInstructionARM + +SRCDIR= tools/lldb/source/Plugins/Instruction/ARM +SRCS= EmulateInstructionARM.cpp \ + EmulationStateARM.cpp + +TGHDRS= DiagnosticCommonKinds \ + DeclNodes \ + StmtNodes \ + CommentCommandList + +.include "../lldb.lib.mk" diff --git a/lib/clang/liblldbPluginObjectContainerBSDArchive/Makefile b/lib/clang/liblldbPluginObjectContainerBSDArchive/Makefile new file mode 100644 index 0000000..1d33582 --- /dev/null +++ b/lib/clang/liblldbPluginObjectContainerBSDArchive/Makefile @@ -0,0 +1,15 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +LIB= lldbPluginObjectContainerBSDArchive + +SRCDIR= tools/lldb/source/Plugins/ObjectContainer/BSD-Archive +SRCS= ObjectContainerBSDArchive.cpp + +TGHDRS= DiagnosticCommonKinds \ + DeclNodes \ + StmtNodes \ + CommentCommandList + +.include "../lldb.lib.mk" diff --git a/lib/clang/liblldbPluginObjectFileELF/Makefile b/lib/clang/liblldbPluginObjectFileELF/Makefile new file mode 100644 index 0000000..7bd3dfa --- /dev/null +++ b/lib/clang/liblldbPluginObjectFileELF/Makefile @@ -0,0 +1,16 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +LIB= lldbPluginObjectFileELF + +SRCDIR= tools/lldb/source/Plugins/ObjectFile/ELF +SRCS= ELFHeader.cpp \ + ObjectFileELF.cpp + +TGHDRS= DiagnosticCommonKinds \ + DeclNodes \ + StmtNodes \ + CommentCommandList + +.include "../lldb.lib.mk" diff --git a/lib/clang/liblldbPluginPlatformFreeBSD/Makefile b/lib/clang/liblldbPluginPlatformFreeBSD/Makefile new file mode 100644 index 0000000..9be7af3 --- /dev/null +++ b/lib/clang/liblldbPluginPlatformFreeBSD/Makefile @@ -0,0 +1,15 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +LIB= lldbPluginPlatformFreeBSD + +SRCDIR= tools/lldb/source/Plugins/Platform/FreeBSD +SRCS= PlatformFreeBSD.cpp + +TGHDRS= DiagnosticCommonKinds \ + DeclNodes \ + StmtNodes \ + CommentCommandList + +.include "../lldb.lib.mk" diff --git a/lib/clang/liblldbPluginPlatformGDB/Makefile b/lib/clang/liblldbPluginPlatformGDB/Makefile new file mode 100644 index 0000000..1d8a994 --- /dev/null +++ b/lib/clang/liblldbPluginPlatformGDB/Makefile @@ -0,0 +1,15 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +LIB= lldbPluginPlatformGDB + +SRCDIR= tools/lldb/source/Plugins/Platform/gdb-server +SRCS= PlatformRemoteGDBServer.cpp + +TGHDRS= DiagnosticCommonKinds \ + DeclNodes \ + StmtNodes \ + CommentCommandList + +.include "../lldb.lib.mk" diff --git a/lib/clang/liblldbPluginProcessElfCore/Makefile b/lib/clang/liblldbPluginProcessElfCore/Makefile new file mode 100644 index 0000000..1d5dec3 --- /dev/null +++ b/lib/clang/liblldbPluginProcessElfCore/Makefile @@ -0,0 +1,21 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +LIB= lldbPluginProcessElfCore + +CFLAGS+=-I${.CURDIR}/../../../contrib/llvm/tools/lldb/source/Plugins/Process/POSIX +CFLAGS+=-I${.CURDIR}/../../../contrib/llvm/tools/lldb/source/Plugins/Process/Utility + +SRCDIR= tools/lldb/source/Plugins/Process/elf-core +SRCS= ProcessElfCore.cpp \ + ThreadElfCore.cpp \ + RegisterContextCoreLinux_x86_64.cpp \ + RegisterContextCoreFreeBSD_x86_64.cpp + +TGHDRS= DiagnosticCommonKinds \ + DeclNodes \ + StmtNodes \ + CommentCommandList + +.include "../lldb.lib.mk" diff --git a/lib/clang/liblldbPluginProcessFreeBSD/Makefile b/lib/clang/liblldbPluginProcessFreeBSD/Makefile new file mode 100644 index 0000000..80e668e --- /dev/null +++ b/lib/clang/liblldbPluginProcessFreeBSD/Makefile @@ -0,0 +1,20 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +LIB= lldbPluginProcessFreeBSD + +# include_directories(.) +CFLAGS+=-I${.CURDIR}/../../../contrib/llvm/tools/lldb/source/Plugins/Process/FreeBSD +CFLAGS+=-I${.CURDIR}/../../../contrib/llvm/tools/lldb/source/Plugins/Process/POSIX + +SRCDIR= tools/lldb/source/Plugins/Process/FreeBSD +SRCS= ProcessFreeBSD.cpp \ + ProcessMonitor.cpp + +TGHDRS= DiagnosticCommonKinds \ + DeclNodes \ + StmtNodes \ + CommentCommandList + +.include "../lldb.lib.mk" diff --git a/lib/clang/liblldbPluginProcessGDBRemote/Makefile b/lib/clang/liblldbPluginProcessGDBRemote/Makefile new file mode 100644 index 0000000..c76fe8a --- /dev/null +++ b/lib/clang/liblldbPluginProcessGDBRemote/Makefile @@ -0,0 +1,21 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +LIB= lldbPluginProcessGDBRemote + +SRCDIR= tools/lldb/source/Plugins/Process/gdb-remote +SRCS= GDBRemoteCommunication.cpp \ + GDBRemoteCommunicationClient.cpp \ + GDBRemoteCommunicationServer.cpp \ + GDBRemoteRegisterContext.cpp \ + ProcessGDBRemote.cpp \ + ProcessGDBRemoteLog.cpp \ + ThreadGDBRemote.cpp + +TGHDRS= DiagnosticCommonKinds \ + DeclNodes \ + StmtNodes \ + CommentCommandList + +.include "../lldb.lib.mk" diff --git a/lib/clang/liblldbPluginProcessPOSIX/Makefile b/lib/clang/liblldbPluginProcessPOSIX/Makefile new file mode 100644 index 0000000..cee18c5 --- /dev/null +++ b/lib/clang/liblldbPluginProcessPOSIX/Makefile @@ -0,0 +1,28 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +LIB= lldbPluginProcessPOSIX + +# include_directories(.) +CFLAGS+=-I${.CURDIR}/../../../contrib/llvm/tools/lldb/source/Plugins/Process/POSIX +CFLAGS+=-I${.CURDIR}/../../../contrib/llvm/tools/lldb/source/Plugins/Process/Utility +CFLAGS+=-I${.CURDIR}/../../../contrib/llvm/tools/lldb/source/Plugins/Process/FreeBSD + +SRCDIR= tools/lldb/source/Plugins/Process/POSIX +SRCS= POSIXStopInfo.cpp \ + POSIXThread.cpp \ + ProcessMessage.cpp \ + ProcessPOSIX.cpp \ + ProcessPOSIXLog.cpp \ + RegisterContextFreeBSD_x86_64.cpp \ + RegisterContext_i386.cpp \ + RegisterContextLinux_x86_64.cpp \ + RegisterContext_x86_64.cpp + +TGHDRS= DiagnosticCommonKinds \ + DeclNodes \ + StmtNodes \ + CommentCommandList + +.include "../lldb.lib.mk" diff --git a/lib/clang/liblldbPluginProcessUtility/Makefile b/lib/clang/liblldbPluginProcessUtility/Makefile new file mode 100644 index 0000000..d0b221f --- /dev/null +++ b/lib/clang/liblldbPluginProcessUtility/Makefile @@ -0,0 +1,31 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +LIB= lldbPluginProcessUtility + +SRCDIR= tools/lldb/source/Plugins/Process/Utility +SRCS= DynamicRegisterInfo.cpp \ + InferiorCallPOSIX.cpp \ + RegisterContextDarwin_arm.cpp \ + RegisterContextDarwin_i386.cpp \ + RegisterContextDarwin_x86_64.cpp \ + RegisterContextDummy.cpp \ + RegisterContextLLDB.cpp \ + RegisterContextMach_arm.cpp \ + RegisterContextMach_i386.cpp \ + RegisterContextMach_x86_64.cpp \ + RegisterContextMacOSXFrameBackchain.cpp \ + RegisterContextMemory.cpp \ + RegisterContextThreadMemory.cpp \ + StopInfoMachException.cpp \ + ThreadMemory.cpp \ + UnwindLLDB.cpp \ + UnwindMacOSXFrameBackchain.cpp + +TGHDRS= DiagnosticCommonKinds \ + DeclNodes \ + StmtNodes \ + CommentCommandList + +.include "../lldb.lib.mk" diff --git a/lib/clang/liblldbPluginSymbolFileDWARF/Makefile b/lib/clang/liblldbPluginSymbolFileDWARF/Makefile new file mode 100644 index 0000000..92845e4 --- /dev/null +++ b/lib/clang/liblldbPluginSymbolFileDWARF/Makefile @@ -0,0 +1,41 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +LIB= lldbPluginSymbolFileDWARF + +SRCDIR= tools/lldb/source/Plugins/SymbolFile/DWARF +SRCS= DWARFAbbreviationDeclaration.cpp \ + DWARFCompileUnit.cpp \ + DWARFDebugAbbrev.cpp \ + DWARFDebugAranges.cpp \ + DWARFDebugArangeSet.cpp \ + DWARFDebugInfo.cpp \ + DWARFDebugInfoEntry.cpp \ + DWARFDebugLine.cpp \ + DWARFDebugMacinfo.cpp \ + DWARFDebugMacinfoEntry.cpp \ + DWARFDebugPubnames.cpp \ + DWARFDebugPubnamesSet.cpp \ + DWARFDebugRanges.cpp \ + DWARFDeclContext.cpp \ + DWARFDefines.cpp \ + DWARFDIECollection.cpp \ + DWARFFormValue.cpp \ + DWARFLocationDescription.cpp \ + DWARFLocationList.cpp \ + LogChannelDWARF.cpp \ + NameToDIE.cpp \ + SymbolFileDWARF.cpp \ + SymbolFileDWARFDebugMap.cpp \ + UniqueDWARFASTType.cpp + +TGHDRS= DiagnosticCommonKinds \ + DeclNodes \ + StmtNodes \ + CommentCommandList \ + AttrParsedAttrList \ + DiagnosticFrontendKinds \ + Intrinsics + +.include "../lldb.lib.mk" diff --git a/lib/clang/liblldbPluginSymbolFileSymtab/Makefile b/lib/clang/liblldbPluginSymbolFileSymtab/Makefile new file mode 100644 index 0000000..29e8803 --- /dev/null +++ b/lib/clang/liblldbPluginSymbolFileSymtab/Makefile @@ -0,0 +1,15 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +LIB= lldbPluginSymbolFileSymtab + +SRCDIR= tools/lldb/source/Plugins/SymbolFile/Symtab +SRCS= SymbolFileSymtab.cpp + +TGHDRS= DiagnosticCommonKinds \ + DeclNodes \ + StmtNodes \ + CommentCommandList + +.include "../lldb.lib.mk" diff --git a/lib/clang/liblldbPluginSymbolVendorELF/Makefile b/lib/clang/liblldbPluginSymbolVendorELF/Makefile new file mode 100644 index 0000000..3b3a928 --- /dev/null +++ b/lib/clang/liblldbPluginSymbolVendorELF/Makefile @@ -0,0 +1,15 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +LIB= lldbPluginSymbolVendorELF + +SRCDIR= tools/lldb/source/Plugins/SymbolVendor/ELF +SRCS= SymbolVendorELF.cpp + +TGHDRS= DiagnosticCommonKinds \ + DeclNodes \ + StmtNodes \ + CommentCommandList + +.include "../lldb.lib.mk" diff --git a/lib/clang/liblldbPluginUnwindAssemblyInstEmulation/Makefile b/lib/clang/liblldbPluginUnwindAssemblyInstEmulation/Makefile new file mode 100644 index 0000000..b650411 --- /dev/null +++ b/lib/clang/liblldbPluginUnwindAssemblyInstEmulation/Makefile @@ -0,0 +1,15 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +LIB= lldbPluginUnwindAssemblyInstEmulation + +SRCDIR= tools/lldb/source/Plugins/UnwindAssembly/InstEmulation +SRCS= UnwindAssemblyInstEmulation.cpp + +TGHDRS= DiagnosticCommonKinds \ + DeclNodes \ + StmtNodes \ + CommentCommandList + +.include "../lldb.lib.mk" diff --git a/lib/clang/liblldbPluginUnwindAssemblyX86/Makefile b/lib/clang/liblldbPluginUnwindAssemblyX86/Makefile new file mode 100644 index 0000000..1e75536 --- /dev/null +++ b/lib/clang/liblldbPluginUnwindAssemblyX86/Makefile @@ -0,0 +1,15 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +LIB= lldbPluginUnwindAssemblyX86 + +SRCDIR= tools/lldb/source/Plugins/UnwindAssembly/x86 +SRCS= UnwindAssembly-x86.cpp + +TGHDRS= DiagnosticCommonKinds \ + DeclNodes \ + StmtNodes \ + CommentCommandList + +.include "../lldb.lib.mk" diff --git a/lib/clang/liblldbSymbol/Makefile b/lib/clang/liblldbSymbol/Makefile new file mode 100644 index 0000000..ed22ec3 --- /dev/null +++ b/lib/clang/liblldbSymbol/Makefile @@ -0,0 +1,43 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +LIB= lldbSymbol + +SRCDIR= tools/lldb/source/Symbol +SRCS= Block.cpp \ + ClangASTContext.cpp \ + ClangASTImporter.cpp \ + ClangASTType.cpp \ + ClangExternalASTSourceCallbacks.cpp \ + ClangExternalASTSourceCommon.cpp \ + ClangNamespaceDecl.cpp \ + CompileUnit.cpp \ + Declaration.cpp \ + DWARFCallFrameInfo.cpp \ + Function.cpp \ + FuncUnwinders.cpp \ + LineEntry.cpp \ + LineTable.cpp \ + ObjectFile.cpp \ + Symbol.cpp \ + SymbolContext.cpp \ + SymbolFile.cpp \ + SymbolVendor.cpp \ + Symtab.cpp \ + Type.cpp \ + TypeList.cpp \ + UnwindPlan.cpp \ + UnwindTable.cpp \ + Variable.cpp \ + VariableList.cpp \ + VerifyDecl.cpp + +TGHDRS= DiagnosticCommonKinds \ + DeclNodes \ + StmtNodes \ + CommentCommandList \ + AttrList \ + Attrs + +.include "../lldb.lib.mk" diff --git a/lib/clang/liblldbTarget/Makefile b/lib/clang/liblldbTarget/Makefile new file mode 100644 index 0000000..c6384be --- /dev/null +++ b/lib/clang/liblldbTarget/Makefile @@ -0,0 +1,54 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +LIB= lldbTarget + +CFLAGS+=-I${.CURDIR}/../../../contrib/llvm/tools/lldb/source/Plugins/Process/Utility + +SRCDIR= tools/lldb/source/Target +SRCS= ABI.cpp \ + CPPLanguageRuntime.cpp \ + ExecutionContext.cpp \ + LanguageRuntime.cpp \ + Memory.cpp \ + ObjCLanguageRuntime.cpp \ + OperatingSystem.cpp \ + PathMappingList.cpp \ + Platform.cpp \ + Process.cpp \ + RegisterContext.cpp \ + SectionLoadList.cpp \ + StackFrame.cpp \ + StackFrameList.cpp \ + StackID.cpp \ + StopInfo.cpp \ + Target.cpp \ + TargetList.cpp \ + Thread.cpp \ + ThreadList.cpp \ + ThreadPlan.cpp \ + ThreadPlanBase.cpp \ + ThreadPlanCallFunction.cpp \ + ThreadPlanCallUserExpression.cpp \ + ThreadPlanRunToAddress.cpp \ + ThreadPlanShouldStopHere.cpp \ + ThreadPlanStepInRange.cpp \ + ThreadPlanStepInstruction.cpp \ + ThreadPlanStepOut.cpp \ + ThreadPlanStepOverBreakpoint.cpp \ + ThreadPlanStepOverRange.cpp \ + ThreadPlanStepRange.cpp \ + ThreadPlanStepThrough.cpp \ + ThreadPlanStepUntil.cpp \ + ThreadPlanTracer.cpp \ + ThreadSpec.cpp \ + UnixSignals.cpp \ + UnwindAssembly.cpp + +TGHDRS= DiagnosticCommonKinds \ + DeclNodes \ + StmtNodes \ + CommentCommandList + +.include "../lldb.lib.mk" diff --git a/lib/clang/liblldbUtility/Makefile b/lib/clang/liblldbUtility/Makefile new file mode 100644 index 0000000..9c944e4 --- /dev/null +++ b/lib/clang/liblldbUtility/Makefile @@ -0,0 +1,18 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +LIB= lldbUtility + +SRCDIR= tools/lldb/source/Utility +SRCS= ARM_DWARF_Registers.cpp \ + KQueue.cpp \ + PseudoTerminal.cpp \ + Range.cpp \ + RefCounter.cpp \ + SharingPtr.cpp \ + StringExtractor.cpp \ + StringExtractorGDBRemote.cpp \ + TimeSpecTimeout.cpp + +.include "../lldb.lib.mk" diff --git a/lib/clang/libllvmmc/Makefile b/lib/clang/libllvmmc/Makefile index 3986ba6..045d217 100644 --- a/lib/clang/libllvmmc/Makefile +++ b/lib/clang/libllvmmc/Makefile @@ -48,7 +48,7 @@ SRCS= ELFObjectWriter.cpp \ WinCOFFObjectWriter.cpp \ WinCOFFStreamer.cpp -.if ${MK_CLANG_EXTRAS} != "no" +.if ${MK_CLANG_EXTRAS} != "no" || ${MK_LLDB} != "no" SRCS+= MCDisassembler.cpp .endif diff --git a/lib/clang/libllvmsupport/Makefile b/lib/clang/libllvmsupport/Makefile index 6d043b4..ff9b9cb 100644 --- a/lib/clang/libllvmsupport/Makefile +++ b/lib/clang/libllvmsupport/Makefile @@ -84,11 +84,14 @@ SRCS= APFloat.cpp \ regstrlcpy.c \ system_error.cpp +.if ${MK_CLANG_EXTRAS} != "no" || ${MK_LLDB} != "no" +SRCS+= DataExtractor.cpp \ + Disassembler.cpp +.endif + .if ${MK_CLANG_EXTRAS} != "no" SRCS+= Compression.cpp \ - DataExtractor.cpp \ DataStream.cpp \ - Disassembler.cpp \ FileUtilities.cpp \ SystemUtils.cpp .endif diff --git a/lib/clang/libllvmx86disassembler/Makefile b/lib/clang/libllvmx86disassembler/Makefile index fbaa5c6..797f2bf 100644 --- a/lib/clang/libllvmx86disassembler/Makefile +++ b/lib/clang/libllvmx86disassembler/Makefile @@ -8,7 +8,7 @@ SRCDIR= lib/Target/X86/Disassembler INCDIR= lib/Target/X86 SRCS= X86Disassembler.cpp -.if ${MK_CLANG_EXTRAS} != "no" +.if ${MK_CLANG_EXTRAS} != "no" || ${MK_LLDB} != "no" SRCS+= X86DisassemblerDecoder.c .endif diff --git a/lib/clang/lldb.lib.mk b/lib/clang/lldb.lib.mk new file mode 100644 index 0000000..d8dc024 --- /dev/null +++ b/lib/clang/lldb.lib.mk @@ -0,0 +1,8 @@ +# $FreeBSD$ + +LLDB_SRCS= ${.CURDIR}/../../../contrib/llvm/tools/lldb + +CFLAGS+=-I${LLDB_SRCS}/include -I${LLDB_SRCS}/source +CXXFLAGS+=-std=c++11 -DLLDB_DISABLE_PYTHON + +.include "clang.lib.mk" diff --git a/lib/csu/arm/crt1.c b/lib/csu/arm/crt1.c index e3529b8..d9f8a2d 100644 --- a/lib/csu/arm/crt1.c +++ b/lib/csu/arm/crt1.c @@ -115,6 +115,20 @@ __start(int argc, char **argv, char **env, struct ps_strings *ps_strings, exit(main(argc, argv, env)); } +static const struct { + int32_t namesz; + int32_t descsz; + int32_t type; + char name[sizeof(NOTE_FREEBSD_VENDOR)]; + char desc[sizeof(MACHINE_ARCH)]; +} archtag __attribute__ ((section (NOTE_SECTION), aligned(4))) __used = { + .namesz = sizeof(NOTE_FREEBSD_VENDOR), + .descsz = sizeof(int32_t), + .type = ARCH_NOTETYPE, + .name = NOTE_FREEBSD_VENDOR, + .desc = MACHINE_ARCH +}; + #ifdef GCRT __asm__(".text"); __asm__("eprol:"); diff --git a/lib/csu/common/notes.h b/lib/csu/common/notes.h index fcc2b66..b2c53bf 100644 --- a/lib/csu/common/notes.h +++ b/lib/csu/common/notes.h @@ -34,5 +34,6 @@ #define ABI_NOTETYPE 1 #define CRT_NOINIT_NOTETYPE 2 +#define ARCH_NOTETYPE 3 #endif diff --git a/lib/libarchive/Makefile b/lib/libarchive/Makefile index ac85bba..eb39219 100644 --- a/lib/libarchive/Makefile +++ b/lib/libarchive/Makefile @@ -35,7 +35,9 @@ LDADD+= -lmd .endif .if ${MK_ICONV} != "no" -CFLAGS+= -DHAVE_ICONV=1 -DHAVE_ICONV_H=1 -DICONV_CONST=const +# TODO: This can be changed back to CFLAGS once iconv works correctly +# with statically linked binaries. +SHARED_CFLAGS+= -DHAVE_ICONV=1 -DHAVE_ICONV_H=1 -DICONV_CONST=const .endif .if ${MACHINE_ARCH:Marm*} != "" || ${MACHINE_ARCH:Mmips*} != "" || \ diff --git a/lib/libc/gen/lockf.3 b/lib/libc/gen/lockf.3 index d9350d1..a4adcfa 100644 --- a/lib/libc/gen/lockf.3 +++ b/lib/libc/gen/lockf.3 @@ -29,7 +29,7 @@ .\" .\" $FreeBSD$ .\" -.Dd December 19, 1997 +.Dd September 11, 2013 .Dt LOCKF 3 .Os .Sh NAME @@ -40,7 +40,7 @@ .Sh SYNOPSIS .In unistd.h .Ft int -.Fn lockf "int filedes" "int function" "off_t size" +.Fn lockf "int fd" "int function" "off_t size" .Sh DESCRIPTION The .Fn lockf @@ -52,7 +52,7 @@ either return an error value or block until the section becomes unlocked. All the locks for a process are removed when the process terminates. .Pp The argument -.Fa filedes +.Fa fd is an open file descriptor. The file descriptor must have been opened either for write-only .Dv ( O_WRONLY ) @@ -207,7 +207,7 @@ or and the section is already locked by another process. .It Bq Er EBADF The argument -.Fa filedes +.Fa fd is not a valid open file descriptor. .Pp The argument @@ -217,7 +217,7 @@ is or .Dv F_TLOCK , and -.Fa filedes +.Fa fd is not a valid file descriptor open for writing. .It Bq Er EDEADLK The argument @@ -243,7 +243,7 @@ or .Dv F_TEST . .Pp The argument -.Fa filedes +.Fa fd refers to a file that does not support locking. .It Bq Er ENOLCK The argument diff --git a/lib/libc/net/sctp_sys_calls.c b/lib/libc/net/sctp_sys_calls.c index 1b65b07..fda9676 100644 --- a/lib/libc/net/sctp_sys_calls.c +++ b/lib/libc/net/sctp_sys_calls.c @@ -101,10 +101,10 @@ sctp_connectx(int sd, const struct sockaddr *addrs, int addrcnt, sctp_assoc_t * id) { char *buf; - int i, ret, cnt, *aa; + int i, ret, *aa; char *cpto; const struct sockaddr *at; - size_t len = sizeof(int); + size_t len; /* validate the address count and list */ if ((addrs == NULL) || (addrcnt <= 0)) { @@ -115,8 +115,8 @@ sctp_connectx(int sd, const struct sockaddr *addrs, int addrcnt, errno = E2BIG; return (-1); } + len = sizeof(int); at = addrs; - cnt = 0; cpto = buf + sizeof(int); /* validate all the addresses and get the size */ for (i = 0; i < addrcnt; i++) { @@ -161,6 +161,7 @@ sctp_connectx(int sd, const struct sockaddr *addrs, int addrcnt, if ((ret == 0) && (id != NULL)) { *id = *(sctp_assoc_t *) buf; } + free(buf); return (ret); } diff --git a/lib/libc/sys/Makefile.inc b/lib/libc/sys/Makefile.inc index 4cc87ae..ac5907b 100644 --- a/lib/libc/sys/Makefile.inc +++ b/lib/libc/sys/Makefile.inc @@ -197,6 +197,7 @@ MAN+= abort2.2 \ posix_fadvise.2 \ posix_fallocate.2 \ posix_openpt.2 \ + procctl.2 \ profil.2 \ pselect.2 \ ptrace.2 \ diff --git a/lib/libc/sys/Symbol.map b/lib/libc/sys/Symbol.map index 222f5f0..fe887c3 100644 --- a/lib/libc/sys/Symbol.map +++ b/lib/libc/sys/Symbol.map @@ -395,6 +395,7 @@ FBSD_1.3 { ffclock_setestimate; pipe2; posix_fadvise; + procctl; wait6; }; @@ -822,6 +823,8 @@ FBSDprivate_1.0 { __sys_poll; _preadv; __sys_preadv; + _procctl; + __sys_procctl; _profil; __sys_profil; _pselect; diff --git a/lib/libc/sys/accept.2 b/lib/libc/sys/accept.2 index 76fb463..7b8422a 100644 --- a/lib/libc/sys/accept.2 +++ b/lib/libc/sys/accept.2 @@ -28,7 +28,7 @@ .\" @(#)accept.2 8.2 (Berkeley) 12/11/93 .\" $FreeBSD$ .\" -.Dd May 1, 2013 +.Dd October 1, 2013 .Dt ACCEPT 2 .Os .Sh NAME @@ -155,13 +155,20 @@ For some applications, performance may be enhanced by using an .Xr accept_filter 9 to pre-process incoming connections. .Pp -Portable programs should not rely on the +When using +.Fn accept , +portable programs should not rely on the .Dv O_NONBLOCK and .Dv O_ASYNC properties and the signal destination being inherited, but should set them explicitly using -.Xr fcntl 2 . +.Xr fcntl 2 ; +.Fn accept4 +sets these properties consistently, +but may not be fully portable across +.Ux +platforms. .Sh RETURN VALUES These calls return \-1 on error. If they succeed, they return a non-negative diff --git a/lib/libc/sys/close.2 b/lib/libc/sys/close.2 index c3a0972..6df4500 100644 --- a/lib/libc/sys/close.2 +++ b/lib/libc/sys/close.2 @@ -28,7 +28,7 @@ .\" @(#)close.2 8.2 (Berkeley) 4/19/94 .\" $FreeBSD$ .\" -.Dd January 22, 2012 +.Dd September 11, 2013 .Dt CLOSE 2 .Os .Sh NAME @@ -39,7 +39,7 @@ .Sh SYNOPSIS .In unistd.h .Ft int -.Fn close "int d" +.Fn close "int fd" .Sh DESCRIPTION The .Fn close @@ -107,7 +107,7 @@ system call will fail if: .Bl -tag -width Er .It Bq Er EBADF The -.Fa d +.Fa fd argument is not an active descriptor. .It Bq Er EINTR diff --git a/lib/libc/sys/ioctl.2 b/lib/libc/sys/ioctl.2 index bab7b47..81500a9 100644 --- a/lib/libc/sys/ioctl.2 +++ b/lib/libc/sys/ioctl.2 @@ -29,7 +29,7 @@ .\" .\" $FreeBSD$ .\" -.Dd May 11, 2010 +.Dd September 11, 2013 .Dt IOCTL 2 .Os .Sh NAME @@ -40,7 +40,7 @@ .Sh SYNOPSIS .In sys/ioctl.h .Ft int -.Fn ioctl "int d" "unsigned long request" ... +.Fn ioctl "int fd" "unsigned long request" ... .Sh DESCRIPTION The .Fn ioctl @@ -51,7 +51,7 @@ may be controlled with .Fn ioctl requests. The argument -.Fa d +.Fa fd must be an open file descriptor. .Pp The third argument to @@ -116,19 +116,19 @@ will fail if: .Bl -tag -width Er .It Bq Er EBADF The -.Fa d +.Fa fd argument is not a valid descriptor. .It Bq Er ENOTTY The -.Fa d +.Fa fd argument is not associated with a character special device. .It Bq Er ENOTTY The specified request does not apply to the kind of object that the descriptor -.Fa d +.Fa fd references. .It Bq Er EINVAL The diff --git a/lib/libc/sys/procctl.2 b/lib/libc/sys/procctl.2 new file mode 100644 index 0000000..32bf34d --- /dev/null +++ b/lib/libc/sys/procctl.2 @@ -0,0 +1,142 @@ +.\" Copyright (c) 2013 Advanced Computing Technologies LLC +.\" Written by: John H. Baldwin <jhb@FreeBSD.org> +.\" 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. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 AUTHOR 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. +.\" +.\" $FreeBSD$ +.\" +.Dd September 19, 2013 +.Dt PROCCTL 2 +.Os +.Sh NAME +.Nm procctl +.Nd control processes +.Sh LIBRARY +.Lb libc +.Sh SYNOPSIS +.In sys/procctl.h +.Ft int +.Fn procctl "idtype_t idtype" "id_t id" "int cmd" "void *arg" +.Sh DESCRIPTION +The +.Fn procctl +system call provides for control over processes. +The +.Fa idtype +and +.Fa id +arguments specify the set of processes to control. +If multiple processes match the identifier, +.Nm +will make a +.Dq best effort +to control as many of the selected possibles as possible. +An error is only returned if no selected processes successfully complete +the request. +The following identifier types are supported: +.Bl -tag -width "Dv P_PGID" +.It Dv P_PID +Control the process with the process ID +.Fa id . +.It Dv P_PGID +Control processes belonging to the process group with the ID +.Fa id . +.El +.Pp +The control request to perform is specified by the +.Fa cmd +argument. +The following commands are supported: +.Bl -tag -width "Dv PROC_SPROTECT" +.It Dv PROC_SPROTECT +Set process protection state. +This is used to mark a process as protected from being killed if the system +exhausts available memory and swap. +The +.Fa arg +parameter must point to an integer containing an operation and zero or more +optional flags. +The following operations are supported: +.Bl -tag -width "Dv PPROT_CLEAR" +.It Dv PPROT_SET +Mark the selected processes as protected. +.It Dv PPROT_CLEAR +Clear the protected state of selected processes. +.El +.Pp +The following optional flags are supported: +.Bl -tag -width "Dv PPROT_DESCE" +.It Dv PPROT_DESCEND +Apply the requested operation to all child processes of each selected process +in addition to each selected process. +.It Dv PPROT_INHERIT +When used with +.Dv PPROT_SET , +mark all future child processes of each selected process as protected. +Future child processes will also mark all of their future child processes. +.El +.El +.Sh RETURN VALUES +If an error occurs, a value of -1 is returned and +.Va errno +is set to indicate the error. +.Sh ERRORS +The +.Fn procctl +system call +will fail if: +.Bl -tag -width Er +.It Bq Er EFAULT +The +.Fa arg +points outside the process's allocated address space. +.It Bq Er EINVAL +The +.Fa cmd +argument specifies an unsupported command. +.Pp +The +.Fa idtype +argument specifies an unsupported identifier type. +.It Bq Er EPERM +The calling process does not have permission to perform the requested +operation on any of the selected processes. +.It Bq Er ESRCH +No processes matched the requested +.Fa idtype +and +.Fa id . +.It Bq Er EINVAL +An invalid operation or flag was passed in +.Fa arg +for a +.Dv PROC_SPROTECT +command. +.El +.Sh SEE ALSO +.Xr ptrace 2 +.Sh HISTORY +The +.Fn procctl +function appeared in +.Fx 10 . diff --git a/lib/libc/sys/read.2 b/lib/libc/sys/read.2 index 2127eda..e99665f 100644 --- a/lib/libc/sys/read.2 +++ b/lib/libc/sys/read.2 @@ -28,7 +28,7 @@ .\" @(#)read.2 8.4 (Berkeley) 2/26/94 .\" $FreeBSD$ .\" -.Dd January 22, 2012 +.Dd September 11, 2013 .Dt READ 2 .Os .Sh NAME @@ -43,14 +43,14 @@ .In sys/types.h .In unistd.h .Ft ssize_t -.Fn read "int d" "void *buf" "size_t nbytes" +.Fn read "int fd" "void *buf" "size_t nbytes" .Ft ssize_t -.Fn pread "int d" "void *buf" "size_t nbytes" "off_t offset" +.Fn pread "int fd" "void *buf" "size_t nbytes" "off_t offset" .In sys/uio.h .Ft ssize_t -.Fn readv "int d" "const struct iovec *iov" "int iovcnt" +.Fn readv "int fd" "const struct iovec *iov" "int iovcnt" .Ft ssize_t -.Fn preadv "int d" "const struct iovec *iov" "int iovcnt" "off_t offset" +.Fn preadv "int fd" "const struct iovec *iov" "int iovcnt" "off_t offset" .Sh DESCRIPTION The .Fn read @@ -58,7 +58,7 @@ system call attempts to read .Fa nbytes of data from the object referenced by the descriptor -.Fa d +.Fa fd into the buffer pointed to by .Fa buf . The @@ -107,7 +107,7 @@ On objects capable of seeking, the .Fn read starts at a position given by the pointer associated with -.Fa d +.Fa fd (see .Xr lseek 2 ) . Upon return from @@ -149,12 +149,12 @@ will succeed unless: .Bl -tag -width Er .It Bq Er EBADF The -.Fa d +.Fa fd argument is not a valid file or socket descriptor open for reading. .It Bq Er ECONNRESET The -.Fa d +.Fa fd argument refers to a socket, and the remote socket end is forcibly closed. .It Bq Er EFAULT @@ -173,7 +173,7 @@ was interrupted by the delivery of a signal before any data arrived. .It Bq Er EINVAL The pointer associated with -.Fa d +.Fa fd was negative. .It Bq Er EAGAIN The file was marked for non-blocking I/O, diff --git a/lib/libc/sys/socketpair.2 b/lib/libc/sys/socketpair.2 index 08d00d3..d3a47eb 100644 --- a/lib/libc/sys/socketpair.2 +++ b/lib/libc/sys/socketpair.2 @@ -28,7 +28,7 @@ .\" @(#)socketpair.2 8.1 (Berkeley) 6/4/93 .\" $FreeBSD$ .\" -.Dd March 19, 2013 +.Dd September 11, 2013 .Dt SOCKETPAIR 2 .Os .Sh NAME @@ -40,13 +40,13 @@ .In sys/types.h .In sys/socket.h .Ft int -.Fn socketpair "int d" "int type" "int protocol" "int *sv" +.Fn socketpair "int fd" "int type" "int protocol" "int *sv" .Sh DESCRIPTION The .Fn socketpair system call creates an unnamed pair of connected sockets in the specified domain -.Fa d , +.Fa fd , of the specified .Fa type , and using the optionally specified diff --git a/lib/libc/sys/write.2 b/lib/libc/sys/write.2 index d22b985..a06e7c9 100644 --- a/lib/libc/sys/write.2 +++ b/lib/libc/sys/write.2 @@ -28,7 +28,7 @@ .\" @(#)write.2 8.5 (Berkeley) 4/2/94 .\" $FreeBSD$ .\" -.Dd January 22, 2012 +.Dd September 11, 2013 .Dt WRITE 2 .Os .Sh NAME @@ -43,14 +43,14 @@ .In sys/types.h .In unistd.h .Ft ssize_t -.Fn write "int d" "const void *buf" "size_t nbytes" +.Fn write "int fd" "const void *buf" "size_t nbytes" .Ft ssize_t -.Fn pwrite "int d" "const void *buf" "size_t nbytes" "off_t offset" +.Fn pwrite "int fd" "const void *buf" "size_t nbytes" "off_t offset" .In sys/uio.h .Ft ssize_t -.Fn writev "int d" "const struct iovec *iov" "int iovcnt" +.Fn writev "int fd" "const struct iovec *iov" "int iovcnt" .Ft ssize_t -.Fn pwritev "int d" "const struct iovec *iov" "int iovcnt" "off_t offset" +.Fn pwritev "int fd" "const struct iovec *iov" "int iovcnt" "off_t offset" .Sh DESCRIPTION The .Fn write @@ -58,7 +58,7 @@ system call attempts to write .Fa nbytes of data to the object referenced by the descriptor -.Fa d +.Fa fd from the buffer pointed to by .Fa buf . The @@ -107,7 +107,7 @@ On objects capable of seeking, the .Fn write starts at a position given by the pointer associated with -.Fa d , +.Fa fd , see .Xr lseek 2 . Upon return from @@ -154,7 +154,7 @@ will fail and the file pointer will remain unchanged if: .Bl -tag -width Er .It Bq Er EBADF The -.Fa d +.Fa fd argument is not a valid descriptor open for writing. .It Bq Er EPIPE @@ -174,7 +174,7 @@ or data to be written to the file points outside the process's allocated address space. .It Bq Er EINVAL The pointer associated with -.Fa d +.Fa fd was negative. .It Bq Er ENOSPC There is no free space remaining on the file system diff --git a/lib/libedit/readline.c b/lib/libedit/readline.c index 35054fa..20a0f056 100644 --- a/lib/libedit/readline.c +++ b/lib/libedit/readline.c @@ -1363,6 +1363,9 @@ add_history(const char *line) TYPE(HistEvent) ev; const Char *wline; + if (line == NULL) + return 0; + if (h == NULL || e == NULL) rl_initialize(); diff --git a/lib/libprocstat/libprocstat.c b/lib/libprocstat/libprocstat.c index 9056151..e1ec7af 100644 --- a/lib/libprocstat/libprocstat.c +++ b/lib/libprocstat/libprocstat.c @@ -61,6 +61,7 @@ __FBSDID("$FreeBSD$"); #include <sys/conf.h> #include <sys/ksem.h> #include <sys/mman.h> +#include <sys/capability.h> #define _KERNEL #include <sys/mount.h> #include <sys/pipe.h> @@ -395,7 +396,10 @@ filestat_new_entry(void *typedep, int type, int fd, int fflags, int uflags, entry->fs_ref_count = refcount; entry->fs_offset = offset; entry->fs_path = path; - entry->fs_cap_rights = *cap_rightsp; + if (cap_rightsp != NULL) + entry->fs_cap_rights = *cap_rightsp; + else + cap_rights_init(&entry->fs_cap_rights); return (entry); } @@ -478,21 +482,21 @@ procstat_getfiles_kvm(struct procstat *procstat, struct kinfo_proc *kp, int mmap /* root directory vnode, if one. */ if (filed.fd_rdir) { entry = filestat_new_entry(filed.fd_rdir, PS_FST_TYPE_VNODE, -1, - PS_FST_FFLAG_READ, PS_FST_UFLAG_RDIR, 0, 0, NULL, 0); + PS_FST_FFLAG_READ, PS_FST_UFLAG_RDIR, 0, 0, NULL, NULL); if (entry != NULL) STAILQ_INSERT_TAIL(head, entry, next); } /* current working directory vnode. */ if (filed.fd_cdir) { entry = filestat_new_entry(filed.fd_cdir, PS_FST_TYPE_VNODE, -1, - PS_FST_FFLAG_READ, PS_FST_UFLAG_CDIR, 0, 0, NULL, 0); + PS_FST_FFLAG_READ, PS_FST_UFLAG_CDIR, 0, 0, NULL, NULL); if (entry != NULL) STAILQ_INSERT_TAIL(head, entry, next); } /* jail root, if any. */ if (filed.fd_jdir) { entry = filestat_new_entry(filed.fd_jdir, PS_FST_TYPE_VNODE, -1, - PS_FST_FFLAG_READ, PS_FST_UFLAG_JAIL, 0, 0, NULL, 0); + PS_FST_FFLAG_READ, PS_FST_UFLAG_JAIL, 0, 0, NULL, NULL); if (entry != NULL) STAILQ_INSERT_TAIL(head, entry, next); } @@ -500,14 +504,14 @@ procstat_getfiles_kvm(struct procstat *procstat, struct kinfo_proc *kp, int mmap if (kp->ki_tracep) { entry = filestat_new_entry(kp->ki_tracep, PS_FST_TYPE_VNODE, -1, PS_FST_FFLAG_READ | PS_FST_FFLAG_WRITE, - PS_FST_UFLAG_TRACE, 0, 0, NULL, 0); + PS_FST_UFLAG_TRACE, 0, 0, NULL, NULL); if (entry != NULL) STAILQ_INSERT_TAIL(head, entry, next); } /* text vnode, if one */ if (kp->ki_textvp) { entry = filestat_new_entry(kp->ki_textvp, PS_FST_TYPE_VNODE, -1, - PS_FST_FFLAG_READ, PS_FST_UFLAG_TEXT, 0, 0, NULL, 0); + PS_FST_FFLAG_READ, PS_FST_UFLAG_TEXT, 0, 0, NULL, NULL); if (entry != NULL) STAILQ_INSERT_TAIL(head, entry, next); } @@ -515,7 +519,7 @@ procstat_getfiles_kvm(struct procstat *procstat, struct kinfo_proc *kp, int mmap if ((vp = getctty(kd, kp)) != NULL) { entry = filestat_new_entry(vp, PS_FST_TYPE_VNODE, -1, PS_FST_FFLAG_READ | PS_FST_FFLAG_WRITE, - PS_FST_UFLAG_CTTY, 0, 0, NULL, 0); + PS_FST_UFLAG_CTTY, 0, 0, NULL, NULL); if (entry != NULL) STAILQ_INSERT_TAIL(head, entry, next); } @@ -578,7 +582,7 @@ procstat_getfiles_kvm(struct procstat *procstat, struct kinfo_proc *kp, int mmap } /* XXXRW: No capability rights support for kvm yet. */ entry = filestat_new_entry(data, type, i, - to_filestat_flags(file.f_flag), 0, 0, 0, NULL, 0); + to_filestat_flags(file.f_flag), 0, 0, 0, NULL, NULL); if (entry != NULL) STAILQ_INSERT_TAIL(head, entry, next); } @@ -637,7 +641,7 @@ do_mmapped: */ entry = filestat_new_entry(object.handle, PS_FST_TYPE_VNODE, -1, fflags, - PS_FST_UFLAG_MMAP, 0, 0, NULL, 0); + PS_FST_UFLAG_MMAP, 0, 0, NULL, NULL); if (entry != NULL) STAILQ_INSERT_TAIL(head, entry, next); } @@ -878,7 +882,7 @@ procstat_getfiles_sysctl(struct procstat *procstat, struct kinfo_proc *kp, path = NULL; entry = filestat_new_entry(kve, PS_FST_TYPE_VNODE, -1, fflags, PS_FST_UFLAG_MMAP, refcount, offset, path, - 0); + NULL); if (entry != NULL) STAILQ_INSERT_TAIL(head, entry, next); } diff --git a/lib/libstand/tftp.c b/lib/libstand/tftp.c index aa331b3..e3983c3 100644 --- a/lib/libstand/tftp.c +++ b/lib/libstand/tftp.c @@ -400,10 +400,14 @@ tftp_open(const char *path, struct open_file *f) struct iodesc *io; int res; -#ifndef __i386__ - if (strcmp(f->f_dev->dv_name, "net") != 0) + if (strcmp(f->f_dev->dv_name, "net") != 0) { +#ifdef __i386__ + if (strcmp(f->f_dev->dv_name, "pxe") != 0) + return (EINVAL); +#else return (EINVAL); #endif + } if (is_open) return (EBUSY); diff --git a/lib/libunbound/Makefile b/lib/libunbound/Makefile new file mode 100644 index 0000000..eab23e1 --- /dev/null +++ b/lib/libunbound/Makefile @@ -0,0 +1,33 @@ +# $FreeBSD$ + +# Vendor sources and generated files +LDNSDIR= ${.CURDIR}/../../contrib/ldns +UNBOUNDDIR= ${.CURDIR}/../../contrib/unbound + +# Hold my beer and watch this +.PATH: ${UNBOUNDDIR} ${UNBOUNDDIR}/iterator ${UNBOUNDDIR}/libunbound ${UNBOUNDDIR}/services ${UNBOUNDDIR}/services/cache ${UNBOUNDDIR}/util ${UNBOUNDDIR}/util/data ${UNBOUNDDIR}/util/storage ${UNBOUNDDIR}/validator + +LIB= unbound +PRIVATELIB= + +CFLAGS= -I${LDNSDIR} -I${UNBOUNDDIR} + +SRCS= alloc.c autotrust.c config_file.c configlexer.c configparser.c \ + context.c dname.c dns.c dnstree.c fptr_wlist.c infra.c \ + iter_delegpt.c iter_donotq.c iter_fwd.c iter_hints.c iter_priv.c \ + iter_resptype.c iter_scrub.c iter_utils.c iterator.c libunbound.c \ + libworker.c listen_dnsport.c localzone.c locks.c log.c lookup3.c \ + lruhash.c mesh.c mini_event.c modstack.c module.c msgencode.c \ + msgparse.c msgreply.c net_help.c netevent.c outbound_list.c \ + outside_network.c packed_rrset.c random.c rbtree.c regional.c \ + rrset.c rtt.c slabhash.c timehist.c tube.c val_anchor.c \ + val_kcache.c val_kentry.c val_neg.c val_nsec.c val_nsec3.c \ + val_secalgo.c val_sigcrypt.c val_utils.c validator.c \ + winsock_event.c + +WARNS?= 3 + +DPADD+= ${LIBSSL} ${LIBCRYPTO} ${LIBPTHREAD} +LDADD+= -lssl -lcrypto -lpthread + +.include <bsd.lib.mk> diff --git a/lib/libutil/humanize_number.3 b/lib/libutil/humanize_number.3 index 32df6f8..3a883ca 100644 --- a/lib/libutil/humanize_number.3 +++ b/lib/libutil/humanize_number.3 @@ -28,7 +28,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd Apr 12, 2011 +.Dd October 7, 2013 .Dt HUMANIZE_NUMBER 3 .Os .Sh NAME @@ -140,7 +140,7 @@ The following flags may be passed in .Fa flags : .Bl -tag -width ".Dv HN_DIVISOR_1000" -offset indent .It Dv HN_DECIMAL -If the final result is less than 10, display it using one digit. +If the final result is less than 10, display it using one decimal place. .It Dv HN_NOSPACE Do not put a space between .Fa number @@ -160,13 +160,18 @@ This flag has no effect when is also specified. .El .Sh RETURN VALUES -The -.Fn humanize_number -function returns the number of characters stored in +Upon success, the +.Nm +function returns the number of characters that would have been stored in .Fa buf (excluding the terminating .Dv NUL ) -upon success, or \-1 upon failure. +if +.Fa buf +was large enough, or \-1 upon failure. +Even upon failure, the contents of +.Fa buf +may be modified. If .Dv HN_GETSCALE is specified, the prefix index number will be returned instead. diff --git a/lib/libutil/humanize_number.c b/lib/libutil/humanize_number.c index 1cad1cf..b773422 100644 --- a/lib/libutil/humanize_number.c +++ b/lib/libutil/humanize_number.c @@ -2,6 +2,7 @@ /* * Copyright (c) 1997, 1998, 1999, 2002 The NetBSD Foundation, Inc. + * Copyright 2013 John-Mark Gurney <jmg@FreeBSD.org> * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation @@ -50,15 +51,26 @@ humanize_number(char *buf, size_t len, int64_t quotient, { const char *prefixes, *sep; int i, r, remainder, s1, s2, sign; + int divisordeccut; int64_t divisor, max; size_t baselen; - assert(buf != NULL); - assert(suffix != NULL); - assert(scale >= 0); - assert(scale < maxscale || (((scale & (HN_AUTOSCALE | HN_GETSCALE)) != 0))); - assert(!((flags & HN_DIVISOR_1000) && (flags & HN_IEC_PREFIXES))); + /* Since so many callers don't check -1, NUL terminate the buffer */ + if (len > 0) + buf[0] = '\0'; + /* validate args */ + if (buf == NULL || suffix == NULL) + return (-1); + if (scale < 0) + return (-1); + else if (scale >= maxscale && + ((scale & ~(HN_AUTOSCALE|HN_GETSCALE)) != 0)) + return (-1); + if ((flags & HN_DIVISOR_1000) && (flags & HN_IEC_PREFIXES)) + return (-1); + + /* setup parameters */ remainder = 0; if (flags & HN_IEC_PREFIXES) { @@ -73,34 +85,32 @@ humanize_number(char *buf, size_t len, int64_t quotient, * an assertion earlier). */ divisor = 1024; + divisordeccut = 973; /* ceil(.95 * 1024) */ if (flags & HN_B) prefixes = "B\0\0Ki\0Mi\0Gi\0Ti\0Pi\0Ei"; else prefixes = "\0\0\0Ki\0Mi\0Gi\0Ti\0Pi\0Ei"; } else { baselen = 1; - if (flags & HN_DIVISOR_1000) + if (flags & HN_DIVISOR_1000) { divisor = 1000; - else + divisordeccut = 950; + if (flags & HN_B) + prefixes = "B\0\0k\0\0M\0\0G\0\0T\0\0P\0\0E"; + else + prefixes = "\0\0\0k\0\0M\0\0G\0\0T\0\0P\0\0E"; + } else { divisor = 1024; - - if (flags & HN_B) - prefixes = "B\0\0k\0\0M\0\0G\0\0T\0\0P\0\0E"; - else - prefixes = "\0\0\0k\0\0M\0\0G\0\0T\0\0P\0\0E"; + divisordeccut = 973; /* ceil(.95 * 1024) */ + if (flags & HN_B) + prefixes = "B\0\0K\0\0M\0\0G\0\0T\0\0P\0\0E"; + else + prefixes = "\0\0\0K\0\0M\0\0G\0\0T\0\0P\0\0E"; + } } #define SCALE2PREFIX(scale) (&prefixes[(scale) * 3]) - if (scale < 0 || (scale >= maxscale && - (scale & (HN_AUTOSCALE | HN_GETSCALE)) == 0)) - return (-1); - - if (buf == NULL || suffix == NULL) - return (-1); - - if (len > 0) - buf[0] = '\0'; if (quotient < 0) { sign = -1; quotient = -quotient; @@ -132,8 +142,8 @@ humanize_number(char *buf, size_t len, int64_t quotient, * divide once more. */ for (i = 0; - (quotient >= max || (quotient == max - 1 && remainder >= 950)) && - i < maxscale; i++) { + (quotient >= max || (quotient == max - 1 && + remainder >= divisordeccut)) && i < maxscale; i++) { remainder = quotient % divisor; quotient /= divisor; } @@ -148,20 +158,22 @@ humanize_number(char *buf, size_t len, int64_t quotient, } /* If a value <= 9.9 after rounding and ... */ - if (quotient <= 9 && remainder < 950 && i > 0 && flags & HN_DECIMAL) { - /* baselen + \0 + .N */ - if (len < baselen + 1 + 2) - return (-1); - s1 = (int)quotient + ((remainder + 50) / 1000); - s2 = ((remainder + 50) / 100) % 10; + /* + * XXX - should we make sure there is enough space for the decimal + * place and if not, don't do HN_DECIMAL? + */ + if (((quotient == 9 && remainder < divisordeccut) || quotient < 9) && + i > 0 && flags & HN_DECIMAL) { + s1 = (int)quotient + ((remainder * 10 + divisor / 2) / + divisor / 10); + s2 = ((remainder * 10 + divisor / 2) / divisor) % 10; r = snprintf(buf, len, "%d%s%d%s%s%s", sign * s1, localeconv()->decimal_point, s2, sep, SCALE2PREFIX(i), suffix); } else r = snprintf(buf, len, "%" PRId64 "%s%s%s", - sign * (quotient + (remainder + 50) / 1000), + sign * (quotient + (remainder + divisor / 2) / divisor), sep, SCALE2PREFIX(i), suffix); return (r); } - diff --git a/lib/libvmmapi/vmmapi.c b/lib/libvmmapi/vmmapi.c index 95be94a..810b39e 100644 --- a/lib/libvmmapi/vmmapi.c +++ b/lib/libvmmapi/vmmapi.c @@ -43,11 +43,14 @@ __FBSDID("$FreeBSD$"); #include <fcntl.h> #include <unistd.h> +#include <libutil.h> + #include <machine/vmm.h> #include <machine/vmm_dev.h> #include "vmmapi.h" +#define MB (1024 * 1024UL) #define GB (1024 * 1024 * 1024UL) struct vmctx { @@ -124,7 +127,32 @@ vm_destroy(struct vmctx *vm) } int -vm_get_memory_seg(struct vmctx *ctx, vm_paddr_t gpa, size_t *ret_len) +vm_parse_memsize(const char *optarg, size_t *ret_memsize) +{ + char *endptr; + size_t optval; + int error; + + optval = strtoul(optarg, &endptr, 0); + if (*optarg != '\0' && *endptr == '\0') { + /* + * For the sake of backward compatibility if the memory size + * specified on the command line is less than a megabyte then + * it is interpreted as being in units of MB. + */ + if (optval < MB) + optval *= MB; + *ret_memsize = optval; + error = 0; + } else + error = expand_number(optarg, ret_memsize); + + return (error); +} + +int +vm_get_memory_seg(struct vmctx *ctx, vm_paddr_t gpa, size_t *ret_len, + int *wired) { int error; struct vm_memory_segment seg; @@ -133,6 +161,8 @@ vm_get_memory_seg(struct vmctx *ctx, vm_paddr_t gpa, size_t *ret_len) seg.gpa = gpa; error = ioctl(ctx->fd, VM_GET_MEMORY_SEG, &seg); *ret_len = seg.len; + if (wired != NULL) + *wired = seg.wired; return (error); } @@ -741,3 +771,23 @@ vcpu_reset(struct vmctx *vmctx, int vcpu) done: return (error); } + +int +vm_get_gpa_pmap(struct vmctx *ctx, uint64_t gpa, uint64_t *pte, int *num) +{ + int error, i; + struct vm_gpa_pte gpapte; + + bzero(&gpapte, sizeof(gpapte)); + gpapte.gpa = gpa; + + error = ioctl(ctx->fd, VM_GET_GPA_PMAP, &gpapte); + + if (error == 0) { + *num = gpapte.ptenum; + for (i = 0; i < gpapte.ptenum; i++) + pte[i] = gpapte.pte[i]; + } + + return (error); +} diff --git a/lib/libvmmapi/vmmapi.h b/lib/libvmmapi/vmmapi.h index 441e75f..0720e2e 100644 --- a/lib/libvmmapi/vmmapi.h +++ b/lib/libvmmapi/vmmapi.h @@ -45,9 +45,12 @@ enum vm_mmap_style { int vm_create(const char *name); struct vmctx *vm_open(const char *name); void vm_destroy(struct vmctx *ctx); -int vm_get_memory_seg(struct vmctx *ctx, vm_paddr_t gpa, size_t *ret_len); +int vm_parse_memsize(const char *optarg, size_t *memsize); +int vm_get_memory_seg(struct vmctx *ctx, vm_paddr_t gpa, size_t *ret_len, + int *wired); int vm_setup_memory(struct vmctx *ctx, size_t len, enum vm_mmap_style s); void *vm_map_gpa(struct vmctx *ctx, vm_paddr_t gaddr, size_t len); +int vm_get_gpa_pmap(struct vmctx *, uint64_t gpa, uint64_t *pte, int *num); uint32_t vm_get_lowmem_limit(struct vmctx *ctx); void vm_set_lowmem_limit(struct vmctx *ctx, uint32_t limit); int vm_set_desc(struct vmctx *ctx, int vcpu, int reg, diff --git a/lib/msun/Symbol.map b/lib/msun/Symbol.map index 5b75f08..037659d 100644 --- a/lib/msun/Symbol.map +++ b/lib/msun/Symbol.map @@ -270,7 +270,7 @@ FBSD_1.3 { log1pl; log2l; logl; - # Implemented as weak aliases for imprecise versions + /* Implemented as weak aliases for imprecise versions */ coshl; erfcl; erfl; |