From a7d388d23e26bdc94aefc3788b6be6c278f6dc5b Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Mon, 9 Aug 1999 18:59:37 +0000 Subject: Multiple "hton problems" fixed. Now we're in EXSTART state. --- proto/ospf/ospf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/proto/ospf/ospf.c b/proto/ospf/ospf.c index fce8bd5..ba01a38 100644 --- a/proto/ospf/ospf.c +++ b/proto/ospf/ospf.c @@ -649,15 +649,15 @@ hello_timer_hook(timer *timer) pkt->options=ifa->options; pkt->priority=ifa->priority; pkt->deadint=htonl(ifa->deadc*ifa->helloint); - pkt->dr=ifa->drid; - pkt->bdr=ifa->bdrid; + pkt->dr=htonl(ifa->drid); + pkt->bdr=htonl(ifa->bdrid); /* Fill all neighbors */ i=0; pp=(u32 *)(((byte *)pkt)+sizeof(struct ospf_hello_packet)); WALK_LIST (neigh, ifa->neigh_list) { - *(pp+i)=neigh->rid; + *(pp+i)=htonl(neigh->rid); i++; } -- cgit v1.2.3