diff options
Diffstat (limited to 'zebra/zebra_rib.c')
| -rw-r--r-- | zebra/zebra_rib.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c index 7faf4c7e04..c1c1f897a1 100644 --- a/zebra/zebra_rib.c +++ b/zebra/zebra_rib.c @@ -471,16 +471,9 @@ nexthop_active (afi_t afi, struct rib *rib, struct nexthop *nexthop, int set, newhop = match->nexthop; if (newhop) { - if (nexthop->type == NEXTHOP_TYPE_IPV4) - { - nexthop->ifindex = newhop->ifindex; - nexthop->type = NEXTHOP_TYPE_IPV4; - } - if (nexthop->type == NEXTHOP_TYPE_IPV6) - { - nexthop->ifindex = newhop->ifindex; - nexthop->type = NEXTHOP_TYPE_IPV6_IFINDEX; - } + if (nexthop->type == NEXTHOP_TYPE_IPV4 || + nexthop->type == NEXTHOP_TYPE_IPV6) + nexthop->ifindex = newhop->ifindex; } return 1; } |
