Checksum changes. Bug is still NOT fixed. :-(
This commit is contained in:
parent
9f940976d1
commit
65e55e9cca
1 changed files with 2 additions and 3 deletions
|
@ -190,14 +190,13 @@ addifa_rtlsa(struct ospf_iface *ifa)
|
||||||
oa->rt->lsa_body=NULL;
|
oa->rt->lsa_body=NULL;
|
||||||
lsa->age=0;
|
lsa->age=0;
|
||||||
lsa->sn=LSA_INITSEQNO; /* FIXME Check it latter */
|
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;
|
ifa->oa=oa;
|
||||||
DBG("%s: New OSPF area \"%d\" added.\n", po->proto.name, ifa->an);
|
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);
|
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) */
|
/*FIXME lsa_flood(oa->rt) */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue