]> git.ipfire.org Git - thirdparty/bind9.git/commit
add API to parse and extract IP from PTR name
authorColin Vidal <colin@isc.org>
Mon, 31 Mar 2025 13:50:32 +0000 (15:50 +0200)
committerColin Vidal <colin@isc.org>
Wed, 1 Oct 2025 10:16:05 +0000 (12:16 +0200)
commitb4568a85c1b98c7af88dcd6c88bcdf624ddfa817
tree8db5dafb98c2f71ca21750e72699280f9c77a921
parente34dd2b73ef17c3ca57adee1d5f73a85f3e5fb10
add API to parse and extract IP from PTR name

Add an API to parse and extract either an IPv4 or IPv6 address from
a name using the reverse format. It takes care of family detection,
and returns a generic error in case of syntax error.
lib/dns/byaddr.c
lib/dns/include/dns/byaddr.h
tests/dns/byaddr_test.c [new file with mode: 0644]
tests/dns/meson.build