summaryrefslogtreecommitdiff
path: root/nhrpd
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2019-08-29 16:27:00 +0200
committerPhilippe Guibert <philippe.guibert@6wind.com>2021-11-23 09:02:23 +0100
commitc742573b67f9b1be953da8f67f417182e7e5dbcb (patch)
treeef43653783f7113fbcbdfeeadf9d3bae09f39aec /nhrpd
parent56cc2c987d323b97a2229d536fbc8ef88dd6bfc7 (diff)
lib: resolver per vrf support
add a parameter to resolver api that is the vrf identifier. this permits to make resolution self to each vrf. in case vrf netns backend is used, this is very practical, since resolution can happen on one netns, while it is not the case in an other one. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
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 597c125e17..3733910a63 100644
--- a/nhrpd/nhrp_nhs.c
+++ b/nhrpd/nhrp_nhs.c
@@ -324,8 +324,8 @@ static int nhrp_nhs_resolve(struct thread *t)
{
struct nhrp_nhs *nhs = THREAD_ARG(t);
- resolver_resolve(&nhs->dns_resolve, AF_INET, nhs->nbma_fqdn,
- nhrp_nhs_resolve_cb);
+ resolver_resolve(&nhs->dns_resolve, AF_INET, VRF_DEFAULT,
+ nhs->nbma_fqdn, nhrp_nhs_resolve_cb);
return 0;
}