diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2019-08-01 00:53:22 +0200 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2019-08-01 00:53:22 +0200 |
commit | da8644d7d99a0f693037d244f456164568abc68c (patch) | |
tree | c4ead657616263981f7fcbbb98424eb842343b5f /nest/neighbor.c | |
parent | d72d3891bf262b28cd4d03fd72e88bf37fef112a (diff) |
Nest: VRF of protocol can be explicitly specified as 'default'
Protocol can have specified VRF, in such case it is restricted to a set
of ifaces associated with the VRF, otherwise it can use all interfaces.
The patch allows to specify VRF as 'default', in which case it is
restricted to a set of iface not associated with any VRF.
Diffstat (limited to 'nest/neighbor.c')
-rw-r--r-- | nest/neighbor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nest/neighbor.c b/nest/neighbor.c index f8159d35..1362ae26 100644 --- a/nest/neighbor.c +++ b/nest/neighbor.c @@ -153,7 +153,7 @@ neigh_find2(struct proto *p, ip_addr *a, struct iface *ifa, unsigned flags) } else WALK_LIST(i, iface_list) - if ((!p->vrf || p->vrf == i->master) && + if ((!p->vrf_set || p->vrf == i->master) && ((scope = if_connected(a, i, &addr)) >= 0)) { ifa = i; |