From da8644d7d99a0f693037d244f456164568abc68c Mon Sep 17 00:00:00 2001 From: "Ondrej Zajicek (work)" Date: Thu, 1 Aug 2019 00:53:22 +0200 Subject: 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. --- proto/bfd/bfd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'proto/bfd/bfd.c') diff --git a/proto/bfd/bfd.c b/proto/bfd/bfd.c index c9f1a7e5..3af8a2be 100644 --- a/proto/bfd/bfd.c +++ b/proto/bfd/bfd.c @@ -624,7 +624,7 @@ bfd_request_notify(struct bfd_request *req, u8 state, u8 diag) static int bfd_add_request(struct bfd_proto *p, struct bfd_request *req) { - if (p->p.vrf && (p->p.vrf != req->vrf)) + if (p->p.vrf_set && (p->p.vrf != req->vrf)) return 0; struct bfd_session *s = bfd_find_session_by_addr(p, req->addr); -- cgit v1.2.3