summaryrefslogtreecommitdiffstats
path: root/proto/ospf/lsalib.c
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-04-30 13:31:05 +0200
committerOndrej Filip <feela@network.cz>2000-04-30 13:31:05 +0200
commitc6c56264361e102691fe42134ab585f631f83898 (patch)
tree6636ad67900ebf8e5c21c4be5c023e2e0df7e7ca /proto/ospf/lsalib.c
parente80e9d0da5d737b7f6e65358067f62a6ac85f4fe (diff)
downloadbird-c6c56264361e102691fe42134ab585f631f83898.tar
bird-c6c56264361e102691fe42134ab585f631f83898.zip
Sync with nest's rt table and some minor improvements.
Diffstat (limited to 'proto/ospf/lsalib.c')
-rw-r--r--proto/ospf/lsalib.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/proto/ospf/lsalib.c b/proto/ospf/lsalib.c
index aa7e1f9..9ad5684 100644
--- a/proto/ospf/lsalib.c
+++ b/proto/ospf/lsalib.c
@@ -87,7 +87,7 @@ htonlsab(void *h, void *n, u8 type, u16 len)
hs=h;
ns=n;
- ns->netmask=htonl(hs->netmask);
+ ns->netmask=ipa_hton(hs->netmask);
hn=(struct ospf_lsa_summ_net *)(hs+1);
nn=(struct ospf_lsa_summ_net *)(ns+1);
@@ -109,7 +109,7 @@ htonlsab(void *h, void *n, u8 type, u16 len)
he=h;
ne=n;
- ne->netmask=htonl(he->netmask);
+ ne->netmask=ipa_hton(he->netmask);
ht=(struct ospf_lsa_ext_tos *)(he+1);
nt=(struct ospf_lsa_ext_tos *)(ne+1);
@@ -181,7 +181,7 @@ ntohlsab(void *n, void *h, u8 type, u16 len)
hs=h;
ns=n;
- hs->netmask=ntohl(ns->netmask);
+ hs->netmask=ipa_ntoh(ns->netmask);
hn=(struct ospf_lsa_summ_net *)(hs+1);
nn=(struct ospf_lsa_summ_net *)(ns+1);
@@ -203,7 +203,7 @@ ntohlsab(void *n, void *h, u8 type, u16 len)
he=h;
ne=n;
- he->netmask=ntohl(ne->netmask);
+ he->netmask=ipa_ntoh(ne->netmask);
ht=(struct ospf_lsa_ext_tos *)(he+1);
nt=(struct ospf_lsa_ext_tos *)(ne+1);