summaryrefslogtreecommitdiff
path: root/proto/ospf/topology.c
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-03-31 01:40:12 +0000
committerOndrej Filip <feela@network.cz>2000-03-31 01:40:12 +0000
commit65e55e9cca38828980123ea64fe203d799a20810 (patch)
treebed7889ad901e8b47f73c6eb9ef48c7352864dd6 /proto/ospf/topology.c
parent9f940976d10e6295f78adf4afb1868a7ed6cac73 (diff)
Checksum changes. Bug is still NOT fixed. :-(
Diffstat (limited to 'proto/ospf/topology.c')
-rw-r--r--proto/ospf/topology.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/proto/ospf/topology.c b/proto/ospf/topology.c
index 808fc7b4..12eff1e8 100644
--- a/proto/ospf/topology.c
+++ b/proto/ospf/topology.c
@@ -190,14 +190,13 @@ addifa_rtlsa(struct ospf_iface *ifa)
oa->rt->lsa_body=NULL;
lsa->age=0;
lsa->sn=LSA_INITSEQNO; /* FIXME Check it latter */
- lsa->checksum=0;
- lsa->checksum=ipsum_calculate(lsa,sizeof(struct ospf_lsa_header),NULL);
ifa->oa=oa;
DBG("%s: New OSPF area \"%d\" added.\n", po->proto.name, ifa->an);
}
oa->rt->lsa.length=make_rt_lsa(oa, po)+sizeof(struct ospf_lsa_header);
- /*FIXME seq no++ */
+ 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);
/*FIXME lsa_flood(oa->rt) */
}