mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Multiple "hton problems" fixed. Now we're in EXSTART state.
This commit is contained in:
@@ -649,15 +649,15 @@ hello_timer_hook(timer *timer)
|
|||||||
pkt->options=ifa->options;
|
pkt->options=ifa->options;
|
||||||
pkt->priority=ifa->priority;
|
pkt->priority=ifa->priority;
|
||||||
pkt->deadint=htonl(ifa->deadc*ifa->helloint);
|
pkt->deadint=htonl(ifa->deadc*ifa->helloint);
|
||||||
pkt->dr=ifa->drid;
|
pkt->dr=htonl(ifa->drid);
|
||||||
pkt->bdr=ifa->bdrid;
|
pkt->bdr=htonl(ifa->bdrid);
|
||||||
|
|
||||||
/* Fill all neighbors */
|
/* Fill all neighbors */
|
||||||
i=0;
|
i=0;
|
||||||
pp=(u32 *)(((byte *)pkt)+sizeof(struct ospf_hello_packet));
|
pp=(u32 *)(((byte *)pkt)+sizeof(struct ospf_hello_packet));
|
||||||
WALK_LIST (neigh, ifa->neigh_list)
|
WALK_LIST (neigh, ifa->neigh_list)
|
||||||
{
|
{
|
||||||
*(pp+i)=neigh->rid;
|
*(pp+i)=htonl(neigh->rid);
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user