aboutsummaryrefslogtreecommitdiff
path: root/include/ifaddrs.h
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2023-08-11 10:10:16 +0200
committerFlorian Weimer <fweimer@redhat.com>2023-08-11 10:10:16 +0200
commit039ff51ac7e02db1cfc0c23e38ac7bfbb00221d1 (patch)
tree9b61ff729e18e085ea908cd6508a368ce9dcdabc /include/ifaddrs.h
parent881546979d0219c18337e1b4f4d00cfacab13c40 (diff)
downloadglibc-039ff51ac7e02db1cfc0c23e38ac7bfbb00221d1.tar
glibc-039ff51ac7e02db1cfc0c23e38ac7bfbb00221d1.tar.gz
glibc-039ff51ac7e02db1cfc0c23e38ac7bfbb00221d1.tar.bz2
glibc-039ff51ac7e02db1cfc0c23e38ac7bfbb00221d1.zip
nscd: Do not rebuild getaddrinfo (bug 30709)
The nscd daemon caches hosts data from NSS modules verbatim, without filtering protocol families or sorting them (otherwise separate caches would be needed for certain ai_flags combinations). The cache implementation is complete separate from the getaddrinfo code. This means that rebuilding getaddrinfo is not needed. The only function actually used is __bump_nl_timestamp from check_pf.c, and this change moves it into nscd/connections.c. Tested on x86_64-linux-gnu with -fexceptions, built with build-many-glibcs.py. I also backported this patch into a distribution that still supports nscd and verified manually that caching still works. Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Diffstat (limited to 'include/ifaddrs.h')
-rw-r--r--include/ifaddrs.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/include/ifaddrs.h b/include/ifaddrs.h
index 416118f1b3..19a3afb19f 100644
--- a/include/ifaddrs.h
+++ b/include/ifaddrs.h
@@ -34,9 +34,5 @@ extern void __check_native (uint32_t a1_index, int *a1_native,
uint32_t a2_index, int *a2_native)
attribute_hidden;
-#if IS_IN (nscd)
-extern uint32_t __bump_nl_timestamp (void) attribute_hidden;
-#endif
-
# endif /* !_ISOMAC */
#endif /* ifaddrs.h */