summaryrefslogtreecommitdiffstats
path: root/proto/ospf
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-05-10 13:52:39 +0200
committerOndrej Filip <feela@network.cz>2000-05-10 13:52:39 +0200
commite8bd039da8de22de85bd135617b4a8ce9c979585 (patch)
treeea9de967cf537693fb416245b61ad1ff485143b8 /proto/ospf
parentbe3b6dc574c26ab3292fb2ceb94809242bea3d79 (diff)
downloadbird-e8bd039da8de22de85bd135617b4a8ce9c979585.tar
bird-e8bd039da8de22de85bd135617b4a8ce9c979585.zip
Bugfix in ip_addr endianity.
Diffstat (limited to 'proto/ospf')
-rw-r--r--proto/ospf/lsalib.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/proto/ospf/lsalib.c b/proto/ospf/lsalib.c
index 048f93c..b262b86 100644
--- a/proto/ospf/lsalib.c
+++ b/proto/ospf/lsalib.c
@@ -150,7 +150,8 @@ htonlsab(void *h, void *n, u8 type, u16 len)
(nt+i)->etos=(ht+i)->etos;
(nt+i)->padding=0;
(nt+i)->metric=htons((ht+i)->metric);
- (nt+i)->fwaddr=htonl((ht+i)->fwaddr);
+ (nt+i)->fwaddr=(ht+i)->fwaddr;
+ ipa_hton((nt+i)->fwaddr);
(nt+i)->tag=htonl((ht+i)->tag);
}
break;
@@ -244,7 +245,8 @@ ntohlsab(void *n, void *h, u8 type, u16 len)
(ht+i)->etos=(nt+i)->etos;
(ht+i)->padding=0;
(ht+i)->metric=ntohs((nt+i)->metric);
- (ht+i)->fwaddr=ntohl((nt+i)->fwaddr);
+ (ht+i)->fwaddr=(nt+i)->fwaddr;
+ ipa_ntoh((ht+i)->fwaddr);
(ht+i)->tag=ntohl((nt+i)->tag);
}
break;