mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
Bugfix - nasty bug in router LSA origination - Router did not describe all interfaces.
This commit is contained in:
parent
621ccdfe5a
commit
12dd8dc877
@ -94,8 +94,11 @@ originate_rt_lsa_body(struct ospf_area *oa, u16 * length)
|
||||
ln->data = 0xffffffff;
|
||||
}
|
||||
else
|
||||
{
|
||||
ln--;
|
||||
i--; /* No link added */
|
||||
}
|
||||
}
|
||||
break;
|
||||
case OSPF_IT_BCAST:
|
||||
case OSPF_IT_NBMA:
|
||||
@ -146,10 +149,19 @@ originate_rt_lsa_body(struct ospf_area *oa, u16 * length)
|
||||
rt->veb.bit.v = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
ln--;
|
||||
i--; /* No link added */
|
||||
}
|
||||
break;
|
||||
default:
|
||||
ln--;
|
||||
i--; /* No link added */
|
||||
log("Unknown interface type");
|
||||
break;
|
||||
}
|
||||
}
|
||||
ln++;
|
||||
}
|
||||
rt->links = i;
|
||||
*length = i * sizeof(struct ospf_lsa_rt_link) + sizeof(struct ospf_lsa_rt) +
|
||||
|
Loading…
Reference in New Issue
Block a user