diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2015-04-26 11:23:26 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2015-04-26 11:23:26 +0000 |
commit | d3348d437fb0408bc24892ebd0b035686c294705 (patch) | |
tree | 01c1d94467622a175fad10cd34a2f6f05d32c1b7 /iterator/iter_utils.h | |
parent | 54dd3272da3f4a5fda7dd6ac359b7cf68e21a796 (diff) |
Diffstat (limited to 'iterator/iter_utils.h')
-rw-r--r-- | iterator/iter_utils.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/iterator/iter_utils.h b/iterator/iter_utils.h index d7c2b68afa2d6..9373487e002c9 100644 --- a/iterator/iter_utils.h +++ b/iterator/iter_utils.h @@ -223,6 +223,15 @@ int iter_msg_from_zone(struct dns_msg* msg, struct delegpt* dp, int reply_equal(struct reply_info* p, struct reply_info* q, struct regional* region); /** + * Remove unused bits from the reply if possible. + * So that caps-for-id (0x20) fallback is more likely to be successful. + * This removes like, the additional section, and NS record in the authority + * section if those records are gratuitous (not for a referral). + * @param rep: the reply to strip stuff out of. + */ +void caps_strip_reply(struct reply_info* rep); + +/** * Store parent-side rrset in seperate rrset cache entries for later * last-resort * lookups in case the child-side versions of this information * fails. |