summaryrefslogtreecommitdiffstats
path: root/proto/ospf/topology.c
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-04-01 04:45:49 +0200
committerOndrej Filip <feela@network.cz>2000-04-01 04:45:49 +0200
commit499cb346f6fb29f9157e12942484c8b4362597c3 (patch)
tree90032d28f0f772e47b2e69703fe27ae876647a46 /proto/ospf/topology.c
parentac4b4683aee8e5aa566b0b5f99bd940bc10d9b71 (diff)
downloadbird-499cb346f6fb29f9157e12942484c8b4362597c3.tar
bird-499cb346f6fb29f9157e12942484c8b4362597c3.zip
LSA checksum works. But it's very uneficient on little endian systems.
Diffstat (limited to 'proto/ospf/topology.c')
-rw-r--r--proto/ospf/topology.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/proto/ospf/topology.c b/proto/ospf/topology.c
index f32476d..66a1553 100644
--- a/proto/ospf/topology.c
+++ b/proto/ospf/topology.c
@@ -195,7 +195,8 @@ addifa_rtlsa(struct ospf_iface *ifa)
}
oa->rt->lsa.length=make_rt_lsa(oa, po)+sizeof(struct ospf_lsa_header);
oa->rt->lsa.checksum=0;
- oa->rt->lsa.checksum=ipsum_calculate(&(oa->rt->lsa.options),sizeof(struct ospf_lsa_header)-2,oa->rt->lsa_body,oa->rt->lsa.length-sizeof(struct ospf_lsa_header),NULL);
+ /*oa->rt->lsa.checksum=ipsum_calculate(&(oa->rt->lsa.options),sizeof(struct ospf_lsa_header)-2,oa->rt->lsa_body,oa->rt->lsa.length-sizeof(struct ospf_lsa_header),NULL);*/
+ lsasum_calculate(&(oa->rt->lsa),oa->rt->lsa_body,po);
/*FIXME lsa_flood(oa->rt) */
}