summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bind/lib/isc (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Forgot to remove the file with the weird int type definitions in theflorian2020-01-091-54/+0
| | | | previous commit.
* Use normal int types like int32_t instead of isc_int32_t.florian2020-01-0954-491/+491
| | | | OK millert
* We use __dead for functions that do not return.florian2020-01-093-15/+11
| | | | OK millert
* Nuke atomics support. This gets rid of 4k lines of code including a bunchflorian2020-01-0941-2526/+10
| | | | | | | of assembly code. It's used for various statistics gathering in the bind daemon which we won't need in dig etc. OK millert
* Replace entropy.c, random.c and an outdated arc4random copy withflorian2020-01-0914-2468/+31
| | | | | | calls to libc's arc4random. Minus about 3k lines. prodding deraadt@
* First round of OPENSSL unifdef:florian2020-01-092-17/+1
| | | | | | | | | #define OPENSSL #undef OPENSSL_LEAKS #undef USE_ENGINE #undef DNS_CRYPTO_LEAKS prodding deraadt@
* Assorted unifdefs:florian2020-01-0925-206/+58
| | | | | | | | | | | | | | | | | | | | #define ISC_PLATFORM_NEEDSYSSELECTH 1 #define ISC_PLATFORM_HAVESTATNSEC 1 #define ISC_PLATFORM_RLIMITTYPE rlim_t #define ISC_PLATFORM_HAVELONGLONG 1 #undef ISC_PLATFORM_BRACEPTHREADONCEINIT #undef ISC_PLATFORM_USEDECLSPEC #define ISC_PLATFORM_HAVESYSUNH 1 #define ISC_PLATFORM_HAVESTRINGSH 1 #define ISC_PLATFORM_WANTAES 1 #define ISC_PLATFORM_USESIT 1 #define LIBISC_EXTERNAL_DATA #define LIBDNS_EXTERNAL_DATA #define LIBISCCFG_EXTERNAL_DATA #define LIBBIND9_EXTERNAL_DATA #define LIBTESTS_EXTERNAL_DATA prodding deraadt@
* unifdef gss-api:florian2020-01-091-18/+0
| | | | | | | | | | #undef GSSAPI #undef HAVE_GSSAPI_GSSAPI_H #undef HAVE_GSSAPI_GSSAPI_KRB5_H #undef HAVE_GSSAPI_H #undef HAVE_GSSAPI_KRB5_H prodding deraadt
* unifdef pkcs11:florian2020-01-0932-8504/+18
| | | | | | | | | | | | | | | | | #undef USE_PKCS11 #undef PKCS11_TOOLS #undef PKCS11CRYPTO #undef HAVE_PKCS11_GOST #undef HAVE_PKCS11_ECDSA #undef HAVE_PKCS11_ED25519 #undef HAVE_PKCS11_ED448 #define PK11_DH_DISABLE #define PK11_DSA_DISABLE #define PK11_FLAVOR #define PK11_MD5_DISABLE #undef PK11_SOFTHSMV2_FLAVOR prodding deraadt@
* unifdef printf and string functions:florian2020-01-0936-1233/+66
| | | | | | | | | | | | | | #undef ISC_PLATFORM_NEEDVSNPRINTF #undef ISC_PLATFORM_NEEDSPRINTF #undef ISC_PLATFORM_NEEDPRINTF #undef ISC_PLATFORM_NEEDFPRINTF #define ISC_PLATFORM_QUADFORMAT "ll" #undef ISC_PLATFORM_NEEDSTRSEP #undef ISC_PLATFORM_NEEDSTRLCPY #undef ISC_PLATFORM_NEEDSTRLCAT #undef ISC_PLATFORM_NEEDSTRTOUL #undef ISC_PLATFORM_NEEDMEMMOVE #undef ISC_PLATFORM_NEEDSTRCASESTR
* unifdef network defines:florian2020-01-0914-928/+10
| | | | | | | | | | | | | | | | | | | | | | | | | #define ISC_PLATFORM_HAVESALEN 1 #define ISC_PLATFORM_HAVEIPV6 1 #undef ISC_PLATFORM_NEEDIN6ADDRANY #undef ISC_PLATFORM_NEEDIN6ADDRLOOPBACK #define ISC_PLATFORM_HAVEIN6PKTINFO 1 #undef ISC_PLATFORM_HAVEINADDR6 #define ISC_PLATFORM_HAVESCOPEID 1 #undef ISC_PLATFORM_NEEDNTOP #undef ISC_PLATFORM_NEEDPTON #undef ISC_PLATFORM_NEEDPORTT #undef ISC_PLATFORM_HAVELIFCONF #undef ISC_PLATFORM_HAVEIF_LADDRCONF #undef ISC_PLATFORM_HAVEIF_LADDRREQ #define ISC_NET_BSD44MSGHDR 1 #define ISC_PLATFORM_HAVEIFNAMETOINDEX 1 #undef ISC_PLATFORM_FIXIN6ISADDR #define ISC_PLATFORM_HAVESOCKADDRSTORAGE 1 #define ISC_PLATFORM_HAVEKQUEUE 1 #undef ISC_PLATFORM_HAVEEPOLL #undef ISC_PLATFORM_HAVEDEVPOLL prodding deraadt@
* Remove backtrace support. Minus 800 lines.florian2020-01-078-527/+13
| | | | OK millert
* We are not windows. Minus 500 lines.florian2020-01-0711-205/+7
| | | | OK millert
* Remove thread support. Minus 4k lines.florian2020-01-0726-2444/+18
| | | | OK millert
* we are not using libiscccflorian2020-01-062-8/+1
| | | | OK sthen
* Do not need the getudpportrange functions. We don't need to perform anyderaadt2019-12-191-119/+1
| | | | | | crazy random port allocation for dns 'security' in USERLAND because the KERNEL has automatically done port-randomization since 1996 (wow the year of BSE in Britain)
* unifdef _AIXsthen2019-12-182-92/+2
|
* disable all the dscp probing code. it sees all the dscp optionderaadt2019-12-171-351/+4
| | | | | | | | defines, but is trying to determine if the kernel has it enabled/disabled, mostly by performing tests against localhost. instead, just declare dscp works. since dscp probing happens late, it runs into problems with pledge. we prefer pledge over this lovecraftian horror.
* Add back some SOCK_DNS to socket() calls, and add a few more whilederaadt2019-12-172-10/+10
| | | | here (since this codebase will only support dig & nslookup)
* update to 9.10.8-P1, last isc-licensed releasesthen2019-12-17260-1163/+1860
|
* scrap some unused files, part of a bigger diff to update to 9.10.8-P1sthen2019-12-1624-6770/+0
| | | | | (last ISC licensed release) but that has an issue with dig -6 so I'm breaking it out for now
* knock out some unused variable warningsderaadt2019-12-161-3/+3
|
* disable IP_RECVTOS below try_proto() alsoderaadt2019-12-161-2/+2
|
* Update to bind-9.10.5-P3, which appears to have been the last ISC version.deraadt2019-12-1676-0/+19597
| | | | | | | | | We only use this tree to build dig and nslookup. Our previous version predated edns0 support in those tools, and we want that. This is the worst code I've looked at in years, with layers and layers of spaghetti abstraction clearly unfit for reuse, but then reused anyways, and the old ones remain behind. So this is a 8MB diff. florian, sthen, and otto tried this merge before but failed.
* Update to bind-9.10.5-P3, which appears to have been the last ISC version.deraadt2019-12-16215-4429/+15073
| | | | | | | | | We only use this tree to build dig and nslookup. Our previous version predated edns0 support in those tools, and we want that. This is the worst code I've looked at in years, with layers and layers of spaghetti abstraction clearly unfit for reuse, but then reused anyways, and the old ones remain behind. So this is a 8MB diff. florian, sthen, and otto tried this merge before but failed.
* Change last non-/gnu/ fcntl(x, F_GETFL, 0) strays to fcntl(x, F_GETFL).krw2016-04-162-2/+2
| | | | | | No functional change. ok millert@
* pledge bind(1), dig(1), and nslookup(1). This modifies the underlyingderaadt2015-10-252-6/+6
| | | | | | | ISC library to use socket(2) with the SOCK_DNS flag. As a result, the port commands are disabled (such practice is rare in the wild these days, and pretty incompatible with the DNS vs regular socket concept in pledge..) ok bluhm phessler reyk, etc
* port NSEC3 and TLSA parsing code into dig(1) from ISC BIND 9.10.1-P1pelikan2015-02-076-5/+616
| | | | ok henning
* There is no need to call arc4random_addrandom() and feed it somederaadt2013-09-021-2/+0
| | | | stupid seed that bind has decided on..
* fix some memset sizeofs, found by jsg. ok deraadt krwtedu2011-07-051-7/+7
|
* correct memsets of key contexts which were shorter than they needed to bederaadt2011-07-051-11/+5
| | | | | | due to sizeof pointer instead of sizeof of type with tedu; some quibbles spotted by miod, ok tedu miod jsg jakob -- please push this upstream
* seperation -> separation; from Amarendra Godbolejmc2009-07-271-2/+2
|
* Update to BIND 9.4.2-P2 and adapt our dynamic select changes. OK deraadt@millert2008-08-049-160/+426
|
* This log message is an excruiciating pain in the ass when it repeats 4000 times a second on a machine you need debug log on, and is actually used as a cacheing nameserver. remove just this one line of debug log to save people's sanitybeck2008-08-011-2/+1
| | | | ok djm@
* Dynamically allocate fd_sets so we are not limited to FD_SETSIZEmillert2008-07-163-53/+141
| | | | connections. With help from djm@. OK djm@
* remove an unused variable that is a leftover from the old alg.reyk2008-07-091-2/+1
| | | | ok deraadt@
* simplify math for arc4random_uniform() suggested bydjm2008-06-091-2/+2
| | | | | | Jinmei_Tatuya AT isc.org via jakob@ empirically verified for entire domain of upper_bound
* fix math screwup that reintroduced a bias for upper_bounds in rangedjm2008-06-041-1/+1
| | | | | | | (2^30,2^31). Nothing in the tree yet requests random numbers bounded by this range. report jakob!deraadt; ok deraadt@
* msg_controllen has to be CMSG_SPACE so that the kernel can account forderaadt2008-03-242-30/+18
| | | | | | | each cmsg_len (ie. msg_controllen = sum of CMSG_ALIGN(cmsg_len). This works now that kernel fd passing has been fixed to accept a bit of sloppiness because of this ABI repair. lots of discussion with kettenis
* CMSG_LEN and CMSG_SPACE are not neccessarily the same size. So if youderaadt2008-03-191-15/+27
| | | | | | are going to allocate/free a block of memory for the message contents, you have to calculate and track the sizes seperately. This change is just like all the other CMSG changes...
* Repair the simple cases for msg_controllen where it should just bederaadt2008-03-151-3/+3
| | | | | CMSG_SIZE(sizeof(int)), not sizeof(buffer) which may be larger because of alignment; ok kettenis hshoexer
* Because the shuffle code initialisation is a specific case of shufflingdjm2008-03-151-8/+4
| | | | | | | | | a set of incrementing integers (and not an arbitrary set of values) it is possible to populate the array as we shuffle it in a single forward pass. Clever optimisation from didickman AT gmail.com; ok deraadt@ mcbride@ (same change as netinet/ip_id.c)
* Correct CMSG_SPACE and CMSG_LEN usage everywhere in the tree. Due toderaadt2008-03-131-7/+13
| | | | an extensive discussion with otto, kettenis, millert, and hshoexer
* introduce a isc_random_uniform() function to return a uniformly distributeddjm2008-03-023-10/+55
| | | | | | | number 0 < x <= upper_bound and use it to correct the last tiny bias in the shuffle initialisation feedback & ok deraadt@
* replacement algorithm. initialize a 64K-short buffer using Durstenfeldderaadt2008-02-295-273/+136
| | | | | | | | | | | | shuffle. Upon allocation, swap-permute the new value to a random slot in the 0..32K-1 th entry of the buffer as we move forward, ensuring randomness but also satisfying the non-repeating property we need. Inspired by Dillon's implementation for ip id. We believe this is easier to read though, initializes with less bias and wins speed tests. Thanks a lot to mcbride and djm for doing a bunch of statistical and speed analysis, and comments from nordin ok jakob djm mcbride
* more strcpy fixesjakob2007-12-094-6/+6
|
* resolve conflictsjakob2007-12-0939-1143/+2647
|
* ISC BIND release 9.4.2jakob2007-12-09171-1909/+6101
|
* remove some bogus *p tests from charles longeautedu2007-03-201-1/+1
| | | | ok deraadt millert
* resolve conflicts and regen configure scriptjakob2007-01-1012-50/+93
|