Lines Matching refs:rc

388     struct rsrr_cache *rc, **rcnp;  in rsrr_cache()  local
394 while ((rc = *rcnp) != NULL) { in rsrr_cache()
395 if ((rc->route_query.source_addr.s_addr == in rsrr_cache()
397 (rc->route_query.dest_addr.s_addr == in rsrr_cache()
399 (!strcmp(rc->client_addr.sun_path,client_addr.sun_path))) { in rsrr_cache()
405 *rcnp = rc->next; in rsrr_cache()
406 free(rc); in rsrr_cache()
409 rc->route_query.query_id = route_query->query_id; in rsrr_cache()
412 rc->route_query.query_id, rc->client_addr.sun_path); in rsrr_cache()
416 rcnp = &rc->next; in rsrr_cache()
422 rc = malloc(sizeof(struct rsrr_cache)); in rsrr_cache()
423 if (rc == NULL) in rsrr_cache()
425 rc->route_query.source_addr.s_addr = route_query->source_addr.s_addr; in rsrr_cache()
426 rc->route_query.dest_addr.s_addr = route_query->dest_addr.s_addr; in rsrr_cache()
427 rc->route_query.query_id = route_query->query_id; in rsrr_cache()
428 strlcpy(rc->client_addr.sun_path, client_addr.sun_path, in rsrr_cache()
429 sizeof rc->client_addr.sun_path); in rsrr_cache()
430 rc->client_length = client_length; in rsrr_cache()
431 rc->next = gt->gt_rsrr_cache; in rsrr_cache()
432 gt->gt_rsrr_cache = rc; in rsrr_cache()
434 rc->route_query.query_id,rc->client_addr.sun_path); in rsrr_cache()
443 struct rsrr_cache *rc, **rcnp; in rsrr_cache_send() local
450 while ((rc = *rcnp) != NULL) { in rsrr_cache_send()
451 if (rsrr_accept_rq(&rc->route_query,flags,gt) < 0) { in rsrr_cache_send()
453 rc->route_query.query_id,rc->client_addr.sun_path); in rsrr_cache_send()
455 *rcnp = rc->next; in rsrr_cache_send()
456 free(rc); in rsrr_cache_send()
458 rcnp = &rc->next; in rsrr_cache_send()
467 struct rsrr_cache *rc,*rc_next; in rsrr_cache_clean() local
470 rc = gt->gt_rsrr_cache; in rsrr_cache_clean()
471 while (rc) { in rsrr_cache_clean()
472 rc_next = rc->next; in rsrr_cache_clean()
473 free(rc); in rsrr_cache_clean()
474 rc = rc_next; in rsrr_cache_clean()