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. --- nest/protocol.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nest/protocol.h') diff --git a/nest/protocol.h b/nest/protocol.h index cc1dd5ca..02fd8d96 100644 --- a/nest/protocol.h +++ b/nest/protocol.h @@ -93,6 +93,7 @@ struct proto_config { int class; /* SYM_PROTO or SYM_TEMPLATE */ u32 debug, mrtdump; /* Debugging bitfields, both use D_* constants */ unsigned preference, disabled; /* Generic parameters */ + int vrf_set; /* Related VRF instance (below) is defined */ int in_keep_filtered; /* Routes rejected in import filter are kept */ u32 router_id; /* Protocol specific router ID */ struct iface *vrf; /* Related VRF instance, NULL if global */ @@ -149,6 +150,7 @@ struct proto { unsigned preference; /* Default route preference */ byte accept_ra_types; /* Which types of route announcements are accepted (RA_OPTIMAL or RA_ANY) */ byte disabled; /* Manually disabled */ + byte vrf_set; /* Related VRF instance (above) is defined */ byte proto_state; /* Protocol state machine (PS_*, see below) */ byte core_state; /* Core state machine (FS_*, see below) */ byte export_state; /* Route export state (ES_*, see below) */ -- cgit v1.2.3