diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-07-28 14:47:24 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-07-28 14:47:24 -0700 |
commit | 06a03f7d3324ae101f702a5ba44aba48d8fe4ec1 (patch) | |
tree | 37135b18c30533acc8ba6971f59b95702112539d | |
parent | 3131d8144c77495573b8e462d89945d88f3b4896 (diff) | |
download | quagga-06a03f7d3324ae101f702a5ba44aba48d8fe4ec1.tar.bz2 quagga-06a03f7d3324ae101f702a5ba44aba48d8fe4ec1.tar.xz |
Revert "Only set ifindex on set pass"
This reverts commit 09523599d75b0161bbfff62bde436e4782a5864e.
-rw-r--r-- | zebra/zebra_rib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c index 145005d3..73f9e069 100644 --- a/zebra/zebra_rib.c +++ b/zebra/zebra_rib.c @@ -437,7 +437,7 @@ nexthop_active_ipv4 (struct rib *rib, struct nexthop *nexthop, int set, return 0; /* dead route */ /* recursive route, remember index */ - if (set && nexthop->type == NEXTHOP_TYPE_IPV4) + if (nexthop->type == NEXTHOP_TYPE_IPV4) nexthop->ifindex = newhop->ifindex; if (nexthop_isactive (newhop)) @@ -556,7 +556,7 @@ nexthop_active_ipv6 (struct rib *rib, struct nexthop *nexthop, int set, return 0; /* dead route */ /* recursive route, remember index */ - if (set && nexthop->type == NEXTHOP_TYPE_IPV6) + if (nexthop->type == NEXTHOP_TYPE_IPV6) nexthop->ifindex = newhop->ifindex; if (nexthop_isactive (newhop)) |