diff options
author | Maria Matejka <mq@ucw.cz> | 2021-11-15 10:53:58 +0100 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2023-01-25 13:33:31 +0100 |
commit | 4334f86251429eb39bfe81ff19496d141fccef84 (patch) | |
tree | 2dce6e1833748b9b165ece7776afbcbb3fc7ddc3 /proto/bgp | |
parent | 72230d3ca37d34cafa0442c23f83121ae1fc41be (diff) |
VRF setting reduced to one argument, using default dummy iface for default vrf
Diffstat (limited to 'proto/bgp')
-rw-r--r-- | proto/bgp/packets.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/proto/bgp/packets.c b/proto/bgp/packets.c index 16818cf3..6244b62f 100644 --- a/proto/bgp/packets.c +++ b/proto/bgp/packets.c @@ -1130,7 +1130,7 @@ bgp_use_next_hop(struct bgp_export_state *s, eattr *a) return 0; /* Do not pass NEXT_HOP between different VRFs */ - if (p->p.vrf_set && s->src && s->src->p.vrf_set && (p->p.vrf != s->src->p.vrf)) + if (p->p.vrf && s->src && s->src->p.vrf && (p->p.vrf != s->src->p.vrf)) return 0; /* Keep it when exported to internal peers */ @@ -1163,7 +1163,7 @@ bgp_use_gateway(struct bgp_export_state *s) return 0; /* Do not use gateway from different VRF */ - if (p->p.vrf_set && ra->nh.iface && (p->p.vrf != ra->nh.iface->master)) + if (p->p.vrf && ra->nh.iface && (p->p.vrf != ra->nh.iface->master)) return 0; /* Use it when exported to internal peers */ |