summaryrefslogtreecommitdiffstats
path: root/ospfd
diff options
context:
space:
mode:
authorZhiyuan Wan <h@iloli.bid>2023-04-03 08:35:14 +0200
committerZhiyuan Wan <h@iloli.bid>2023-07-18 08:20:05 +0200
commit1960b6b967663e72a75d66a6eab275297f47693f (patch)
treefce8d1fa52015c367b4d3c20cccdaceda2e64594 /ospfd
parentospfd: Support show advertise router in 'show ip ospf route' command (diff)
downloadfrr-1960b6b967663e72a75d66a6eab275297f47693f.tar.xz
frr-1960b6b967663e72a75d66a6eab275297f47693f.zip
ospfd: Fix wrong advertise router calculation in transit network
The ospfd mistakenly copy advertise router from vertex->id, which may not be correct in an OSPF transit network. Signed-off-by: Zhiyuan Wan <h@iloli.bid>
Diffstat (limited to 'ospfd')
-rw-r--r--ospfd/ospf_route.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ospfd/ospf_route.c b/ospfd/ospf_route.c
index cdb1eb009..e32e06e7a 100644
--- a/ospfd/ospf_route.c
+++ b/ospfd/ospf_route.c
@@ -851,7 +851,7 @@ void ospf_route_copy_nexthops_from_vertex(struct ospf_area *area,
|| area->spf_dry_run) {
path = ospf_path_new();
path->nexthop = nexthop->router;
- path->adv_router = v->id;
+ path->adv_router = v->lsa->adv_router;
if (oi) {
path->ifindex = oi->ifp->ifindex;