diff options
author | Ondrej Filip <feela@network.cz> | 2000-04-02 19:04:23 +0000 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2000-04-02 19:04:23 +0000 |
commit | db9fb727699a6244afcff28dcc2320a3e66ee269 (patch) | |
tree | f81683841124581decd4229a5f00018f26a5cf2c /proto/ospf/dbdes.c | |
parent | 10be74da202b20a7d502724ef8e7a9787b7eba0a (diff) |
lsa_cmp moved into lsalib.c
Diffstat (limited to 'proto/ospf/dbdes.c')
-rw-r--r-- | proto/ospf/dbdes.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/proto/ospf/dbdes.c b/proto/ospf/dbdes.c index 3a8a9a13..ee2f96f9 100644 --- a/proto/ospf/dbdes.c +++ b/proto/ospf/dbdes.c @@ -168,26 +168,6 @@ rxmt_timer_hook(timer *timer) } } -int -lsa_comp(struct ospf_lsa_header *l1, struct ospf_lsa_header *l2) - /* - * 1 l1 is newer - * 0 identical - * -1 l2 is newer - */ -{ - if(l1->sn<l2->sn) return 1; - if(l1->sn==l2->sn) - { - if(l1->checksum=!l2->checksum) return l1->checksum<l2->checksum ? -1 :1; - if(l1->age==MAXAGE) return 1; - if(l2->age==MAXAGE) return -1; - if(abs(l1->age-l2->age)>MAXAGEDIFF) return l1->age<l2->age ? 1 : -1; - } - return 0; - -} - void ospf_dbdes_reqladd(struct ospf_dbdes_packet *ps, struct proto *p, struct ospf_neighbor *n) @@ -296,8 +276,6 @@ ospf_dbdes_rx(struct ospf_dbdes_packet *ps, struct proto *p, break; } } - //break; /* I should probably continue processing packet */ - case NEIGHBOR_EXCHANGE: if((ps->imms.byte==n->imms.byte) && (ps->options=n->options) && (ntohl(ps->ddseq)==n->ddr)) |