History log of /openbsd-current/usr.bin/dig/lib/dns/rdata.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.36 23-Apr-2024 jsg

correct indentation; no functional change
ok tb@


Revision tags: OPENBSD_7_2_BASE OPENBSD_7_3_BASE OPENBSD_7_4_BASE OPENBSD_7_5_BASE
# 1.35 03-Jul-2022 florian

Implement SVCB and HTTPS record types.

Testing caspar, otto
OK otto


# 1.34 25-Jun-2022 jsg

remove some unused code and uneeded includes
ok beck@ florian@


Revision tags: OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE
# 1.33 02-Apr-2021 florian

Implement ZONEMD (RFC8976), based on DS (ds_43.c)
OK sthen


Revision tags: OPENBSD_6_8_BASE
# 1.32 14-Sep-2020 florian

Mechanically replace isc_boolean_t with int.
OK deraadt


# 1.31 14-Sep-2020 florian

Bunch of dead stores and otherwise unused stuff lets us get rid of
unix/net.{c.h}. We need to sprinkle in a few #includes that net.h
dragged in.
OK deraadt


Revision tags: OPENBSD_6_7_BASE
# 1.30 26-Feb-2020 florian

no need to go through RETERR when we return a constant


# 1.29 26-Feb-2020 florian

In preparation of compiling lib/dns/rdata/ files individually we need
global visibility of str_totext.
Rename it to isc_str_tobuffer, put it into buffer.c and delete
duplicate implementations.


# 1.28 26-Feb-2020 florian

In preparation of compiling lib/dns/rdata/ files individually we need
global visibility of mem_tobuffer.
Rename it to isc_mem_tobuffer, put it into buffer.c and delete
duplicate implementations.


# 1.27 26-Feb-2020 florian

Always printing unknown types as TYPE%u and not sometimes as %u
considerably simplifies dns_rdatatype_attributes() since we then only
care about reserved types.
tweaks jsg


# 1.26 26-Feb-2020 florian

Rewrite dns_rdatatype_fromtext to use a binary search over a static
array.


# 1.25 25-Feb-2020 florian

Do not generate dns_rdatatype_attributes and dns_rdatatype_totext.
OK jung


# 1.24 25-Feb-2020 jsg

reduce multiple newlines


# 1.23 24-Feb-2020 florian

Stop generating rdatastruct.h and put the dns_rdata_* structs for
cname, ns, soa, and tsig directly into rdata.h


# 1.22 24-Feb-2020 florian

Delete a few more fromstruct_*, tostruct_* and freestruct_* functions
missed in previous. Also delete now unused utility functions.


# 1.21 24-Feb-2020 florian

We only need to create cname, ns, soa and tsig structs.
OK jsg


# 1.20 24-Feb-2020 florian

We only need to fill a wire format buffer from soa and tsig structs.
OK jsg


# 1.19 24-Feb-2020 florian

We only need to free cname, ns, soa and tsig structs.
OK jsg


# 1.18 24-Feb-2020 jsg

remove some unused code

ok florian@


# 1.17 24-Feb-2020 jsg

remove some uneeded includes


# 1.16 24-Feb-2020 florian

We only need to check the owner for nsec3 records, remove all the
rest.
OK jung


# 1.15 24-Feb-2020 florian

We are always preserving the order of records.
This lets us remove compare_* and casecompare_* functions from
RR types.
OK jung


# 1.14 24-Feb-2020 florian

Stop generating DNS class and type enums.
OK jsg, jung


# 1.13 23-Feb-2020 jung

rmeove more unused functions and code

ok florian


# 1.12 23-Feb-2020 jsg

remove unused dns_rdatacallbacks struct and typedef


# 1.11 22-Feb-2020 jung

remove various unused macros

ok florian


# 1.10 22-Feb-2020 jung

remove unused code

ok millert florian


# 1.9 20-Feb-2020 florian

We do not generate DNS records from text representations.
OK millert


# 1.8 18-Feb-2020 florian

Get rid of ISC_MAGIC and ISC_MAGIC_VALID macros.
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


# 1.7 13-Feb-2020 florian

expand ISC_FORMAT_PRINTF and get rid of formatcheck.h


# 1.6 13-Feb-2020 florian

Move DNS_NAME_INITABSOLUTE and DNS_NAME_INITNONABSOLUTE to a comon
header to not have multiple copies.


# 1.5 13-Feb-2020 jsg

remove more uneeded include statements and files


# 1.4 13-Feb-2020 jsg

remove unused macros

ok florian@


# 1.3 12-Feb-2020 jsg

remove some unreferenced functions

ok florian@


# 1.2 11-Feb-2020 jsg

remove uneeded #include lines

ok florian@


# 1.1 07-Feb-2020 florian

Move dig(1) and needed DNS libraries into it's own source directory in
usr.bin/dig.

From the beginning when we started to remove unneeded nameserver code,
it was our goal to extract dig functionality from the bind sources,
for everyone's benefit as this is easier to reason about.

In total we removed about 2/3 or over 300.000 lines of code.

We kept the lib/ subdirectory layout but moved the content of bin/ to
the top from the old bind source directory.

Previous sources and history can be found in the src/usr.sbin/bind
Attic.

With & OK deraadt
Proposed directory layout sounds good to sthen


# 1.35 03-Jul-2022 florian

Implement SVCB and HTTPS record types.

Testing caspar, otto
OK otto


# 1.34 25-Jun-2022 jsg

remove some unused code and uneeded includes
ok beck@ florian@


Revision tags: OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE
# 1.33 02-Apr-2021 florian

Implement ZONEMD (RFC8976), based on DS (ds_43.c)
OK sthen


Revision tags: OPENBSD_6_8_BASE
# 1.32 14-Sep-2020 florian

Mechanically replace isc_boolean_t with int.
OK deraadt


# 1.31 14-Sep-2020 florian

Bunch of dead stores and otherwise unused stuff lets us get rid of
unix/net.{c.h}. We need to sprinkle in a few #includes that net.h
dragged in.
OK deraadt


Revision tags: OPENBSD_6_7_BASE
# 1.30 26-Feb-2020 florian

no need to go through RETERR when we return a constant


# 1.29 26-Feb-2020 florian

In preparation of compiling lib/dns/rdata/ files individually we need
global visibility of str_totext.
Rename it to isc_str_tobuffer, put it into buffer.c and delete
duplicate implementations.


# 1.28 26-Feb-2020 florian

In preparation of compiling lib/dns/rdata/ files individually we need
global visibility of mem_tobuffer.
Rename it to isc_mem_tobuffer, put it into buffer.c and delete
duplicate implementations.


# 1.27 26-Feb-2020 florian

Always printing unknown types as TYPE%u and not sometimes as %u
considerably simplifies dns_rdatatype_attributes() since we then only
care about reserved types.
tweaks jsg


# 1.26 26-Feb-2020 florian

Rewrite dns_rdatatype_fromtext to use a binary search over a static
array.


# 1.25 25-Feb-2020 florian

Do not generate dns_rdatatype_attributes and dns_rdatatype_totext.
OK jung


# 1.24 25-Feb-2020 jsg

reduce multiple newlines


# 1.23 24-Feb-2020 florian

Stop generating rdatastruct.h and put the dns_rdata_* structs for
cname, ns, soa, and tsig directly into rdata.h


# 1.22 24-Feb-2020 florian

Delete a few more fromstruct_*, tostruct_* and freestruct_* functions
missed in previous. Also delete now unused utility functions.


# 1.21 24-Feb-2020 florian

We only need to create cname, ns, soa and tsig structs.
OK jsg


# 1.20 24-Feb-2020 florian

We only need to fill a wire format buffer from soa and tsig structs.
OK jsg


# 1.19 24-Feb-2020 florian

We only need to free cname, ns, soa and tsig structs.
OK jsg


# 1.18 24-Feb-2020 jsg

remove some unused code

ok florian@


# 1.17 24-Feb-2020 jsg

remove some uneeded includes


# 1.16 24-Feb-2020 florian

We only need to check the owner for nsec3 records, remove all the
rest.
OK jung


# 1.15 24-Feb-2020 florian

We are always preserving the order of records.
This lets us remove compare_* and casecompare_* functions from
RR types.
OK jung


# 1.14 24-Feb-2020 florian

Stop generating DNS class and type enums.
OK jsg, jung


# 1.13 23-Feb-2020 jung

rmeove more unused functions and code

ok florian


# 1.12 23-Feb-2020 jsg

remove unused dns_rdatacallbacks struct and typedef


# 1.11 22-Feb-2020 jung

remove various unused macros

ok florian


# 1.10 22-Feb-2020 jung

remove unused code

ok millert florian


# 1.9 20-Feb-2020 florian

We do not generate DNS records from text representations.
OK millert


# 1.8 18-Feb-2020 florian

Get rid of ISC_MAGIC and ISC_MAGIC_VALID macros.
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


# 1.7 13-Feb-2020 florian

expand ISC_FORMAT_PRINTF and get rid of formatcheck.h


# 1.6 13-Feb-2020 florian

Move DNS_NAME_INITABSOLUTE and DNS_NAME_INITNONABSOLUTE to a comon
header to not have multiple copies.


# 1.5 13-Feb-2020 jsg

remove more uneeded include statements and files


# 1.4 13-Feb-2020 jsg

remove unused macros

ok florian@


# 1.3 12-Feb-2020 jsg

remove some unreferenced functions

ok florian@


# 1.2 11-Feb-2020 jsg

remove uneeded #include lines

ok florian@


# 1.1 07-Feb-2020 florian

Move dig(1) and needed DNS libraries into it's own source directory in
usr.bin/dig.

From the beginning when we started to remove unneeded nameserver code,
it was our goal to extract dig functionality from the bind sources,
for everyone's benefit as this is easier to reason about.

In total we removed about 2/3 or over 300.000 lines of code.

We kept the lib/ subdirectory layout but moved the content of bin/ to
the top from the old bind source directory.

Previous sources and history can be found in the src/usr.sbin/bind
Attic.

With & OK deraadt
Proposed directory layout sounds good to sthen


# 1.34 25-Jun-2022 jsg

remove some unused code and uneeded includes
ok beck@ florian@


Revision tags: OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE
# 1.33 02-Apr-2021 florian

Implement ZONEMD (RFC8976), based on DS (ds_43.c)
OK sthen


Revision tags: OPENBSD_6_8_BASE
# 1.32 14-Sep-2020 florian

Mechanically replace isc_boolean_t with int.
OK deraadt


# 1.31 14-Sep-2020 florian

Bunch of dead stores and otherwise unused stuff lets us get rid of
unix/net.{c.h}. We need to sprinkle in a few #includes that net.h
dragged in.
OK deraadt


Revision tags: OPENBSD_6_7_BASE
# 1.30 26-Feb-2020 florian

no need to go through RETERR when we return a constant


# 1.29 26-Feb-2020 florian

In preparation of compiling lib/dns/rdata/ files individually we need
global visibility of str_totext.
Rename it to isc_str_tobuffer, put it into buffer.c and delete
duplicate implementations.


# 1.28 26-Feb-2020 florian

In preparation of compiling lib/dns/rdata/ files individually we need
global visibility of mem_tobuffer.
Rename it to isc_mem_tobuffer, put it into buffer.c and delete
duplicate implementations.


# 1.27 26-Feb-2020 florian

Always printing unknown types as TYPE%u and not sometimes as %u
considerably simplifies dns_rdatatype_attributes() since we then only
care about reserved types.
tweaks jsg


# 1.26 26-Feb-2020 florian

Rewrite dns_rdatatype_fromtext to use a binary search over a static
array.


# 1.25 25-Feb-2020 florian

Do not generate dns_rdatatype_attributes and dns_rdatatype_totext.
OK jung


# 1.24 25-Feb-2020 jsg

reduce multiple newlines


# 1.23 24-Feb-2020 florian

Stop generating rdatastruct.h and put the dns_rdata_* structs for
cname, ns, soa, and tsig directly into rdata.h


# 1.22 24-Feb-2020 florian

Delete a few more fromstruct_*, tostruct_* and freestruct_* functions
missed in previous. Also delete now unused utility functions.


# 1.21 24-Feb-2020 florian

We only need to create cname, ns, soa and tsig structs.
OK jsg


# 1.20 24-Feb-2020 florian

We only need to fill a wire format buffer from soa and tsig structs.
OK jsg


# 1.19 24-Feb-2020 florian

We only need to free cname, ns, soa and tsig structs.
OK jsg


# 1.18 24-Feb-2020 jsg

remove some unused code

ok florian@


# 1.17 24-Feb-2020 jsg

remove some uneeded includes


# 1.16 24-Feb-2020 florian

We only need to check the owner for nsec3 records, remove all the
rest.
OK jung


# 1.15 24-Feb-2020 florian

We are always preserving the order of records.
This lets us remove compare_* and casecompare_* functions from
RR types.
OK jung


# 1.14 24-Feb-2020 florian

Stop generating DNS class and type enums.
OK jsg, jung


# 1.13 23-Feb-2020 jung

rmeove more unused functions and code

ok florian


# 1.12 23-Feb-2020 jsg

remove unused dns_rdatacallbacks struct and typedef


# 1.11 22-Feb-2020 jung

remove various unused macros

ok florian


# 1.10 22-Feb-2020 jung

remove unused code

ok millert florian


# 1.9 20-Feb-2020 florian

We do not generate DNS records from text representations.
OK millert


# 1.8 18-Feb-2020 florian

Get rid of ISC_MAGIC and ISC_MAGIC_VALID macros.
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


# 1.7 13-Feb-2020 florian

expand ISC_FORMAT_PRINTF and get rid of formatcheck.h


# 1.6 13-Feb-2020 florian

Move DNS_NAME_INITABSOLUTE and DNS_NAME_INITNONABSOLUTE to a comon
header to not have multiple copies.


# 1.5 13-Feb-2020 jsg

remove more uneeded include statements and files


# 1.4 13-Feb-2020 jsg

remove unused macros

ok florian@


# 1.3 12-Feb-2020 jsg

remove some unreferenced functions

ok florian@


# 1.2 11-Feb-2020 jsg

remove uneeded #include lines

ok florian@


# 1.1 07-Feb-2020 florian

Move dig(1) and needed DNS libraries into it's own source directory in
usr.bin/dig.

From the beginning when we started to remove unneeded nameserver code,
it was our goal to extract dig functionality from the bind sources,
for everyone's benefit as this is easier to reason about.

In total we removed about 2/3 or over 300.000 lines of code.

We kept the lib/ subdirectory layout but moved the content of bin/ to
the top from the old bind source directory.

Previous sources and history can be found in the src/usr.sbin/bind
Attic.

With & OK deraadt
Proposed directory layout sounds good to sthen


# 1.33 02-Apr-2021 florian

Implement ZONEMD (RFC8976), based on DS (ds_43.c)
OK sthen


Revision tags: OPENBSD_6_8_BASE
# 1.32 14-Sep-2020 florian

Mechanically replace isc_boolean_t with int.
OK deraadt


# 1.31 14-Sep-2020 florian

Bunch of dead stores and otherwise unused stuff lets us get rid of
unix/net.{c.h}. We need to sprinkle in a few #includes that net.h
dragged in.
OK deraadt


Revision tags: OPENBSD_6_7_BASE
# 1.30 26-Feb-2020 florian

no need to go through RETERR when we return a constant


# 1.29 26-Feb-2020 florian

In preparation of compiling lib/dns/rdata/ files individually we need
global visibility of str_totext.
Rename it to isc_str_tobuffer, put it into buffer.c and delete
duplicate implementations.


# 1.28 26-Feb-2020 florian

In preparation of compiling lib/dns/rdata/ files individually we need
global visibility of mem_tobuffer.
Rename it to isc_mem_tobuffer, put it into buffer.c and delete
duplicate implementations.


# 1.27 26-Feb-2020 florian

Always printing unknown types as TYPE%u and not sometimes as %u
considerably simplifies dns_rdatatype_attributes() since we then only
care about reserved types.
tweaks jsg


# 1.26 26-Feb-2020 florian

Rewrite dns_rdatatype_fromtext to use a binary search over a static
array.


# 1.25 25-Feb-2020 florian

Do not generate dns_rdatatype_attributes and dns_rdatatype_totext.
OK jung


# 1.24 25-Feb-2020 jsg

reduce multiple newlines


# 1.23 24-Feb-2020 florian

Stop generating rdatastruct.h and put the dns_rdata_* structs for
cname, ns, soa, and tsig directly into rdata.h


# 1.22 24-Feb-2020 florian

Delete a few more fromstruct_*, tostruct_* and freestruct_* functions
missed in previous. Also delete now unused utility functions.


# 1.21 24-Feb-2020 florian

We only need to create cname, ns, soa and tsig structs.
OK jsg


# 1.20 24-Feb-2020 florian

We only need to fill a wire format buffer from soa and tsig structs.
OK jsg


# 1.19 24-Feb-2020 florian

We only need to free cname, ns, soa and tsig structs.
OK jsg


# 1.18 24-Feb-2020 jsg

remove some unused code

ok florian@


# 1.17 24-Feb-2020 jsg

remove some uneeded includes


# 1.16 24-Feb-2020 florian

We only need to check the owner for nsec3 records, remove all the
rest.
OK jung


# 1.15 24-Feb-2020 florian

We are always preserving the order of records.
This lets us remove compare_* and casecompare_* functions from
RR types.
OK jung


# 1.14 24-Feb-2020 florian

Stop generating DNS class and type enums.
OK jsg, jung


# 1.13 23-Feb-2020 jung

rmeove more unused functions and code

ok florian


# 1.12 23-Feb-2020 jsg

remove unused dns_rdatacallbacks struct and typedef


# 1.11 22-Feb-2020 jung

remove various unused macros

ok florian


# 1.10 22-Feb-2020 jung

remove unused code

ok millert florian


# 1.9 20-Feb-2020 florian

We do not generate DNS records from text representations.
OK millert


# 1.8 18-Feb-2020 florian

Get rid of ISC_MAGIC and ISC_MAGIC_VALID macros.
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


# 1.7 13-Feb-2020 florian

expand ISC_FORMAT_PRINTF and get rid of formatcheck.h


# 1.6 13-Feb-2020 florian

Move DNS_NAME_INITABSOLUTE and DNS_NAME_INITNONABSOLUTE to a comon
header to not have multiple copies.


# 1.5 13-Feb-2020 jsg

remove more uneeded include statements and files


# 1.4 13-Feb-2020 jsg

remove unused macros

ok florian@


# 1.3 12-Feb-2020 jsg

remove some unreferenced functions

ok florian@


# 1.2 11-Feb-2020 jsg

remove uneeded #include lines

ok florian@


# 1.1 07-Feb-2020 florian

Move dig(1) and needed DNS libraries into it's own source directory in
usr.bin/dig.

From the beginning when we started to remove unneeded nameserver code,
it was our goal to extract dig functionality from the bind sources,
for everyone's benefit as this is easier to reason about.

In total we removed about 2/3 or over 300.000 lines of code.

We kept the lib/ subdirectory layout but moved the content of bin/ to
the top from the old bind source directory.

Previous sources and history can be found in the src/usr.sbin/bind
Attic.

With & OK deraadt
Proposed directory layout sounds good to sthen


# 1.32 14-Sep-2020 florian

Mechanically replace isc_boolean_t with int.
OK deraadt


# 1.31 14-Sep-2020 florian

Bunch of dead stores and otherwise unused stuff lets us get rid of
unix/net.{c.h}. We need to sprinkle in a few #includes that net.h
dragged in.
OK deraadt


Revision tags: OPENBSD_6_7_BASE
# 1.30 26-Feb-2020 florian

no need to go through RETERR when we return a constant


# 1.29 26-Feb-2020 florian

In preparation of compiling lib/dns/rdata/ files individually we need
global visibility of str_totext.
Rename it to isc_str_tobuffer, put it into buffer.c and delete
duplicate implementations.


# 1.28 26-Feb-2020 florian

In preparation of compiling lib/dns/rdata/ files individually we need
global visibility of mem_tobuffer.
Rename it to isc_mem_tobuffer, put it into buffer.c and delete
duplicate implementations.


# 1.27 26-Feb-2020 florian

Always printing unknown types as TYPE%u and not sometimes as %u
considerably simplifies dns_rdatatype_attributes() since we then only
care about reserved types.
tweaks jsg


# 1.26 26-Feb-2020 florian

Rewrite dns_rdatatype_fromtext to use a binary search over a static
array.


# 1.25 25-Feb-2020 florian

Do not generate dns_rdatatype_attributes and dns_rdatatype_totext.
OK jung


# 1.24 25-Feb-2020 jsg

reduce multiple newlines


# 1.23 24-Feb-2020 florian

Stop generating rdatastruct.h and put the dns_rdata_* structs for
cname, ns, soa, and tsig directly into rdata.h


# 1.22 24-Feb-2020 florian

Delete a few more fromstruct_*, tostruct_* and freestruct_* functions
missed in previous. Also delete now unused utility functions.


# 1.21 24-Feb-2020 florian

We only need to create cname, ns, soa and tsig structs.
OK jsg


# 1.20 24-Feb-2020 florian

We only need to fill a wire format buffer from soa and tsig structs.
OK jsg


# 1.19 24-Feb-2020 florian

We only need to free cname, ns, soa and tsig structs.
OK jsg


# 1.18 24-Feb-2020 jsg

remove some unused code

ok florian@


# 1.17 24-Feb-2020 jsg

remove some uneeded includes


# 1.16 24-Feb-2020 florian

We only need to check the owner for nsec3 records, remove all the
rest.
OK jung


# 1.15 24-Feb-2020 florian

We are always preserving the order of records.
This lets us remove compare_* and casecompare_* functions from
RR types.
OK jung


# 1.14 24-Feb-2020 florian

Stop generating DNS class and type enums.
OK jsg, jung


# 1.13 23-Feb-2020 jung

rmeove more unused functions and code

ok florian


# 1.12 23-Feb-2020 jsg

remove unused dns_rdatacallbacks struct and typedef


# 1.11 22-Feb-2020 jung

remove various unused macros

ok florian


# 1.10 22-Feb-2020 jung

remove unused code

ok millert florian


# 1.9 20-Feb-2020 florian

We do not generate DNS records from text representations.
OK millert


# 1.8 18-Feb-2020 florian

Get rid of ISC_MAGIC and ISC_MAGIC_VALID macros.
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


# 1.7 13-Feb-2020 florian

expand ISC_FORMAT_PRINTF and get rid of formatcheck.h


# 1.6 13-Feb-2020 florian

Move DNS_NAME_INITABSOLUTE and DNS_NAME_INITNONABSOLUTE to a comon
header to not have multiple copies.


# 1.5 13-Feb-2020 jsg

remove more uneeded include statements and files


# 1.4 13-Feb-2020 jsg

remove unused macros

ok florian@


# 1.3 12-Feb-2020 jsg

remove some unreferenced functions

ok florian@


# 1.2 11-Feb-2020 jsg

remove uneeded #include lines

ok florian@


# 1.1 07-Feb-2020 florian

Move dig(1) and needed DNS libraries into it's own source directory in
usr.bin/dig.

From the beginning when we started to remove unneeded nameserver code,
it was our goal to extract dig functionality from the bind sources,
for everyone's benefit as this is easier to reason about.

In total we removed about 2/3 or over 300.000 lines of code.

We kept the lib/ subdirectory layout but moved the content of bin/ to
the top from the old bind source directory.

Previous sources and history can be found in the src/usr.sbin/bind
Attic.

With & OK deraadt
Proposed directory layout sounds good to sthen


# 1.30 26-Feb-2020 florian

no need to go through RETERR when we return a constant


# 1.29 26-Feb-2020 florian

In preparation of compiling lib/dns/rdata/ files individually we need
global visibility of str_totext.
Rename it to isc_str_tobuffer, put it into buffer.c and delete
duplicate implementations.


# 1.28 26-Feb-2020 florian

In preparation of compiling lib/dns/rdata/ files individually we need
global visibility of mem_tobuffer.
Rename it to isc_mem_tobuffer, put it into buffer.c and delete
duplicate implementations.


# 1.27 26-Feb-2020 florian

Always printing unknown types as TYPE%u and not sometimes as %u
considerably simplifies dns_rdatatype_attributes() since we then only
care about reserved types.
tweaks jsg


# 1.26 26-Feb-2020 florian

Rewrite dns_rdatatype_fromtext to use a binary search over a static
array.


# 1.25 25-Feb-2020 florian

Do not generate dns_rdatatype_attributes and dns_rdatatype_totext.
OK jung


# 1.24 25-Feb-2020 jsg

reduce multiple newlines


# 1.23 24-Feb-2020 florian

Stop generating rdatastruct.h and put the dns_rdata_* structs for
cname, ns, soa, and tsig directly into rdata.h


# 1.22 24-Feb-2020 florian

Delete a few more fromstruct_*, tostruct_* and freestruct_* functions
missed in previous. Also delete now unused utility functions.


# 1.21 24-Feb-2020 florian

We only need to create cname, ns, soa and tsig structs.
OK jsg


# 1.20 24-Feb-2020 florian

We only need to fill a wire format buffer from soa and tsig structs.
OK jsg


# 1.19 24-Feb-2020 florian

We only need to free cname, ns, soa and tsig structs.
OK jsg


# 1.18 24-Feb-2020 jsg

remove some unused code

ok florian@


# 1.17 24-Feb-2020 jsg

remove some uneeded includes


# 1.16 24-Feb-2020 florian

We only need to check the owner for nsec3 records, remove all the
rest.
OK jung


# 1.15 24-Feb-2020 florian

We are always preserving the order of records.
This lets us remove compare_* and casecompare_* functions from
RR types.
OK jung


# 1.14 24-Feb-2020 florian

Stop generating DNS class and type enums.
OK jsg, jung


# 1.13 23-Feb-2020 jung

rmeove more unused functions and code

ok florian


# 1.12 23-Feb-2020 jsg

remove unused dns_rdatacallbacks struct and typedef


# 1.11 22-Feb-2020 jung

remove various unused macros

ok florian


# 1.10 22-Feb-2020 jung

remove unused code

ok millert florian


# 1.9 20-Feb-2020 florian

We do not generate DNS records from text representations.
OK millert


# 1.8 18-Feb-2020 florian

Get rid of ISC_MAGIC and ISC_MAGIC_VALID macros.
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


# 1.7 13-Feb-2020 florian

expand ISC_FORMAT_PRINTF and get rid of formatcheck.h


# 1.6 13-Feb-2020 florian

Move DNS_NAME_INITABSOLUTE and DNS_NAME_INITNONABSOLUTE to a comon
header to not have multiple copies.


# 1.5 13-Feb-2020 jsg

remove more uneeded include statements and files


# 1.4 13-Feb-2020 jsg

remove unused macros

ok florian@


# 1.3 12-Feb-2020 jsg

remove some unreferenced functions

ok florian@


# 1.2 11-Feb-2020 jsg

remove uneeded #include lines

ok florian@


# 1.1 07-Feb-2020 florian

Move dig(1) and needed DNS libraries into it's own source directory in
usr.bin/dig.

From the beginning when we started to remove unneeded nameserver code,
it was our goal to extract dig functionality from the bind sources,
for everyone's benefit as this is easier to reason about.

In total we removed about 2/3 or over 300.000 lines of code.

We kept the lib/ subdirectory layout but moved the content of bin/ to
the top from the old bind source directory.

Previous sources and history can be found in the src/usr.sbin/bind
Attic.

With & OK deraadt
Proposed directory layout sounds good to sthen


# 1.25 25-Feb-2020 florian

Do not generate dns_rdatatype_attributes and dns_rdatatype_totext.
OK jung


# 1.24 25-Feb-2020 jsg

reduce multiple newlines


# 1.23 24-Feb-2020 florian

Stop generating rdatastruct.h and put the dns_rdata_* structs for
cname, ns, soa, and tsig directly into rdata.h


# 1.22 24-Feb-2020 florian

Delete a few more fromstruct_*, tostruct_* and freestruct_* functions
missed in previous. Also delete now unused utility functions.


# 1.21 24-Feb-2020 florian

We only need to create cname, ns, soa and tsig structs.
OK jsg


# 1.20 24-Feb-2020 florian

We only need to fill a wire format buffer from soa and tsig structs.
OK jsg


# 1.19 24-Feb-2020 florian

We only need to free cname, ns, soa and tsig structs.
OK jsg


# 1.18 24-Feb-2020 jsg

remove some unused code

ok florian@


# 1.17 24-Feb-2020 jsg

remove some uneeded includes


# 1.16 24-Feb-2020 florian

We only need to check the owner for nsec3 records, remove all the
rest.
OK jung


# 1.15 24-Feb-2020 florian

We are always preserving the order of records.
This lets us remove compare_* and casecompare_* functions from
RR types.
OK jung


# 1.14 24-Feb-2020 florian

Stop generating DNS class and type enums.
OK jsg, jung


# 1.13 23-Feb-2020 jung

rmeove more unused functions and code

ok florian


# 1.12 23-Feb-2020 jsg

remove unused dns_rdatacallbacks struct and typedef


# 1.11 22-Feb-2020 jung

remove various unused macros

ok florian


# 1.10 22-Feb-2020 jung

remove unused code

ok millert florian


# 1.9 20-Feb-2020 florian

We do not generate DNS records from text representations.
OK millert


# 1.8 18-Feb-2020 florian

Get rid of ISC_MAGIC and ISC_MAGIC_VALID macros.
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


# 1.7 13-Feb-2020 florian

expand ISC_FORMAT_PRINTF and get rid of formatcheck.h


# 1.6 13-Feb-2020 florian

Move DNS_NAME_INITABSOLUTE and DNS_NAME_INITNONABSOLUTE to a comon
header to not have multiple copies.


# 1.5 13-Feb-2020 jsg

remove more uneeded include statements and files


# 1.4 13-Feb-2020 jsg

remove unused macros

ok florian@


# 1.3 12-Feb-2020 jsg

remove some unreferenced functions

ok florian@


# 1.2 11-Feb-2020 jsg

remove uneeded #include lines

ok florian@


# 1.1 07-Feb-2020 florian

Move dig(1) and needed DNS libraries into it's own source directory in
usr.bin/dig.

From the beginning when we started to remove unneeded nameserver code,
it was our goal to extract dig functionality from the bind sources,
for everyone's benefit as this is easier to reason about.

In total we removed about 2/3 or over 300.000 lines of code.

We kept the lib/ subdirectory layout but moved the content of bin/ to
the top from the old bind source directory.

Previous sources and history can be found in the src/usr.sbin/bind
Attic.

With & OK deraadt
Proposed directory layout sounds good to sthen


# 1.24 25-Feb-2020 jsg

reduce multiple newlines


# 1.23 24-Feb-2020 florian

Stop generating rdatastruct.h and put the dns_rdata_* structs for
cname, ns, soa, and tsig directly into rdata.h


# 1.22 24-Feb-2020 florian

Delete a few more fromstruct_*, tostruct_* and freestruct_* functions
missed in previous. Also delete now unused utility functions.


# 1.21 24-Feb-2020 florian

We only need to create cname, ns, soa and tsig structs.
OK jsg


# 1.20 24-Feb-2020 florian

We only need to fill a wire format buffer from soa and tsig structs.
OK jsg


# 1.19 24-Feb-2020 florian

We only need to free cname, ns, soa and tsig structs.
OK jsg


# 1.18 24-Feb-2020 jsg

remove some unused code

ok florian@


# 1.17 24-Feb-2020 jsg

remove some uneeded includes


# 1.16 24-Feb-2020 florian

We only need to check the owner for nsec3 records, remove all the
rest.
OK jung


# 1.15 24-Feb-2020 florian

We are always preserving the order of records.
This lets us remove compare_* and casecompare_* functions from
RR types.
OK jung


# 1.14 24-Feb-2020 florian

Stop generating DNS class and type enums.
OK jsg, jung


# 1.13 23-Feb-2020 jung

rmeove more unused functions and code

ok florian


# 1.12 23-Feb-2020 jsg

remove unused dns_rdatacallbacks struct and typedef


# 1.11 22-Feb-2020 jung

remove various unused macros

ok florian


# 1.10 22-Feb-2020 jung

remove unused code

ok millert florian


# 1.9 20-Feb-2020 florian

We do not generate DNS records from text representations.
OK millert


# 1.8 18-Feb-2020 florian

Get rid of ISC_MAGIC and ISC_MAGIC_VALID macros.
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


# 1.7 13-Feb-2020 florian

expand ISC_FORMAT_PRINTF and get rid of formatcheck.h


# 1.6 13-Feb-2020 florian

Move DNS_NAME_INITABSOLUTE and DNS_NAME_INITNONABSOLUTE to a comon
header to not have multiple copies.


# 1.5 13-Feb-2020 jsg

remove more uneeded include statements and files


# 1.4 13-Feb-2020 jsg

remove unused macros

ok florian@


# 1.3 12-Feb-2020 jsg

remove some unreferenced functions

ok florian@


# 1.2 11-Feb-2020 jsg

remove uneeded #include lines

ok florian@


# 1.1 07-Feb-2020 florian

Move dig(1) and needed DNS libraries into it's own source directory in
usr.bin/dig.

From the beginning when we started to remove unneeded nameserver code,
it was our goal to extract dig functionality from the bind sources,
for everyone's benefit as this is easier to reason about.

In total we removed about 2/3 or over 300.000 lines of code.

We kept the lib/ subdirectory layout but moved the content of bin/ to
the top from the old bind source directory.

Previous sources and history can be found in the src/usr.sbin/bind
Attic.

With & OK deraadt
Proposed directory layout sounds good to sthen


# 1.13 23-Feb-2020 jung

rmeove more unused functions and code

ok florian


# 1.12 23-Feb-2020 jsg

remove unused dns_rdatacallbacks struct and typedef


# 1.11 22-Feb-2020 jung

remove various unused macros

ok florian


# 1.10 22-Feb-2020 jung

remove unused code

ok millert florian


# 1.9 20-Feb-2020 florian

We do not generate DNS records from text representations.
OK millert


# 1.8 18-Feb-2020 florian

Get rid of ISC_MAGIC and ISC_MAGIC_VALID macros.
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


# 1.7 13-Feb-2020 florian

expand ISC_FORMAT_PRINTF and get rid of formatcheck.h


# 1.6 13-Feb-2020 florian

Move DNS_NAME_INITABSOLUTE and DNS_NAME_INITNONABSOLUTE to a comon
header to not have multiple copies.


# 1.5 13-Feb-2020 jsg

remove more uneeded include statements and files


# 1.4 13-Feb-2020 jsg

remove unused macros

ok florian@


# 1.3 12-Feb-2020 jsg

remove some unreferenced functions

ok florian@


# 1.2 11-Feb-2020 jsg

remove uneeded #include lines

ok florian@


# 1.1 07-Feb-2020 florian

Move dig(1) and needed DNS libraries into it's own source directory in
usr.bin/dig.

From the beginning when we started to remove unneeded nameserver code,
it was our goal to extract dig functionality from the bind sources,
for everyone's benefit as this is easier to reason about.

In total we removed about 2/3 or over 300.000 lines of code.

We kept the lib/ subdirectory layout but moved the content of bin/ to
the top from the old bind source directory.

Previous sources and history can be found in the src/usr.sbin/bind
Attic.

With & OK deraadt
Proposed directory layout sounds good to sthen


# 1.12 23-Feb-2020 jsg

remove unused dns_rdatacallbacks struct and typedef


# 1.11 22-Feb-2020 jung

remove various unused macros

ok florian


# 1.10 22-Feb-2020 jung

remove unused code

ok millert florian


# 1.9 20-Feb-2020 florian

We do not generate DNS records from text representations.
OK millert


# 1.8 18-Feb-2020 florian

Get rid of ISC_MAGIC and ISC_MAGIC_VALID macros.
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


# 1.7 13-Feb-2020 florian

expand ISC_FORMAT_PRINTF and get rid of formatcheck.h


# 1.6 13-Feb-2020 florian

Move DNS_NAME_INITABSOLUTE and DNS_NAME_INITNONABSOLUTE to a comon
header to not have multiple copies.


# 1.5 13-Feb-2020 jsg

remove more uneeded include statements and files


# 1.4 13-Feb-2020 jsg

remove unused macros

ok florian@


# 1.3 12-Feb-2020 jsg

remove some unreferenced functions

ok florian@


# 1.2 11-Feb-2020 jsg

remove uneeded #include lines

ok florian@


# 1.1 07-Feb-2020 florian

Move dig(1) and needed DNS libraries into it's own source directory in
usr.bin/dig.

From the beginning when we started to remove unneeded nameserver code,
it was our goal to extract dig functionality from the bind sources,
for everyone's benefit as this is easier to reason about.

In total we removed about 2/3 or over 300.000 lines of code.

We kept the lib/ subdirectory layout but moved the content of bin/ to
the top from the old bind source directory.

Previous sources and history can be found in the src/usr.sbin/bind
Attic.

With & OK deraadt
Proposed directory layout sounds good to sthen


# 1.9 20-Feb-2020 florian

We do not generate DNS records from text representations.
OK millert


# 1.8 18-Feb-2020 florian

Get rid of ISC_MAGIC and ISC_MAGIC_VALID macros.
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


# 1.7 13-Feb-2020 florian

expand ISC_FORMAT_PRINTF and get rid of formatcheck.h


# 1.6 13-Feb-2020 florian

Move DNS_NAME_INITABSOLUTE and DNS_NAME_INITNONABSOLUTE to a comon
header to not have multiple copies.


# 1.5 13-Feb-2020 jsg

remove more uneeded include statements and files


# 1.4 13-Feb-2020 jsg

remove unused macros

ok florian@


# 1.3 12-Feb-2020 jsg

remove some unreferenced functions

ok florian@


# 1.2 11-Feb-2020 jsg

remove uneeded #include lines

ok florian@


# 1.1 07-Feb-2020 florian

Move dig(1) and needed DNS libraries into it's own source directory in
usr.bin/dig.

From the beginning when we started to remove unneeded nameserver code,
it was our goal to extract dig functionality from the bind sources,
for everyone's benefit as this is easier to reason about.

In total we removed about 2/3 or over 300.000 lines of code.

We kept the lib/ subdirectory layout but moved the content of bin/ to
the top from the old bind source directory.

Previous sources and history can be found in the src/usr.sbin/bind
Attic.

With & OK deraadt
Proposed directory layout sounds good to sthen


# 1.8 18-Feb-2020 florian

Get rid of ISC_MAGIC and ISC_MAGIC_VALID macros.
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


# 1.7 13-Feb-2020 florian

expand ISC_FORMAT_PRINTF and get rid of formatcheck.h


# 1.6 13-Feb-2020 florian

Move DNS_NAME_INITABSOLUTE and DNS_NAME_INITNONABSOLUTE to a comon
header to not have multiple copies.


# 1.5 13-Feb-2020 jsg

remove more uneeded include statements and files


# 1.4 13-Feb-2020 jsg

remove unused macros

ok florian@


# 1.3 12-Feb-2020 jsg

remove some unreferenced functions

ok florian@


# 1.2 11-Feb-2020 jsg

remove uneeded #include lines

ok florian@


# 1.1 07-Feb-2020 florian

Move dig(1) and needed DNS libraries into it's own source directory in
usr.bin/dig.

From the beginning when we started to remove unneeded nameserver code,
it was our goal to extract dig functionality from the bind sources,
for everyone's benefit as this is easier to reason about.

In total we removed about 2/3 or over 300.000 lines of code.

We kept the lib/ subdirectory layout but moved the content of bin/ to
the top from the old bind source directory.

Previous sources and history can be found in the src/usr.sbin/bind
Attic.

With & OK deraadt
Proposed directory layout sounds good to sthen


# 1.7 13-Feb-2020 florian

expand ISC_FORMAT_PRINTF and get rid of formatcheck.h


# 1.6 13-Feb-2020 florian

Move DNS_NAME_INITABSOLUTE and DNS_NAME_INITNONABSOLUTE to a comon
header to not have multiple copies.


# 1.5 13-Feb-2020 jsg

remove more uneeded include statements and files


# 1.4 13-Feb-2020 jsg

remove unused macros

ok florian@


# 1.3 12-Feb-2020 jsg

remove some unreferenced functions

ok florian@


# 1.2 11-Feb-2020 jsg

remove uneeded #include lines

ok florian@


# 1.1 07-Feb-2020 florian

Move dig(1) and needed DNS libraries into it's own source directory in
usr.bin/dig.

From the beginning when we started to remove unneeded nameserver code,
it was our goal to extract dig functionality from the bind sources,
for everyone's benefit as this is easier to reason about.

In total we removed about 2/3 or over 300.000 lines of code.

We kept the lib/ subdirectory layout but moved the content of bin/ to
the top from the old bind source directory.

Previous sources and history can be found in the src/usr.sbin/bind
Attic.

With & OK deraadt
Proposed directory layout sounds good to sthen


# 1.4 13-Feb-2020 jsg

remove unused macros

ok florian@


# 1.3 12-Feb-2020 jsg

remove some unreferenced functions

ok florian@


# 1.2 11-Feb-2020 jsg

remove uneeded #include lines

ok florian@


# 1.1 07-Feb-2020 florian

Move dig(1) and needed DNS libraries into it's own source directory in
usr.bin/dig.

From the beginning when we started to remove unneeded nameserver code,
it was our goal to extract dig functionality from the bind sources,
for everyone's benefit as this is easier to reason about.

In total we removed about 2/3 or over 300.000 lines of code.

We kept the lib/ subdirectory layout but moved the content of bin/ to
the top from the old bind source directory.

Previous sources and history can be found in the src/usr.sbin/bind
Attic.

With & OK deraadt
Proposed directory layout sounds good to sthen


# 1.2 11-Feb-2020 jsg

remove uneeded #include lines

ok florian@


# 1.1 07-Feb-2020 florian

Move dig(1) and needed DNS libraries into it's own source directory in
usr.bin/dig.

From the beginning when we started to remove unneeded nameserver code,
it was our goal to extract dig functionality from the bind sources,
for everyone's benefit as this is easier to reason about.

In total we removed about 2/3 or over 300.000 lines of code.

We kept the lib/ subdirectory layout but moved the content of bin/ to
the top from the old bind source directory.

Previous sources and history can be found in the src/usr.sbin/bind
Attic.

With & OK deraadt
Proposed directory layout sounds good to sthen