aboutsummaryrefslogtreecommitdiff
path: root/contrib/ldns
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2014-05-15 20:41:16 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2014-05-15 20:41:16 +0000
commitdaf4c72f7e86eab7438875b747c269f558fb4349 (patch)
treeddf2cdc270e866251e2bf58f5875a63393a4dfde /contrib/ldns
parentd1073051907ce866a437b584e64d3450d8ce4067 (diff)
Notes
Diffstat (limited to 'contrib/ldns')
-rw-r--r--contrib/ldns/ldns/resolver.h6
-rw-r--r--contrib/ldns/resolver.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/contrib/ldns/ldns/resolver.h b/contrib/ldns/ldns/resolver.h
index 26d4f480b5fc..f3f1371a6e99 100644
--- a/contrib/ldns/ldns/resolver.h
+++ b/contrib/ldns/ldns/resolver.h
@@ -740,6 +740,12 @@ void ldns_resolver_deep_free(ldns_resolver *res);
ldns_rr* ldns_axfr_next(ldns_resolver *resolver);
/**
+ * Abort a transfer that is in progress
+ * \param[in] resolver the resolver that is used
+ */
+void ldns_axfr_abort(ldns_resolver *resolver);
+
+/**
* Returns true if the axfr transfer has completed (i.e. 2 SOA RRs and no errors were encountered
* \param[in] resolver the resolver that is used
* \return bool true if axfr transfer was completed without error
diff --git a/contrib/ldns/resolver.c b/contrib/ldns/resolver.c
index 447c0e38675f..16efc90f1a34 100644
--- a/contrib/ldns/resolver.c
+++ b/contrib/ldns/resolver.c
@@ -1372,7 +1372,7 @@ ldns_axfr_next(ldns_resolver *resolver)
* library staying in an indetermined state because the socket for the
* AXFR is never closed
*/
-static void
+void
ldns_axfr_abort(ldns_resolver *resolver)
{
/* Only abort if an actual AXFR is in progress */