summaryrefslogtreecommitdiff
path: root/usr.bin/dig/lib
AgeCommit message (Collapse)Author
2020-09-15We have sockaddr_storage these days, get rid of isc_sockaddr_t.Florian Obser
OK beck, "beautiful" deraadt
2020-09-15The various sockaddr structures have length fields these days.Florian Obser
OK beck
2020-09-15we no longer need isc_netaddr_tFlorian Obser
OK beck, deraadt (who also OK'ed the previous two diffs)
2020-09-15remove 3 unused protos; ok florianTheo de Raadt
2020-09-15rewrite generating of IPv6 reverse names, lets us get rid of byaddr.Florian Obser
OK beck
2020-09-15move islinklocal, ismulticast, issitelocal from netaddr to sockaddrFlorian Obser
OK beck
2020-09-14Mechanically replace isc_boolean_t with int.Florian Obser
OK deraadt
2020-09-14Bunch of dead stores and otherwise unused stuff lets us get rid ofFlorian Obser
unix/net.{c.h}. We need to sprinkle in a few #includes that net.h dragged in. OK deraadt
2020-09-14Rewrite isc_time_microdiff() as uelapsed() and put it directlyFlorian Obser
into dig sources, lets us get rid of unix/time.{c,h} OK deraadt
2020-09-13Get rid of isc_parse_uint32() and replace it with strtonum.Florian Obser
While here use the standard strtonum error messages. input & OK beck, OK kn
2020-09-13remove unused lex statesFlorian Obser
2020-09-13remove unused LEX_OPTsFlorian Obser
2020-09-13No need to refcount the parser, we never hold more than one reference.Florian Obser
2020-09-12Remove unused callback mechanism / indirection.Florian Obser
OK deraadt, millert
2020-05-10fix socket_log() calls, EVENT expands to three comma separatedOtto Moerbeek
values; spotted by gcc; ok florian@
2020-05-08Make sure cmsgbufs are properly aligned by using the idiom from theOtto Moerbeek
CMSG_DATA man page. Avoids SIGBUS on landisk; ok kettenis@ jca@
2020-04-02Replace a bunch of hand rolled date / time math with gmtime(3).Florian Obser
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
2020-03-27unused constantsFlorian Obser
2020-02-26no need to go through RETERR when we return a constantFlorian Obser
2020-02-26In preparation of compiling lib/dns/rdata/ files individually we needFlorian Obser
global visibility of str_totext. Rename it to isc_str_tobuffer, put it into buffer.c and delete duplicate implementations.
2020-02-26In preparation of compiling lib/dns/rdata/ files individually we needFlorian Obser
global visibility of mem_tobuffer. Rename it to isc_mem_tobuffer, put it into buffer.c and delete duplicate implementations.
2020-02-26Always printing unknown types as TYPE%u and not sometimes as %uFlorian Obser
considerably simplifies dns_rdatatype_attributes() since we then only care about reserved types. tweaks jsg
2020-02-26Rewrite dns_rdatatype_fromtext to use a binary search over a staticFlorian Obser
array.
2020-02-25use timingsafe_bcmp and get rid of now unused safe.cFlorian Obser
2020-02-25use freezero() rather that explicit_bzero() when free() is immediatelyTheo de Raadt
after. pointed out by jsing
2020-02-25malloc(a * b) -> reallocarray(NULL, a, b)Theo de Raadt
ok jsing jca florian
2020-02-25unused fileFlorian Obser
2020-02-25declare isc_appctx_t once where it is usedJonathan Gray
Should fix typedef redefinition build error on gcc3 reported by aoyama@. ok florian@
2020-02-25Do not generate dns_rdatatype_attributes and dns_rdatatype_totext.Florian Obser
OK jung
2020-02-25reduce multiple newlinesJonathan Gray
2020-02-25remove some unused typedefsJonathan Gray
2020-02-25remove some unused definesJonathan Gray
2020-02-24Stop generating rdatastruct.h and put the dns_rdata_* structs forFlorian Obser
cname, ns, soa, and tsig directly into rdata.h
2020-02-24Delete a few more fromstruct_*, tostruct_* and freestruct_* functionsFlorian Obser
missed in previous. Also delete now unused utility functions.
2020-02-24We only need to create cname, ns, soa and tsig structs.Florian Obser
OK jsg
2020-02-24We only need to fill a wire format buffer from soa and tsig structs.Florian Obser
OK jsg
2020-02-24We only need to free cname, ns, soa and tsig structs.Florian Obser
OK jsg
2020-02-24We are never required to "render glue first" since we just print whatFlorian Obser
we get from the net.
2020-02-24dead store, pointed out by scan buildFlorian Obser
2020-02-24totext_filter_proc is always null, remove.Florian Obser
2020-02-24remove some unused codeJonathan Gray
ok florian@
2020-02-24remove some uneeded includesJonathan Gray
2020-02-24We only need to check the owner for nsec3 records, remove all theFlorian Obser
rest. OK jung
2020-02-24We are always preserving the order of records.Florian Obser
This lets us remove compare_* and casecompare_* functions from RR types. OK jung
2020-02-24Stop generating DNS class and type enums.Florian Obser
OK jsg, jung
2020-02-24Fix 'previously declared here' error on gcc3(luna88k).Kenji Aoyama
ok jsg@ florian@ jung@
2020-02-23remove some unused functionsJonathan Gray
ok jung@
2020-02-23rmeove more unused functions and codeJoerg Jung
ok florian
2020-02-23remove unused parts of types.hJonathan Gray
ok jung@ florian@
2020-02-23We never request to clone the buffer from the message parser.Florian Obser
OK millert