summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bind/lib/isc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* ISC BIND release 9.3.3jakob2007-01-1012-70/+212
|
* Use S_IS* macros insted of masking with S_IF* flags. The latter mayotto2006-09-251-2/+2
| | | | | have multiple bits set, which leads to surprising results. Spotted by from Paul Stoeber, more to come. ok jaredy@
* resolve conflictsjakob2006-04-059-94/+138
|
* ISC BIND release 9.3.2jakob2006-04-0514-62/+95
|
* setres[ug]id; ok jakob@djm2005-05-041-3/+3
|
* resolve conflictsjakob2005-03-226-27/+29
|
* ISC BIND release 9.3.1. ok deraadt@jakob2005-03-221-2/+2
|
* unbreak -t; ok jakob, henningmarkus2004-11-192-4/+4
|
* resolve conflictsjakob2004-09-2842-929/+1976
|
* ISC BIND version 9.3.0. ok deraadt@jakob2004-09-28136-1447/+3075
|
* extra check for no message case; ok markus, deraadt, hshoexer, henningdjm2004-08-131-1/+5
|
* include string.h for memset, canacar@ okavsm2004-04-191-1/+2
|
* dont try to close an invalid fd, canacar@ okavsm2004-04-031-2/+3
|
* Pass SIGINT to child. Noticed by mpech@, ok jakob@canacar2004-03-191-1/+2
|
* Privilege seperation for named. Allows named to handle address/interfacecanacar2004-03-127-4/+582
| | | | | | | | | changes without restart. If you use non-standard ports in named configuration make sure they are > 1024. Also /var/named/etc/rndc.key (if any) must be readable by group named. Initial work and testing by itojun@, jakob@, hints, help from henning@, avsm@, beck@. ok henning, beck, avsm, deraadt
* update to BIND v9.2.3. ok todd@jakob2003-11-1825-147/+953
|
* remove win32 filesjakob2003-11-1656-12306/+0
|
* string cleaning; "Put it in. If it breaks, tough" Theo.todd2003-06-275-25/+24
| | | | work by me, useful feedback from krw, jakob, tedu, and tholo
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-022-10/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* sprintf -> snprintf. ok krw@ deraadt@tedu2003-05-122-5/+6
|
* replace strcpy with strlcpy and some strdup.tedu2003-05-084-11/+13
| | | | | ok rohee@ tdeval@ dhartmei@ requested by deraadt@
* first sprintf pass from todd@ and ISC-Bugs #5614.jakob2003-04-153-16/+15
|
* provide strlcat() and strlcpy() for platform without them. althoughjakob2003-04-103-0/+80
| | | | | this is not needed in OpenBSD, we'll keep the code here to stay in sync. license change for strlcat/strlcpy ok millert@.
* update to BIND 9.2.2-release. ok millert@jakob2003-03-053-15/+31
|
* Fix a bug we found during an audit of BIND9. This bug does not affectcloder2003-02-261-1/+1
| | | | | | | | OpenBSD but it could affect platforms which define ISC_PLATFORM_NEEDVSNPRINTF. isc_print_snprintf contains a bug where it could read off the end of an argument string for a format specifier like "%.10s", where the .10 indicates precision. Reported to ISC and confirmed as ISC bug #5191. OK jakob@