diff options
| author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-09-12 20:47:18 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-12 20:47:18 +0300 |
| commit | 0f64a435db8c92b578408b9aab9de29e0b15b4dd (patch) | |
| tree | 710f5de3b6d3ed26d8e4d0441f3c0e4f2c321641 /lib/nexthop.c | |
| parent | 3e2321b88c4d2ff1f3dadfcc1b6cfd8d5e785f87 (diff) | |
| parent | 0789eb69e5b4b1d0b9040cea79cd047ce77b9406 (diff) | |
Merge pull request #9475 from iqras23/change1
bgpd: VRF-Lite fix nexthop type
Diffstat (limited to 'lib/nexthop.c')
| -rw-r--r-- | lib/nexthop.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/nexthop.c b/lib/nexthop.c index 23e3a2b733..98409c76c5 100644 --- a/lib/nexthop.c +++ b/lib/nexthop.c @@ -519,12 +519,13 @@ struct nexthop *nexthop_from_ipv6_ifindex(const struct in6_addr *ipv6, return nexthop; } -struct nexthop *nexthop_from_blackhole(enum blackhole_type bh_type) +struct nexthop *nexthop_from_blackhole(enum blackhole_type bh_type, + vrf_id_t nh_vrf_id) { struct nexthop *nexthop; nexthop = nexthop_new(); - nexthop->vrf_id = VRF_DEFAULT; + nexthop->vrf_id = nh_vrf_id; nexthop->type = NEXTHOP_TYPE_BLACKHOLE; nexthop->bh_type = bh_type; |
