Very stuping bug. (I took me 4 hours to find it!)
I just wrote "=!" instead of "!=". :-(((((((
This commit is contained in:
parent
2983460bc0
commit
d27d0efe17
1 changed files with 1 additions and 1 deletions
|
@ -357,7 +357,7 @@ lsa_comp(struct ospf_lsa_header *l1, struct ospf_lsa_header *l2)
|
|||
if(sn1>sn2) return CMP_NEWER;
|
||||
if(sn1<sn2) return CMP_OLDER;
|
||||
|
||||
if(l1->checksum=!l2->checksum)
|
||||
if(l1->checksum!=l2->checksum)
|
||||
return l1->checksum<l2->checksum ? CMP_OLDER : CMP_NEWER;
|
||||
|
||||
if((l1->age==LSA_MAXAGE)&&(l2->age!=LSA_MAXAGE)) return CMP_NEWER;
|
||||
|
|
Loading…
Reference in a new issue