diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2009-12-11 01:20:53 +0100 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2009-12-11 11:06:51 +0100 |
commit | 8a70a13e7e79afa6818b10cf64d4f1ae4cf89e4b (patch) | |
tree | c674a054dd38aebc945a7a53c6f61539d70a01fc /proto/ospf/rt.c | |
parent | be2d38b7e977c1f72ed9cd52f8e3e85130c0aaa1 (diff) |
Implements protocol-specific Router ID for OSPF.
And fixes one minor bug.
Diffstat (limited to 'proto/ospf/rt.c')
-rw-r--r-- | proto/ospf/rt.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/proto/ospf/rt.c b/proto/ospf/rt.c index dde6dcd5..60e48cf8 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", |