Lines Matching refs:rc
405 struct rsrr_cache *rc, **rcnp;
411 while ((rc = *rcnp) != NULL) {
412 if ((rc->route_query.source_addr.s_addr ==
414 (rc->route_query.dest_addr.s_addr ==
416 (!strcmp(rc->client_addr.sun_path,client_addr.sun_path))) {
422 *rcnp = rc->next;
423 free(rc);
426 rc->route_query.query_id = route_query->query_id;
429 rc->route_query.query_id, rc->client_addr.sun_path);
433 rcnp = &rc->next;
439 rc = (struct rsrr_cache *) malloc(sizeof(struct rsrr_cache));
440 if (rc == NULL)
442 rc->route_query.source_addr.s_addr = route_query->source_addr.s_addr;
443 rc->route_query.dest_addr.s_addr = route_query->dest_addr.s_addr;
444 rc->route_query.query_id = route_query->query_id;
445 strlcpy(rc->client_addr.sun_path, client_addr.sun_path,
446 sizeof(rc->client_addr.sun_path));
447 rc->client_length = client_length;
448 rc->next = gt->gt_rsrr_cache;
449 gt->gt_rsrr_cache = rc;
451 rc->route_query.query_id,rc->client_addr.sun_path);
462 struct rsrr_cache *rc, **rcnp;
469 while ((rc = *rcnp) != NULL) {
470 if (rsrr_accept_rq(&rc->route_query,flags,gt) < 0) {
472 rc->route_query.query_id,rc->client_addr.sun_path);
474 *rcnp = rc->next;
475 free(rc);
477 rcnp = &rc->next;
487 struct rsrr_cache *rc,*rc_next;
491 rc = gt->gt_rsrr_cache;
492 while (rc) {
493 rc_next = rc->next;
494 free(rc);
495 rc = rc_next;