/nscd/ |
A D | cache.c | 73 cache_search (request_type type, const void *key, size_t len, in cache_search() argument 88 if (type == here->type && len == here->len in cache_search() 144 if (type == GETHOSTBYADDR || type == GETHOSTBYADDRv6) in cache_add() 145 str = inet_ntop (type == GETHOSTBYADDR ? AF_INET : AF_INET6, in cache_add() 151 str, serv2str[type], dbnames[table - dbs], in cache_add() 170 newp->type = type; in cache_add() 360 if (runp->type == GETHOSTBYADDR || runp->type == GETHOSTBYADDRv6) in prune_cache() 370 serv2str[runp->type], str, dh->timeout); in prune_cache() 411 assert (runp->type < LASTREQ in prune_cache() 412 && readdfcts[runp->type] != NULL); in prune_cache() [all …]
|
A D | gethstbyad_r.c | 24 #define ADD_PARAMS const void *addr, socklen_t len, int type 26 #define ADD_VARIABLES addr, len, type 38 __gethostbyaddr_r (const void *addr, socklen_t len, int type, in __gethostbyaddr_r() argument 42 return __gethostbyaddr2_r (addr, len, type, result_buf, buf, buflen, in __gethostbyaddr_r()
|
A D | nscd_gethst_r.c | 31 static int nscd_gethst_r (const char *key, size_t keylen, request_type type, 62 __nscd_gethostbyaddr_r (const void *addr, socklen_t len, int type, in __nscd_gethostbyaddr_r() argument 68 if (!((len == INADDRSZ && type == AF_INET) in __nscd_gethostbyaddr_r() 69 || (len == IN6ADDRSZ && type == AF_INET6))) in __nscd_gethostbyaddr_r() 73 reqtype = type == AF_INET6 ? GETHOSTBYADDRv6 : GETHOSTBYADDR; in __nscd_gethostbyaddr_r() 133 nscd_gethst_r (const char *key, size_t keylen, request_type type, in nscd_gethst_r() argument 203 if (type != GETHOSTBYADDR && type != GETHOSTBYNAME) in nscd_gethst_r() 217 sock = __nscd_open_socket (key, keylen, type, &hst_resp, in nscd_gethst_r() 258 + hst_resp.h_addr_list_cnt * (type == AF_INET in nscd_gethst_r() 278 if (type == GETHOSTBYADDR || type == GETHOSTBYNAME) in nscd_gethst_r() [all …]
|
A D | hstcache.c | 386 assert (req->type == GETHOSTBYNAME in cache_addhst() 387 || req->type == GETHOSTBYNAMEv6 in cache_addhst() 388 || req->type == GETHOSTBYADDR in cache_addhst() 413 if (type == GETHOSTBYNAME) in lookup() 416 if (type == GETHOSTBYNAMEv6) in lookup() 419 if (type == GETHOSTBYADDR) in lookup() 444 if (req->type == GETHOSTBYNAME || req->type == GETHOSTBYNAMEv6) in addhstbyX() 498 .type = GETHOSTBYNAME, in readdhstbyname() 520 .type = GETHOSTBYADDR, in readdhstbyaddr() 542 .type = GETHOSTBYNAMEv6, in readdhstbynamev6() [all …]
|
A D | nscd_helper.c | 167 open_socket (request_type type, const char *key, size_t keylen) in open_socket() argument 190 reqdata->req.type = type; in open_socket() 257 __nscd_get_mapping (request_type type, const char *key, in __nscd_get_mapping() argument 269 int sock = open_socket (type, key, keylen); in __nscd_get_mapping() 400 __nscd_get_map_ref (request_type type, const char *name, in __nscd_get_map_ref() argument 419 cur = __nscd_get_mapping (type, name, in __nscd_get_map_ref() 450 __nscd_cache_search (request_type type, const char *key, size_t keylen, in __nscd_cache_search() argument 479 if (type == here->type in __nscd_cache_search() 534 __nscd_open_socket (const char *key, size_t keylen, request_type type, in __nscd_open_socket() argument 545 int sock = open_socket (type, key, keylen); in __nscd_open_socket()
|
A D | servicescache.c | 143 (void) cache_add (req->type, &dataset->strdata, req->key_len, in cache_addserv() 299 (void) cache_add (req->type, key_copy, req->key_len, in cache_addserv() 318 lookup (int type, char *key, struct servent *resultbufp, char *buffer, in lookup() argument 331 if (type == GETSERVBYNAME) in lookup() 334 assert (type == GETSERVBYPORT); in lookup() 362 while (lookup (req->type, key, &resultbuf, in addservbyX() 398 .type = GETSERVBYNAME, in readdservbyname() 420 .type = GETSERVBYPORT, in readdservbyport()
|
A D | nscd-client.h | 83 request_type type; /* Service requested. */ member 286 request_type type:8; /* Which type of dataset. */ member 389 request_type type, void *response, 394 extern struct mapped_database *__nscd_get_mapping (request_type type, 399 extern struct mapped_database *__nscd_get_map_ref (request_type type, 433 extern struct datahead *__nscd_cache_search (request_type type,
|
A D | pwdcache.c | 155 (void) cache_add (req->type, key_copy, req->key_len, in cache_addpw() 322 if (req->type == GETPWBYUID) in cache_addpw() 341 if ((req->type == GETPWBYNAME || db->propagate) in cache_addpw() 347 if (req->type == GETPWBYNAME && db->propagate) in cache_addpw() 378 lookup (int type, union keytype key, struct passwd *resultbufp, char *buffer, in lookup() argument 381 if (type == GETPWBYNAME) in lookup() 411 while (lookup (req->type, key, &resultbuf, in addpwbyX() 451 .type = GETPWBYNAME, in readdpwbyname() 494 .type = GETPWBYUID, in readdpwbyuid()
|
A D | grpcache.c | 148 (void) cache_add (req->type, &dataset->strdata, req->key_len, in cache_addgr() 343 if (req->type == GETGRBYGID) in cache_addgr() 362 if ((req->type == GETGRBYNAME || db->propagate) in cache_addgr() 369 if (req->type == GETGRBYNAME && db->propagate) in cache_addgr() 400 lookup (int type, union keytype key, struct group *resultbufp, char *buffer, in lookup() argument 403 if (type == GETGRBYNAME) in lookup() 434 while (lookup (req->type, key, &resultbuf, in addgrbyX() 472 .type = GETGRBYNAME, in readdgrbyname() 515 .type = GETGRBYGID, in readdgrbygid()
|
A D | nscd_getpw_r.c | 38 static int nscd_getpw_r (const char *key, size_t keylen, request_type type, 82 nscd_getpw_r (const char *key, size_t keylen, request_type type, in nscd_getpw_r() argument 102 struct datahead *found = __nscd_cache_search (type, key, keylen, mapped, in nscd_getpw_r() 122 sock = __nscd_open_socket (key, keylen, type, &pw_resp, in nscd_getpw_r()
|
A D | nscd_getgr_r.c | 40 static int nscd_getgr_r (const char *key, size_t keylen, request_type type, 83 nscd_getgr_r (const char *key, size_t keylen, request_type type, in nscd_getgr_r() argument 107 struct datahead *found = __nscd_cache_search (type, key, keylen, mapped, in nscd_getgr_r() 133 sock = __nscd_open_socket (key, keylen, type, &gr_resp, in nscd_getgr_r()
|
A D | nscd_getserv_r.c | 33 request_type type, struct servent *resultbuf, 78 request_type type, struct servent *resultbuf, in nscd_getserv_r() argument 118 struct datahead *found = __nscd_cache_search (type, key, keylen, mapped, in nscd_getserv_r() 179 sock = __nscd_open_socket (key, keylen, type, &serv_resp, in nscd_getserv_r()
|
A D | connections.c | 410 if (here->type >= LASTREQ in verify_persistent_db() 411 || reqinfo[here->type].db != &dbs[dbnr]) in verify_persistent_db() 1096 if (req->type == GETHOSTBYADDR || req->type == GETHOSTBYADDRv6) in handle_request() 1100 dbg_log ("\t%s (%s)", serv2str[req->type], in handle_request() 1101 inet_ntop (req->type == GETHOSTBYADDR in handle_request() 1160 if (req->type == INVALIDATE) in handle_request() 1163 dbg_log ("\t%s", serv2str[req->type]); in handle_request() 1167 switch (req->type) in handle_request() 1253 if (req->type == GETSTAT) in handle_request() 1260 if (req->type == INVALIDATE) in handle_request() [all …]
|
A D | netgroupcache.c | 202 if (data.type == triple_val) in addgetnetgrentX() 433 (void) cache_add (req->type, key_copy, req->key_len, &dataset->head, in addgetnetgrentX() 490 .type = GETNETGRENT, in addinnetgrX() 593 (void) cache_add (req->type, key_copy, req->key_len, &dataset->head, in addinnetgrX() 636 .type = GETNETGRENT, in readdgetnetgrent() 658 .type = INNETGR, in readdinnetgr()
|
A D | nscd_proto.h | 61 extern int __nscd_gethostbyaddr_r (const void *addr, socklen_t len, int type,
|
A D | initgrcache.c | 232 (void) cache_add (req->type, key_copy, req->key_len, in addinitgroupsX() 399 .type = INITGROUPS, in readdinitgroups()
|
A D | cachedumper.c | 136 serv2str[here->type], key); in nscd_print_cache() 181 switch (here->type) in nscd_print_cache()
|
A D | nscd.c | 353 reqdata->req.type = INVALIDATE; in invalidate_db() 395 req.type = SHUTDOWN; in send_shutdown()
|
A D | aicache.c | 504 (void) cache_add (req->type, key_copy, req->key_len, &dataset->head, in addhstaiX() 535 .type = GETAI, in readdhstai()
|
A D | nscd.h | 280 extern int cache_add (int type, const void *key, size_t len,
|
A D | nscd_stat.c | 200 req.type = GETSTAT; in receive_print_stats()
|