summaryrefslogtreecommitdiff
path: root/nest/iface.c
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2019-08-01 00:53:22 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2019-08-01 00:53:22 +0200
commitda8644d7d99a0f693037d244f456164568abc68c (patch)
treec4ead657616263981f7fcbbb98424eb842343b5f /nest/iface.c
parentd72d3891bf262b28cd4d03fd72e88bf37fef112a (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/iface.c')
-rw-r--r--nest/iface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nest/iface.c b/nest/iface.c
index 1ef16185..55677803 100644
--- a/nest/iface.c
+++ b/nest/iface.c
@@ -140,7 +140,7 @@ if_copy(struct iface *to, struct iface *from)
static inline void
ifa_send_notify(struct proto *p, unsigned c, struct ifa *a)
{
- if (p->ifa_notify && (!p->vrf || p->vrf == a->iface->master))
+ if (p->ifa_notify && (!p->vrf_set || p->vrf == a->iface->master))
{
if (p->debug & D_IFACES)
log(L_TRACE "%s <%s address %I/%d on interface %s %s",
@@ -177,7 +177,7 @@ ifa_notify_change(unsigned c, struct ifa *a)
static inline void
if_send_notify(struct proto *p, unsigned c, struct iface *i)
{
- if (p->if_notify && (!p->vrf || p->vrf == i->master))
+ if (p->if_notify && (!p->vrf_set || p->vrf == i->master))
{
if (p->debug & D_IFACES)
log(L_TRACE "%s < interface %s %s", p->name, i->name,