0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-23 02:01:55 +00:00

I forgot some endianity operations.

This commit is contained in:
Ondrej Filip 2000-06-08 02:04:45 +00:00
parent 423230f2f1
commit 59ba334296

View File

@ -93,8 +93,8 @@ ospf_hello_rx(struct ospf_hello_packet *ps, struct proto *p,
add_tail(&ifa->neigh_list, NODE n); add_tail(&ifa->neigh_list, NODE n);
n->rid=nrid; n->rid=nrid;
n->ip=faddr; n->ip=faddr;
n->dr=ntohl(ps->dr); n->dr=ipa_ntoh(ps->dr);
n->bdr=ntohl(ps->bdr); n->bdr=ipa_ntoh(ps->bdr);
n->priority=ps->priority; n->priority=ps->priority;
n->options=ps->options; n->options=ps->options;
n->ifa=ifa; n->ifa=ifa;
@ -141,9 +141,9 @@ ospf_hello_rx(struct ospf_hello_packet *ps, struct proto *p,
if(!twoway) ospf_neigh_sm(n, INM_1WAYREC); if(!twoway) ospf_neigh_sm(n, INM_1WAYREC);
olddr = n->dr; olddr = n->dr;
n->dr = ntohl(ps->dr); n->dr = ipa_ntoh(ps->dr);
oldbdr = n->bdr; oldbdr = n->bdr;
n->bdr = ntohl(ps->bdr); n->bdr = ipa_ntoh(ps->bdr);
oldpriority = n->priority; oldpriority = n->priority;
n->priority = ps->priority; n->priority = ps->priority;
@ -213,8 +213,8 @@ 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=htonl(ifa->drip); pkt->dr=ipa_hton(ifa->drip);
pkt->bdr=htonl(ifa->bdrip); pkt->bdr=ipa_hton(ifa->bdrip);
/* Fill all neighbors */ /* Fill all neighbors */
i=0; i=0;