summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2022-07-10 21:41:17 +0300
committerDonatas Abraitis <donatas@opensourcerouting.org>2022-07-10 21:41:17 +0300
commit74b95643d712b68733757c50589c8f192b22aab5 (patch)
treeb0b73bf55e6e23ce4d6ae1bcd7d77e879a541160
parent1700ed6d52cc7e2d5ce461dbfbc521a610661317 (diff)
Revert "isisd: allow nexthop lookup on interface only"
This reverts commit a11742dc53e31d1379cb4f7b9b7b750614e30928.
-rw-r--r--isisd/isis_route.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/isisd/isis_route.c b/isisd/isis_route.c
index 0e7947dd46..a91ce7eeac 100644
--- a/isisd/isis_route.c
+++ b/isisd/isis_route.c
@@ -91,16 +91,10 @@ static struct isis_nexthop *nexthoplookup(struct list *nexthops, int family,
struct isis_nexthop *nh;
for (ALL_LIST_ELEMENTS_RO(nexthops, node, nh)) {
- if (nh->ifindex != ifindex)
- continue;
-
- /* if the IP is unspecified, return the first nexthop found on
- * the interface */
- if (!ip)
- return nh;
-
if (nh->family != family)
continue;
+ if (nh->ifindex != ifindex)
+ continue;
switch (family) {
case AF_INET: