From 8a70a13e7e79afa6818b10cf64d4f1ae4cf89e4b Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Fri, 11 Dec 2009 01:20:53 +0100 Subject: Implements protocol-specific Router ID for OSPF. And fixes one minor bug. --- proto/ospf/rt.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'proto/ospf/rt.c') diff --git a/proto/ospf/rt.c b/proto/ospf/rt.c index dde6dcd..60e48cf 100644 --- a/proto/ospf/rt.c +++ b/proto/ospf/rt.c @@ -534,10 +534,9 @@ ospf_rt_sum_tr(struct ospf_area *oa) if (en->dist == LSINFINITY) continue; - if (en->lsa.rt == p->cf->global->router_id) + if (en->lsa.rt == po->router_id) continue; - if (en->lsa.type == LSA_T_SUM_NET) { #ifdef OSPFv2 @@ -630,7 +629,7 @@ ospf_rt_sum(struct ospf_area *oa) continue; /* Page 169 (2) */ - if (en->lsa.rt == p->cf->global->router_id) + if (en->lsa.rt == po->router_id) continue; @@ -826,7 +825,7 @@ ospf_ext_spf(struct proto_ospf *po) continue; /* 16.4. (2) */ - if (en->lsa.rt == p->cf->global->router_id) + if (en->lsa.rt == po->router_id) continue; DBG("%s: Working on LSA. ID: %R, RT: %R, Type: %u\n", -- cgit v1.2.3