summaryrefslogtreecommitdiffstats
path: root/nhrpd
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2019-12-11 13:33:36 +0100
committerDavid Lamparter <equinox@diac24.net>2019-12-11 13:33:36 +0100
commit3286ca0750dc837d5e3e0d1a38aef64ea93c70a5 (patch)
treeee643a572b7c20c56b2f2e218b48c3ff0c3a9d17 /nhrpd
parentbgpd/bmp: actually print uptime (diff)
downloadfrr-3286ca0750dc837d5e3e0d1a38aef64ea93c70a5.tar.xz
frr-3286ca0750dc837d5e3e0d1a38aef64ea93c70a5.zip
lib,nhrpd,bgpd/bmp: pass resolver failure details
To keep the calling code agnostic of the DNS resolver libary used, pass a strerror-style string instead of a status code that would need extra handling. Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'nhrpd')
-rw-r--r--nhrpd/nhrp_nhs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nhrpd/nhrp_nhs.c b/nhrpd/nhrp_nhs.c
index 360972c32..bec6c014a 100644
--- a/nhrpd/nhrp_nhs.c
+++ b/nhrpd/nhrp_nhs.c
@@ -238,8 +238,8 @@ nhrp_reg_by_nbma(struct nhrp_nhs *nhs, const union sockunion *nbma_addr)
return NULL;
}
-static void nhrp_nhs_resolve_cb(struct resolver_query *q, int n,
- union sockunion *addrs)
+static void nhrp_nhs_resolve_cb(struct resolver_query *q, const char *errstr,
+ int n, union sockunion *addrs)
{
struct nhrp_nhs *nhs = container_of(q, struct nhrp_nhs, dns_resolve);
struct nhrp_interface *nifp = nhs->ifp->info;