diff options
author | Ondrej Filip <feela@network.cz> | 2004-05-19 14:30:58 +0200 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2004-05-19 14:30:58 +0200 |
commit | caeb02ea19b8b3b04bc9705d5270954bfc21cab6 (patch) | |
tree | 906210740e235e057abdcdb86d656350054124d2 /proto/ospf/dbdes.c | |
parent | 502ded521508a402910b2bf8f23f2e34f79f91cb (diff) | |
download | bird-caeb02ea19b8b3b04bc9705d5270954bfc21cab6.tar bird-caeb02ea19b8b3b04bc9705d5270954bfc21cab6.zip |
Bug in DBDES receiving fixed.
Diffstat (limited to 'proto/ospf/dbdes.c')
-rw-r--r-- | proto/ospf/dbdes.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/proto/ospf/dbdes.c b/proto/ospf/dbdes.c index 45241c3..03e010e 100644 --- a/proto/ospf/dbdes.c +++ b/proto/ospf/dbdes.c @@ -209,7 +209,6 @@ ospf_dbdes_rx(struct ospf_dbdes_packet *ps, struct proto *p, { u32 nrid, myrid; struct ospf_neighbor *n; - u8 i; nrid=ntohl(((struct ospf_packet *)ps)->routerid); @@ -356,7 +355,7 @@ ospf_dbdes_rx(struct ospf_dbdes_packet *ps, struct proto *p, case NEIGHBOR_LOADING: case NEIGHBOR_FULL: if((ps->imms.byte==n->imms.byte) && (ps->options==n->options) && - (ps->ddseq==n->dds)) /* Only duplicate are accepted */ + (ntohl(ps->ddseq)==n->ddr)) /* Only duplicate are accepted */ { OSPF_TRACE(D_PACKETS, "Received duplicate dbdes from %I.",n->ip); return; |