1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Implements protocol-specific Router ID for OSPF.

And fixes one minor bug.
This commit is contained in:
Ondrej Zajicek
2009-12-11 01:20:53 +01:00
parent be2d38b7e9
commit 8a70a13e7e
10 changed files with 48 additions and 59 deletions

View File

@@ -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",