summaryrefslogtreecommitdiffstats
path: root/usr.bin/dig/lib (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Implement ZONEMD (RFC8976), based on DS (ds_43.c)florian2021-04-023-2/+124
| | | | OK sthen
* 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
* Fix copy-pasto when selecting the addresses read from resolv.conf byotto2020-12-201-1/+1
| | | | address family. ok florian@
* Use IN_MULTICAST correctly, so it checks the IP address rather than thejmatthew2020-11-281-2/+2
| | | | | | pointer to it. ok florian@
* Implement Extended DNS Error (RFC 8914).florian2020-11-012-1/+78
| | | | OK otto, sthen
* 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-156-216/+16
| | | | OK beck, deraadt (who also OK'ed the previous two diffs)
* remove 3 unused protos; ok florianderaadt2020-09-151-8/+1
|
* rewrite generating of IPv6 reverse names, lets us get rid of byaddr.florian2020-09-153-203/+2
| | | | OK beck
* move islinklocal, ismulticast, issitelocal from netaddr to sockaddrflorian2020-09-153-76/+14
| | | | OK beck
* Mechanically replace isc_boolean_t with int.florian2020-09-1497-774/+727
| | | | OK deraadt
* Bunch of dead stores and otherwise unused stuff lets us get rid offlorian2020-09-1421-210/+27
| | | | | | 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
|
* No need to refcount the parser, we never hold more than one reference.florian2020-09-132-37/+12
|
* 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@
* Replace a bunch of hand rolled date / time math with gmtime(3).florian2020-04-022-87/+24
| | | | | | | | | While here fix dns_time64_from32() to correctly deal with unsigned 32 bit cyclic time that I accidentally broke when I switched "now" from isc_std_time (unsiged 32 bit) to time_t (64 bit). input kettenis, millert, otto, cheloha OK cheloha
* unused constantsflorian2020-03-271-16/+1
|
* no need to go through RETERR when we return a constantflorian2020-02-265-22/+22
|
* In preparation of compiling lib/dns/rdata/ files individually we needflorian2020-02-2659-524/+426
| | | | | | 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-2663-228/+178
| | | | | | global visibility of mem_tobuffer. Rename it to isc_mem_tobuffer, put it into buffer.c and delete duplicate implementations.
* Always printing unknown types as TYPE%u and not sometimes as %uflorian2020-02-2679-458/+63
| | | | | | considerably simplifies dns_rdatatype_attributes() since we then only care about reserved types. tweaks jsg
* Rewrite dns_rdatatype_fromtext to use a binary search over a staticflorian2020-02-262-258/+125
| | | | array.
* use timingsafe_bcmp and get rid of now unused safe.cflorian2020-02-256-86/+13
|
* use freezero() rather that explicit_bzero() when free() is immediatelyderaadt2020-02-252-14/+8
| | | | | after. pointed out by jsing
* malloc(a * b) -> reallocarray(NULL, a, b)deraadt2020-02-259-44/+24
| | | | ok jsing jca florian
* unused fileflorian2020-02-251-59/+0
|
* 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@
* Do not generate dns_rdatatype_attributes and dns_rdatatype_totext.florian2020-02-252-36/+360
| | | | OK jung
* reduce multiple newlinesjsg2020-02-25120-604/+91
|
* remove some unused typedefsjsg2020-02-253-21/+2
|
* remove some unused definesjsg2020-02-251-15/+0
|
* Stop generating rdatastruct.h and put the dns_rdata_* structs forflorian2020-02-2485-2561/+47
| | | | cname, ns, soa, and tsig directly into rdata.h
* Delete a few more fromstruct_*, tostruct_* and freestruct_* functionsflorian2020-02-246-356/+4
| | | | missed in previous. Also delete now unused utility functions.
* We only need to create cname, ns, soa and tsig structs.florian2020-02-2478-2239/+134
| | | | OK jsg
* We only need to fill a wire format buffer from soa and tsig structs.florian2020-02-2480-1545/+128
| | | | OK jsg
* We only need to free cname, ns, soa and tsig structs.florian2020-02-2478-791/+117
| | | | OK jsg
* We are never required to "render glue first" since we just print whatflorian2020-02-242-39/+2
| | | | we get from the net.
* dead store, pointed out by scan buildflorian2020-02-241-11/+1
|
* totext_filter_proc is always null, remove.florian2020-02-242-21/+2
|
* remove some unused codejsg2020-02-248-399/+6
| | | | ok florian@
* remove some uneeded includesjsg2020-02-2416-58/+32
|
* We only need to check the owner for nsec3 records, remove all theflorian2020-02-2482-1033/+61
| | | | | rest. OK jung
* We are always preserving the order of records.florian2020-02-2483-2496/+86
| | | | | | This lets us remove compare_* and casecompare_* functions from RR types. OK jung