resolv: Add the __ns_samebinaryname function
authorFlorian Weimer <fweimer@redhat.com>
Tue, 30 Aug 2022 08:02:49 +0000 (10:02 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 30 Aug 2022 08:02:49 +0000 (10:02 +0200)
commit394085a34d25a51513019a4dc411acd3527fbd33
treefafedbaebad9ec3d6049ca00f57cfa6dbc094983
parentc79327bf00a4be6d60259227acc78ef80ead3622
resolv: Add the __ns_samebinaryname function

During packet parsing, only the binary name is available.  If the name
equality check is performed before conversion to text, we can sometimes
skip the last step.

Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
include/arpa/nameser.h
resolv/Makefile
resolv/ns_samebinaryname.c [new file with mode: 0644]
resolv/tst-ns_samebinaryname.c [new file with mode: 0644]