about summary refs log tree commit diff
path: root/resolv/Makefile
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2022-08-30 10:02:49 +0200
committerFlorian Weimer <fweimer@redhat.com>2022-08-30 10:02:49 +0200
commit394085a34d25a51513019a4dc411acd3527fbd33 (patch)
treefafedbaebad9ec3d6049ca00f57cfa6dbc094983 /resolv/Makefile
parentc79327bf00a4be6d60259227acc78ef80ead3622 (diff)
downloadglibc-394085a34d25a51513019a4dc411acd3527fbd33.tar.gz
glibc-394085a34d25a51513019a4dc411acd3527fbd33.tar.xz
glibc-394085a34d25a51513019a4dc411acd3527fbd33.zip
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>
Diffstat (limited to 'resolv/Makefile')
-rw-r--r--resolv/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/resolv/Makefile b/resolv/Makefile
index 0038bb7028..ec61ad07bd 100644
--- a/resolv/Makefile
+++ b/resolv/Makefile
@@ -46,6 +46,7 @@ routines := \
   ns_name_skip \
   ns_name_uncompress \
   ns_name_unpack \
+  ns_samebinaryname \
   ns_samename \
   nsap_addr \
   nss_dns_functions \
@@ -106,6 +107,10 @@ tests += \
 tests-internal += tst-resolv-txnid-collision
 tests-static += tst-resolv-txnid-collision
 
+# Likewise for __ns_samebinaryname.
+tests-internal += tst-ns_samebinaryname
+tests-static += tst-ns_samebinaryname
+
 # These tests need libdl.
 ifeq (yes,$(build-shared))
 tests += \