Current Path: > > usr > include > bind9 > isc >
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
aes.h | File | 1080 bytes | February 20 2025 09:05:24. | |
app.h | File | 10478 bytes | February 20 2025 09:05:24. | |
assertions.h | File | 2907 bytes | February 20 2025 09:05:24. | |
atomic.h | File | 4168 bytes | February 20 2025 09:05:24. | |
backtrace.h | File | 3891 bytes | February 20 2025 09:05:24. | |
base32.h | File | 4453 bytes | February 20 2025 09:05:24. | |
base64.h | File | 2866 bytes | February 20 2025 09:05:24. | |
bind9.h | File | 830 bytes | February 20 2025 09:05:24. | |
boolean.h | File | 594 bytes | February 20 2025 09:05:24. | |
buffer.h | File | 26268 bytes | February 20 2025 09:05:24. | |
bufferlist.h | File | 1452 bytes | February 20 2025 09:05:24. | |
cmocka.h | File | 1383 bytes | February 20 2025 09:05:24. | |
commandline.h | File | 1713 bytes | February 20 2025 09:05:24. | |
condition.h | File | 1478 bytes | February 20 2025 09:05:24. | |
counter.h | File | 1926 bytes | February 20 2025 09:05:24. | |
crc64.h | File | 998 bytes | February 20 2025 09:05:24. | |
deprecated.h | File | 623 bytes | February 20 2025 09:05:24. | |
dir.h | File | 1598 bytes | February 20 2025 09:05:24. | |
endian.h | File | 4778 bytes | February 20 2025 09:05:24. | |
entropy.h | File | 10373 bytes | February 20 2025 09:05:24. | |
errno.h | File | 659 bytes | February 20 2025 09:05:24. | |
errno2result.h | File | 902 bytes | February 20 2025 09:05:37. | |
error.h | File | 1430 bytes | February 20 2025 09:05:24. | |
event.h | File | 3053 bytes | February 20 2025 09:05:24. | |
eventclass.h | File | 1381 bytes | February 20 2025 09:05:24. | |
file.h | File | 11667 bytes | February 20 2025 09:05:24. | |
formatcheck.h | File | 893 bytes | February 20 2025 09:05:24. | |
fsaccess.h | File | 7442 bytes | February 20 2025 09:05:24. | |
hash.h | File | 7662 bytes | February 20 2025 09:05:24. | |
heap.h | File | 5264 bytes | February 20 2025 09:05:24. | |
hex.h | File | 2806 bytes | February 20 2025 09:05:24. | |
hmacmd5.h | File | 1787 bytes | February 20 2025 09:05:24. | |
hmacsha.h | File | 4511 bytes | February 20 2025 09:05:24. | |
ht.h | File | 4396 bytes | February 20 2025 09:05:24. | |
httpd.h | File | 2318 bytes | February 20 2025 09:05:24. | |
int.h | File | 1088 bytes | February 20 2025 09:05:24. | |
interfaceiter.h | File | 3120 bytes | February 20 2025 09:05:24. | |
iterated_hash.h | File | 1046 bytes | February 20 2025 09:05:24. | |
json.h | File | 1459 bytes | February 20 2025 09:05:24. | |
keyboard.h | File | 989 bytes | February 20 2025 09:05:24. | |
lang.h | File | 637 bytes | February 20 2025 09:05:24. | |
lex.h | File | 9771 bytes | February 20 2025 09:05:24. | |
lfsr.h | File | 2958 bytes | February 20 2025 09:05:24. | |
lib.h | File | 1068 bytes | February 20 2025 09:05:24. | |
likely.h | File | 818 bytes | February 20 2025 09:05:24. | |
list.h | File | 5751 bytes | February 20 2025 09:05:24. | |
log.h | File | 28734 bytes | February 20 2025 09:05:24. | |
magic.h | File | 994 bytes | February 20 2025 09:05:24. | |
md5.h | File | 2380 bytes | February 20 2025 09:05:24. | |
mem.h | File | 21110 bytes | February 20 2025 09:05:24. | |
meminfo.h | File | 710 bytes | February 20 2025 09:05:24. | |
msgcat.h | File | 2726 bytes | February 20 2025 09:05:24. | |
msgs.h | File | 8422 bytes | February 20 2025 09:05:24. | |
mutex.h | File | 3524 bytes | February 20 2025 09:05:24. | |
mutexblock.h | File | 1375 bytes | February 20 2025 09:05:24. | |
net.h | File | 10534 bytes | February 20 2025 09:05:24. | |
netaddr.h | File | 4590 bytes | February 20 2025 09:05:24. | |
netdb.h | File | 863 bytes | February 20 2025 09:05:24. | |
netscope.h | File | 967 bytes | February 20 2025 09:05:24. | |
offset.h | File | 700 bytes | February 20 2025 09:05:24. | |
once.h | File | 983 bytes | February 20 2025 09:05:24. | |
ondestroy.h | File | 2799 bytes | February 20 2025 09:05:24. | |
os.h | File | 671 bytes | February 20 2025 09:05:24. | |
parseint.h | File | 1542 bytes | February 20 2025 09:05:24. | |
platform.h | File | 9717 bytes | February 20 2025 09:05:24. | |
pool.h | File | 3502 bytes | February 20 2025 09:05:24. | |
portset.h | File | 3295 bytes | February 20 2025 09:05:24. | |
print.h | File | 2475 bytes | February 20 2025 09:05:24. | |
queue.h | File | 5204 bytes | February 20 2025 09:05:24. | |
quota.h | File | 2440 bytes | February 20 2025 09:05:24. | |
radix.h | File | 6491 bytes | February 20 2025 09:05:24. | |
random.h | File | 3582 bytes | February 20 2025 09:05:24. | |
ratelimiter.h | File | 3497 bytes | February 20 2025 09:05:24. | |
refcount.h | File | 8193 bytes | February 20 2025 09:05:24. | |
regex.h | File | 767 bytes | February 20 2025 09:05:24. | |
region.h | File | 2034 bytes | February 20 2025 09:05:24. | |
resource.h | File | 2862 bytes | February 20 2025 09:05:24. | |
result.h | File | 4982 bytes | February 20 2025 09:05:24. | |
resultclass.h | File | 1599 bytes | February 20 2025 09:05:24. | |
rwlock.h | File | 3807 bytes | February 20 2025 09:05:24. | |
safe.h | File | 1352 bytes | February 20 2025 09:05:24. | |
serial.h | File | 1368 bytes | February 20 2025 09:05:24. | |
sha1.h | File | 1556 bytes | February 20 2025 09:05:24. | |
sha2.h | File | 5733 bytes | February 20 2025 09:05:24. | |
siphash.h | File | 734 bytes | February 20 2025 09:05:24. | |
sockaddr.h | File | 6039 bytes | February 20 2025 09:05:24. | |
socket.h | File | 36655 bytes | February 20 2025 09:05:24. | |
stat.h | File | 806 bytes | February 20 2025 09:05:24. | |
stats.h | File | 3709 bytes | February 20 2025 09:05:24. | |
stdatomic.h | File | 5250 bytes | February 20 2025 09:05:24. | |
stdio.h | File | 1787 bytes | February 20 2025 09:05:24. | |
stdlib.h | File | 704 bytes | February 20 2025 09:05:24. | |
stdtime.h | File | 1065 bytes | February 20 2025 09:05:24. | |
strerror.h | File | 777 bytes | February 20 2025 09:05:24. | |
string.h | File | 6019 bytes | February 20 2025 09:05:24. | |
symtab.h | File | 4326 bytes | February 20 2025 09:05:24. | |
syslog.h | File | 844 bytes | February 20 2025 09:05:24. | |
task.h | File | 21544 bytes | February 20 2025 09:05:24. | |
taskpool.h | File | 3709 bytes | February 20 2025 09:05:24. | |
thread.h | File | 1506 bytes | February 20 2025 09:05:24. | |
time.h | File | 8876 bytes | February 20 2025 09:05:24. | |
timer.h | File | 10795 bytes | February 20 2025 09:05:24. | |
tm.h | File | 895 bytes | February 20 2025 09:05:24. | |
types.h | File | 5780 bytes | February 20 2025 09:05:24. | |
utf8.h | File | 928 bytes | February 20 2025 09:05:24. | |
util.h | File | 10537 bytes | February 20 2025 09:05:24. | |
version.h | File | 689 bytes | February 20 2025 09:05:24. | |
xml.h | File | 1094 bytes | February 20 2025 09:05:24. |
/* * Copyright (C) Internet Systems Consortium, Inc. ("ISC") * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, you can obtain one at https://mozilla.org/MPL/2.0/. * * See the COPYRIGHT file distributed with this work for additional * information regarding copyright ownership. */ #ifndef ISC_NET_H #define ISC_NET_H 1 /***** ***** Module Info *****/ /*! \file * \brief * Basic Networking Types * * This module is responsible for defining the following basic networking * types: * *\li struct in_addr *\li struct in6_addr *\li struct in6_pktinfo *\li struct sockaddr *\li struct sockaddr_in *\li struct sockaddr_in6 *\li struct sockaddr_storage *\li in_port_t * * It ensures that the AF_ and PF_ macros are defined. * * It declares ntoh[sl]() and hton[sl](). * * It declares inet_aton(), inet_ntop(), and inet_pton(). * * It ensures that #INADDR_LOOPBACK, #INADDR_ANY, #IN6ADDR_ANY_INIT, * IN6ADDR_V4MAPPED_INIT, in6addr_any, and in6addr_loopback are available. * * It ensures that IN_MULTICAST() is available to check for multicast * addresses. * * MP: *\li No impact. * * Reliability: *\li No anticipated impact. * * Resources: *\li N/A. * * Security: *\li No anticipated impact. * * Standards: *\li BSD Socket API *\li RFC2553 */ /*** *** Imports. ***/ #include <isc/platform.h> #include <inttypes.h> #include <sys/types.h> #include <sys/socket.h> /* Contractual promise. */ #include <net/if.h> #include <netinet/in.h> /* Contractual promise. */ #include <arpa/inet.h> /* Contractual promise. */ #ifdef ISC_PLATFORM_NEEDNETINETIN6H #include <netinet/in6.h> /* Required on UnixWare. */ #endif #ifdef ISC_PLATFORM_NEEDNETINET6IN6H #include <netinet6/in6.h> /* Required on BSD/OS for in6_pktinfo. */ #endif #ifndef ISC_PLATFORM_HAVEIPV6 #include <isc/ipv6.h> /* Contractual promise. */ #endif #include <isc/lang.h> #include <isc/types.h> #ifdef ISC_PLATFORM_HAVEINADDR6 #define in6_addr in_addr6 /*%< Required for pre RFC2133 implementations. */ #endif #ifdef ISC_PLATFORM_HAVEIPV6 #ifndef IN6ADDR_ANY_INIT #ifdef s6_addr /*% * Required for some pre RFC2133 implementations. * IN6ADDR_ANY_INIT and IN6ADDR_LOOPBACK_INIT were added in * draft-ietf-ipngwg-bsd-api-04.txt or draft-ietf-ipngwg-bsd-api-05.txt. * If 's6_addr' is defined then assume that there is a union and three * levels otherwise assume two levels required. */ #define IN6ADDR_ANY_INIT { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } } } #else #define IN6ADDR_ANY_INIT { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } } #endif #endif #ifndef IN6ADDR_LOOPBACK_INIT #ifdef s6_addr /*% IPv6 address loopback init */ #define IN6ADDR_LOOPBACK_INIT { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 } } } #else #define IN6ADDR_LOOPBACK_INIT { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 } } #endif #endif #ifndef IN6ADDR_V4MAPPED_INIT #ifdef s6_addr /*% IPv6 v4mapped prefix init */ #define IN6ADDR_V4MAPPED_INIT { { { 0,0,0,0,0,0,0,0,0,0,0xff,0xff,0,0,0,0 } } } #else #define IN6ADDR_V4MAPPED_INIT { { 0,0,0,0,0,0,0,0,0,0,0xff,0xff,0,0,0,0 } } #endif #endif #ifndef IN6_IS_ADDR_V4MAPPED /*% Is IPv6 address V4 mapped? */ #define IN6_IS_ADDR_V4MAPPED(x) \ (memcmp((x)->s6_addr, in6addr_any.s6_addr, 10) == 0 && \ (x)->s6_addr[10] == 0xff && (x)->s6_addr[11] == 0xff) #endif #ifndef IN6_IS_ADDR_V4COMPAT /*% Is IPv6 address V4 compatible? */ #define IN6_IS_ADDR_V4COMPAT(x) \ (memcmp((x)->s6_addr, in6addr_any.s6_addr, 12) == 0 && \ ((x)->s6_addr[12] != 0 || (x)->s6_addr[13] != 0 || \ (x)->s6_addr[14] != 0 || \ ((x)->s6_addr[15] != 0 && (x)->s6_addr[15] != 1))) #endif #ifndef IN6_IS_ADDR_MULTICAST /*% Is IPv6 address multicast? */ #define IN6_IS_ADDR_MULTICAST(a) ((a)->s6_addr[0] == 0xff) #endif #ifndef IN6_IS_ADDR_LINKLOCAL /*% Is IPv6 address linklocal? */ #define IN6_IS_ADDR_LINKLOCAL(a) \ (((a)->s6_addr[0] == 0xfe) && (((a)->s6_addr[1] & 0xc0) == 0x80)) #endif #ifndef IN6_IS_ADDR_SITELOCAL /*% is IPv6 address sitelocal? */ #define IN6_IS_ADDR_SITELOCAL(a) \ (((a)->s6_addr[0] == 0xfe) && (((a)->s6_addr[1] & 0xc0) == 0xc0)) #endif #ifndef IN6_IS_ADDR_LOOPBACK /*% is IPv6 address loopback? */ #define IN6_IS_ADDR_LOOPBACK(x) \ (memcmp((x)->s6_addr, in6addr_loopback.s6_addr, 16) == 0) #endif #endif #ifndef AF_INET6 /*% IPv6 */ #define AF_INET6 99 #endif #ifndef PF_INET6 /*% IPv6 */ #define PF_INET6 AF_INET6 #endif #ifndef INADDR_ANY /*% inaddr any */ #define INADDR_ANY 0x00000000UL #endif #ifndef INADDR_LOOPBACK /*% inaddr loopback */ #define INADDR_LOOPBACK 0x7f000001UL #endif #ifndef ISC_PLATFORM_HAVEIN6PKTINFO /*% IPv6 packet info */ struct in6_pktinfo { struct in6_addr ipi6_addr; /*%< src/dst IPv6 address */ unsigned int ipi6_ifindex; /*%< send/recv interface index */ }; #endif #ifndef ISC_PLATFORM_HAVESOCKADDRSTORAGE #define _SS_MAXSIZE 128 #define _SS_ALIGNSIZE (sizeof (uint64_t)) #ifdef ISC_PLATFORM_HAVESALEN #define _SS_PAD1SIZE (_SS_ALIGNSIZE - (2 * sizeof(uint8_t))) #define _SS_PAD2SIZE (_SS_MAXSIZE - (_SS_ALIGNSIZE + _SS_PAD1SIZE \ + 2 * sizeof(uint8_t))) #else #define _SS_PAD1SIZE (_SS_ALIGNSIZE - sizeof(uint16_t)) #define _SS_PAD2SIZE (_SS_MAXSIZE - (_SS_ALIGNSIZE + _SS_PAD1SIZE \ + sizeof(uint16_t))) #endif struct sockaddr_storage { #ifdef ISC_PLATFORM_HAVESALEN uint8_t ss_len; uint8_t ss_family; #else uint16_t ss_family; #endif char __ss_pad1[_SS_PAD1SIZE]; uint64_t __ss_align; /* field to force desired structure */ char __ss_pad2[_SS_PAD2SIZE]; }; #endif #if defined(ISC_PLATFORM_HAVEIPV6) && defined(ISC_PLATFORM_NEEDIN6ADDRANY) extern const struct in6_addr isc_net_in6addrany; /*% * Cope with a missing in6addr_any and in6addr_loopback. */ #define in6addr_any isc_net_in6addrany #endif #if defined(ISC_PLATFORM_HAVEIPV6) && defined(ISC_PLATFORM_NEEDIN6ADDRLOOPBACK) extern const struct in6_addr isc_net_in6addrloop; #define in6addr_loopback isc_net_in6addrloop #endif #ifdef ISC_PLATFORM_FIXIN6ISADDR #undef IN6_IS_ADDR_GEOGRAPHIC /*! * \brief * Fix UnixWare 7.1.1's broken IN6_IS_ADDR_* definitions. */ #define IN6_IS_ADDR_GEOGRAPHIC(a) (((a)->S6_un.S6_l[0] & 0xE0) == 0x80) #undef IN6_IS_ADDR_IPX #define IN6_IS_ADDR_IPX(a) (((a)->S6_un.S6_l[0] & 0xFE) == 0x04) #undef IN6_IS_ADDR_LINKLOCAL #define IN6_IS_ADDR_LINKLOCAL(a) (((a)->S6_un.S6_l[0] & 0xC0FF) == 0x80FE) #undef IN6_IS_ADDR_MULTICAST #define IN6_IS_ADDR_MULTICAST(a) (((a)->S6_un.S6_l[0] & 0xFF) == 0xFF) #undef IN6_IS_ADDR_NSAP #define IN6_IS_ADDR_NSAP(a) (((a)->S6_un.S6_l[0] & 0xFE) == 0x02) #undef IN6_IS_ADDR_PROVIDER #define IN6_IS_ADDR_PROVIDER(a) (((a)->S6_un.S6_l[0] & 0xE0) == 0x40) #undef IN6_IS_ADDR_SITELOCAL #define IN6_IS_ADDR_SITELOCAL(a) (((a)->S6_un.S6_l[0] & 0xC0FF) == 0xC0FE) #endif /* ISC_PLATFORM_FIXIN6ISADDR */ #ifdef ISC_PLATFORM_NEEDPORTT /*% * Ensure type in_port_t is defined. */ typedef uint16_t in_port_t; #endif #ifndef MSG_TRUNC /*% * If this system does not have MSG_TRUNC (as returned from recvmsg()) * ISC_PLATFORM_RECVOVERFLOW will be defined. This will enable the MSG_TRUNC * faking code in socket.c. */ #define ISC_PLATFORM_RECVOVERFLOW #endif /*% IP address. */ #define ISC__IPADDR(x) ((uint32_t)htonl((uint32_t)(x))) /*% Is IP address multicast? */ #define ISC_IPADDR_ISMULTICAST(i) \ (((uint32_t)(i) & ISC__IPADDR(0xf0000000)) \ == ISC__IPADDR(0xe0000000)) #define ISC_IPADDR_ISEXPERIMENTAL(i) \ (((uint32_t)(i) & ISC__IPADDR(0xf0000000)) \ == ISC__IPADDR(0xf0000000)) /*** *** Functions. ***/ ISC_LANG_BEGINDECLS isc_result_t isc_net_probeipv4(void); /*%< * Check if the system's kernel supports IPv4. * * Returns: * *\li #ISC_R_SUCCESS IPv4 is supported. *\li #ISC_R_NOTFOUND IPv4 is not supported. *\li #ISC_R_DISABLED IPv4 is disabled. *\li #ISC_R_UNEXPECTED */ isc_result_t isc_net_probeipv6(void); /*%< * Check if the system's kernel supports IPv6. * * Returns: * *\li #ISC_R_SUCCESS IPv6 is supported. *\li #ISC_R_NOTFOUND IPv6 is not supported. *\li #ISC_R_DISABLED IPv6 is disabled. *\li #ISC_R_UNEXPECTED */ isc_result_t isc_net_probe_ipv6only(void); /*%< * Check if the system's kernel supports the IPV6_V6ONLY socket option. * * Returns: * *\li #ISC_R_SUCCESS the option is supported for both TCP and UDP. *\li #ISC_R_NOTFOUND IPv6 itself or the option is not supported. *\li #ISC_R_UNEXPECTED */ isc_result_t isc_net_probe_ipv6pktinfo(void); /* * Check if the system's kernel supports the IPV6_(RECV)PKTINFO socket option * for UDP sockets. * * Returns: * * \li #ISC_R_SUCCESS the option is supported. * \li #ISC_R_NOTFOUND IPv6 itself or the option is not supported. * \li #ISC_R_UNEXPECTED */ void isc_net_disableipv4(void); void isc_net_disableipv6(void); void isc_net_enableipv4(void); void isc_net_enableipv6(void); isc_result_t isc_net_probeunix(void); /* * Returns whether UNIX domain sockets are supported. */ #define ISC_NET_DSCPRECVV4 0x01 /* Can receive sent DSCP value IPv4 */ #define ISC_NET_DSCPRECVV6 0x02 /* Can receive sent DSCP value IPv6 */ #define ISC_NET_DSCPSETV4 0x04 /* Can set DSCP on socket IPv4 */ #define ISC_NET_DSCPSETV6 0x08 /* Can set DSCP on socket IPv6 */ #define ISC_NET_DSCPPKTV4 0x10 /* Can set DSCP on per packet IPv4 */ #define ISC_NET_DSCPPKTV6 0x20 /* Can set DSCP on per packet IPv6 */ #define ISC_NET_DSCPALL 0x3f /* All valid flags */ unsigned int isc_net_probedscp(void); /*%< * Probe the level of DSCP support. */ isc_result_t isc_net_getudpportrange(int af, in_port_t *low, in_port_t *high); /*%< * Returns system's default range of ephemeral UDP ports, if defined. * If the range is not available or unknown, ISC_NET_PORTRANGELOW and * ISC_NET_PORTRANGEHIGH will be returned. * * Requires: * *\li 'low' and 'high' must be non NULL. * * Returns: * *\li *low and *high will be the ports specifying the low and high ends of * the range. */ #ifdef ISC_PLATFORM_NEEDNTOP const char * isc_net_ntop(int af, const void *src, char *dst, size_t size); #undef inet_ntop #define inet_ntop isc_net_ntop #endif #ifdef ISC_PLATFORM_NEEDPTON int isc_net_pton(int af, const char *src, void *dst); #undef inet_pton #define inet_pton isc_net_pton #endif int isc_net_aton(const char *cp, struct in_addr *addr); #undef inet_aton #define inet_aton isc_net_aton ISC_LANG_ENDDECLS #endif /* ISC_NET_H */
SILENT KILLER Tool