From: Ondrej Filip Date: Wed, 19 May 2004 12:30:58 +0000 (+0000) Subject: Bug in DBDES receiving fixed. X-Git-Tag: v1.2.0~414 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=caeb02ea19b8b3b04bc9705d5270954bfc21cab6;p=thirdparty%2Fbird.git Bug in DBDES receiving fixed. --- diff --git a/proto/ospf/dbdes.c b/proto/ospf/dbdes.c index 45241c3d7..03e010e29 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;