From d19687d6ebc545b633e14c07429f7892a599d0b9 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 15 Sep 2004 08:25:49 +0000 Subject: Update. 2004-09-15 Ulrich Drepper * nscd/Makefile (rountines): Add nscd_getai. (nscd-modules): Add aicache. * nscd/aicache.c: New file. * nscd/nscd_getai.c: New file. * nscd/cache.c (prune_cache): Handle GETAI request type. * nscd/connections.c: Add GETAI support in request handling. * nscd/nscd-client.h (request_type): Add GETAI. Define ai_response_header and struct nscd_ai_result types. (struct datahead): Add aidata field. Declare __nscd_getai. * nscd/nscd.c: Add getaddrinfo definition to catch problems. * nscd/nscd.h: Declare addhstai and readdhstai. * sysdeps/posix/getaddrinfo.c: Add support for using cached results. * nscd/nscd-client.h (struct datahead): Use uint8_t instead of bool. --- nscd/cache.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nscd/cache.c') diff --git a/nscd/cache.c b/nscd/cache.c index 69c2efb4de..468b8d272a 100644 --- a/nscd/cache.c +++ b/nscd/cache.c @@ -313,6 +313,10 @@ prune_cache (struct database_dyn *table, time_t now) readdhstbyaddrv6 (table, runp, dh); break; + case GETAI: + readdhstai (table, runp, dh); + break; + default: assert (! "should never happen"); } -- cgit 1.4.1