Lines Matching defs:query_source
237 peer->query_source = NULL;
301 if (p->query_source != NULL)
302 isc_mem_put(mem, p->query_source, sizeof(*p->query_source));
709 dns_peer_setquerysource(dns_peer_t *peer, const isc_sockaddr_t *query_source) {
712 if (peer->query_source != NULL) {
713 isc_mem_put(peer->mem, peer->query_source,
714 sizeof(*peer->query_source));
715 peer->query_source = NULL;
717 if (query_source != NULL) {
718 peer->query_source = isc_mem_get(peer->mem,
719 sizeof(*peer->query_source));
720 if (peer->query_source == NULL)
723 *peer->query_source = *query_source;
729 dns_peer_getquerysource(dns_peer_t *peer, isc_sockaddr_t *query_source) {
731 REQUIRE(query_source != NULL);
733 if (peer->query_source == NULL)
735 *query_source = *peer->query_source;