From 77a1c4e05ca5a7d7bf07456758f7c934ee867884 Mon Sep 17 00:00:00 2001 From: Joakim Tjernlund Date: Sun, 1 Feb 2009 11:12:11 +0100 Subject: [ospfd] compare ifIndex too when matching paths ospf_path_lookup(), ospf_route_match_same() and ospf_ase_route_match_same() needs to compare if the interface matches too. --- ospfd/ospf_ase.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ospfd/ospf_ase.c') diff --git a/ospfd/ospf_ase.c b/ospfd/ospf_ase.c index 3eb29f8a..044f97c6 100644 --- a/ospfd/ospf_ase.c +++ b/ospfd/ospf_ase.c @@ -593,6 +593,8 @@ ospf_ase_route_match_same (struct route_table *rt, struct prefix *prefix, if (! IPV4_ADDR_SAME (&op->nexthop, &newop->nexthop)) return 0; + if (op->oi->ifp->ifindex != newop->oi->ifp->ifindex) + return 0; } return 1; } -- cgit v1.2.1