Deleted Added
full compact
subnetmod.c (356345) subnetmod.c (361435)
1/*
2 * edns-subnet/subnetmod.c - edns subnet module. Must be called before validator
3 * and iterator.
4 *
5 * Copyright (c) 2013, NLnet Labs. All rights reserved.
6 *
7 * This software is open source.
8 *

--- 417 unchanged lines hidden (view full) ---

426 node = addrtree_find(tree, (addrkey_t*)ecs->subnet_addr,
427 ecs->subnet_source_mask, *env->now);
428 if (!node) { /* plain old cache miss */
429 lock_rw_unlock(&e->lock);
430 return 0;
431 }
432
433 qstate->return_msg = tomsg(NULL, &qstate->qinfo,
1/*
2 * edns-subnet/subnetmod.c - edns subnet module. Must be called before validator
3 * and iterator.
4 *
5 * Copyright (c) 2013, NLnet Labs. All rights reserved.
6 *
7 * This software is open source.
8 *

--- 417 unchanged lines hidden (view full) ---

426 node = addrtree_find(tree, (addrkey_t*)ecs->subnet_addr,
427 ecs->subnet_source_mask, *env->now);
428 if (!node) { /* plain old cache miss */
429 lock_rw_unlock(&e->lock);
430 return 0;
431 }
432
433 qstate->return_msg = tomsg(NULL, &qstate->qinfo,
434 (struct reply_info *)node->elem, qstate->region, *env->now,
434 (struct reply_info *)node->elem, qstate->region, *env->now, 0,
435 env->scratch);
436 scope = (uint8_t)node->scope;
437 lock_rw_unlock(&e->lock);
438
439 if (!qstate->return_msg) { /* Failed allocation or expired TTL */
440 return 0;
441 }
442

--- 424 unchanged lines hidden ---
435 env->scratch);
436 scope = (uint8_t)node->scope;
437 lock_rw_unlock(&e->lock);
438
439 if (!qstate->return_msg) { /* Failed allocation or expired TTL */
440 return 0;
441 }
442

--- 424 unchanged lines hidden ---