diff options
author | Ondrej Filip <feela@network.cz> | 1999-08-09 18:59:37 +0000 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 1999-08-09 18:59:37 +0000 |
commit | a7d388d23e26bdc94aefc3788b6be6c278f6dc5b (patch) | |
tree | 108328a475bb8b337e217d729641f17a2c47de6d /proto/ospf | |
parent | 2be22ddb4cf4c7a88a0c424f0de7c968e5c326a1 (diff) |
Multiple "hton problems" fixed. Now we're in EXSTART state.
Diffstat (limited to 'proto/ospf')
-rw-r--r-- | proto/ospf/ospf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/proto/ospf/ospf.c b/proto/ospf/ospf.c index fce8bd5b..ba01a380 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++; } |