From 74b95643d712b68733757c50589c8f192b22aab5 Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Sun, 10 Jul 2022 21:41:17 +0300 Subject: [PATCH] Revert "isisd: allow nexthop lookup on interface only" This reverts commit a11742dc53e31d1379cb4f7b9b7b750614e30928. --- isisd/isis_route.c | 10 ++-------- 1 file 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: -- 2.39.5