summaryrefslogtreecommitdiffstats
path: root/usr.bin/dig/lib/isc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Rewrite parse_netprefix to no longer use isc_sockaddr_fromin{,6}.florian2020-12-212-40/+2
| | | | | Since this was the last user of those functions we can delete them. OK otto
* Use IN_MULTICAST correctly, so it checks the IP address rather than thejmatthew2020-11-281-2/+2
| | | | | | pointer to it. ok florian@
* Do not "fall through" to the last "else" when we parsed the character.florian2020-10-191-1/+5
| | | | | | | rev 1.9 of lex.c broke the parser by deleting an outer "if" block when only the inner was supposed to go. OK tb
* We have sockaddr_storage these days, get rid of isc_sockaddr_t.florian2020-09-155-118/+135
| | | | OK beck, "beautiful" deraadt
* The various sockaddr structures have length fields these days.florian2020-09-153-13/+8
| | | | OK beck
* we no longer need isc_netaddr_tflorian2020-09-155-214/+15
| | | | OK beck, deraadt (who also OK'ed the previous two diffs)
* move islinklocal, ismulticast, issitelocal from netaddr to sockaddrflorian2020-09-153-76/+14
| | | | OK beck
* Mechanically replace isc_boolean_t with int.florian2020-09-1432-370/+327
| | | | OK deraadt
* Bunch of dead stores and otherwise unused stuff lets us get rid offlorian2020-09-148-177/+15
| | | | | | unix/net.{c.h}. We need to sprinkle in a few #includes that net.h dragged in. OK deraadt
* Rewrite isc_time_microdiff() as uelapsed() and put it directlyflorian2020-09-144-94/+8
| | | | | into dig sources, lets us get rid of unix/time.{c,h} OK deraadt
* Get rid of isc_parse_uint32() and replace it with strtonum.florian2020-09-134-108/+3
| | | | | | While here use the standard strtonum error messages. input & OK beck, OK kn
* remove unused lex statesflorian2020-09-131-55/+1
|
* remove unused LEX_OPTsflorian2020-09-132-103/+5
|
* Remove unused callback mechanism / indirection.florian2020-09-121-37/+9
| | | | OK deraadt, millert
* fix socket_log() calls, EVENT expands to three comma separatedotto2020-05-101-4/+4
| | | | values; spotted by gcc; ok florian@
* Make sure cmsgbufs are properly aligned by using the idiom from theotto2020-05-081-5/+15
| | | | CMSG_DATA man page. Avoids SIGBUS on landisk; ok kettenis@ jca@
* In preparation of compiling lib/dns/rdata/ files individually we needflorian2020-02-265-85/+38
| | | | | | global visibility of str_totext. Rename it to isc_str_tobuffer, put it into buffer.c and delete duplicate implementations.
* In preparation of compiling lib/dns/rdata/ files individually we needflorian2020-02-265-53/+22
| | | | | | global visibility of mem_tobuffer. Rename it to isc_mem_tobuffer, put it into buffer.c and delete duplicate implementations.
* use timingsafe_bcmp and get rid of now unused safe.cflorian2020-02-254-81/+10
|
* malloc(a * b) -> reallocarray(NULL, a, b)deraadt2020-02-256-34/+14
| | | | ok jsing jca florian
* declare isc_appctx_t once where it is usedjsg2020-02-252-9/+2
| | | | | Should fix typedef redefinition build error on gcc3 reported by aoyama@. ok florian@
* reduce multiple newlinesjsg2020-02-2533-102/+31
|
* remove some unused typedefsjsg2020-02-251-7/+1
|
* remove some unused codejsg2020-02-243-71/+3
| | | | ok florian@
* remove some uneeded includesjsg2020-02-249-28/+22
|
* Fix 'previously declared here' error on gcc3(luna88k).aoyama2020-02-243-10/+1
| | | | ok jsg@ florian@ jung@
* remove some unused functionsjsg2020-02-234-107/+4
| | | | ok jung@
* remove unused parts of types.hjsg2020-02-231-2/+1
| | | | ok jung@ florian@
* remove unused structsjsg2020-02-232-36/+2
|
* remove various unused macrosjung2020-02-222-11/+2
| | | | ok florian
* remove some unused args and unused assignments, as resultjung2020-02-221-9/+5
| | | | | | | | | msgblock_free() becomes just free() also add UNUSED() for some dns_message *msg args for later revisit and cleanup ok millert florian
* remove assigned but unused valuesjung2020-02-222-9/+1
| | | | ok millert florian
* remove unused codejung2020-02-2212-648/+10
| | | | ok millert florian
* Read CLOCK_MONOTONIC when we need timestamps to compare and useflorian2020-02-213-13/+13
| | | | | time(3) for the wall clock. prodding & OK jung
* simplify signal setup and remove block/unblock/is_running/reloadjung2020-02-193-178/+6
| | | | | | with input from florian ok millert florian
* remove unreachable codejung2020-02-191-4/+0
| | | | ok millert florian
* Get rid of ISC_MAGIC and ISC_MAGIC_VALID macros.florian2020-02-1822-1481/+277
| | | | | | | While pulling on that it turns out we can / need git rid of a isc_task -> isc__task, isc_taskmgr -> isc__taskmgr, isc_timer -> isc__timer and isc_socket -> isc__socket indirection. OK millert
* Remove unused task, taskmgr, app, socket and socketmgr methods.florian2020-02-186-188/+3
| | | | OK millert
* isc_stdio_open() wrapper function is only called in lex'erjung2020-02-174-85/+9
| | | | | | so call fopen() directly and drop it ok florian
* remove unused codejung2020-02-1720-1128/+22
| | | | ok florian
* Get rid of isc_stdtime_t and use time_t directly.florian2020-02-165-113/+10
| | | | OK millert
* cleanupflorian2020-02-162-24/+4
| | | | OK millert
* clock_gettime cannot fail if called correctly; unravel TIME_NOWflorian2020-02-166-45/+13
| | | | | | | indirections. (I'm not convinced that we always want to read CLOCK_REALTIME, in fact we probably want to almost always read CLOCK_MONOTONIC.) OK millert
* Move isc_time_formathttptimestamp to the only place it is used.florian2020-02-162-40/+2
| | | | OK millert
* unravel isc_time_formattimestampflorian2020-02-163-46/+9
| | | | OK millert
* unravel isc_time_add and isc_time_subtractflorian2020-02-165-88/+17
| | | | OK millert
* unravel isc_time_compareflorian2020-02-164-58/+16
| | | | OK millert
* unravel isc_time_isepochflorian2020-02-163-26/+4
| | | | OK millert
* remove timespec settersflorian2020-02-163-53/+5
| | | | OK millert
* Reduce interval indirection by setting struct members directly andflorian2020-02-164-60/+11
| | | | | using macros from sys/time.h OK millert