diff options
author | Ondrej Filip <feela@network.cz> | 1999-08-09 20:59:37 +0200 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 1999-08-09 20:59:37 +0200 |
commit | a7d388d23e26bdc94aefc3788b6be6c278f6dc5b (patch) | |
tree | 108328a475bb8b337e217d729641f17a2c47de6d | |
parent | 2be22ddb4cf4c7a88a0c424f0de7c968e5c326a1 (diff) | |
download | bird-a7d388d23e26bdc94aefc3788b6be6c278f6dc5b.tar bird-a7d388d23e26bdc94aefc3788b6be6c278f6dc5b.zip |
Multiple "hton problems" fixed. Now we're in EXSTART state.
-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 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++; } |