mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
Bug in LSA origination.
This commit is contained in:
parent
dc2548d2cc
commit
ac272c0067
@ -98,7 +98,7 @@ originate_rt_lsa_body(struct ospf_area *oa, u16 *length, struct proto_ospf *p)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case OSPF_IT_BCAST: /*FIXME Go on */
|
case OSPF_IT_BCAST:
|
||||||
case OSPF_IT_NBMA:
|
case OSPF_IT_NBMA:
|
||||||
if(ifa->state==OSPF_IS_WAITING)
|
if(ifa->state==OSPF_IS_WAITING)
|
||||||
{
|
{
|
||||||
@ -120,8 +120,8 @@ originate_rt_lsa_body(struct ospf_area *oa, u16 *length, struct proto_ospf *p)
|
|||||||
if(((ifa->state==OSPF_IS_DR) && (j==1)) || (k==1))
|
if(((ifa->state==OSPF_IS_DR) && (j==1)) || (k==1))
|
||||||
{
|
{
|
||||||
ln->type=LSART_NET;
|
ln->type=LSART_NET;
|
||||||
ln->id=ifa->drid;
|
ln->id=ipa_to_u32(ifa->drip);
|
||||||
ln->data=ipa_to_u32(ifa->drip);
|
ln->data=ipa_to_u32(ifa->iface->addr->ip);
|
||||||
ln->metric=ifa->cost;
|
ln->metric=ifa->cost;
|
||||||
ln->notos=0;
|
ln->notos=0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user