From: Ondrej Filip Date: Wed, 12 Apr 2000 15:37:52 +0000 (+0000) Subject: LSack receiving bugfix. X-Git-Tag: v1.2.0~1177 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebff007f08965d83dba5840ee02171d09ac2598d;p=thirdparty%2Fbird.git LSack receiving bugfix. --- diff --git a/proto/ospf/lsack.c b/proto/ospf/lsack.c index 5f8297043..c5f6bed01 100644 --- a/proto/ospf/lsack.c +++ b/proto/ospf/lsack.c @@ -31,14 +31,16 @@ ospf_lsack_rx(struct ospf_lsack_packet *ps, struct proto *p, if((n=find_neigh(ifa, nrid))==NULL) { - debug("%s: Received lsack from unknown neigbor! (%u)\n", p->name, + debug("%s: Received lsack from unknown neigbor! (%I)\n", p->name, nrid); return ; } + + if(n->stateospf_packet.length)-sizeof(struct ospf_lsack_packet))/ sizeof(struct ospf_lsa_header); - DBG("Received %d lsa\n",nolsa); + DBG("Received %d lsa ack(s)\n",nolsa); plsa=( struct ospf_lsa_header *)(ps+1); for(i=0;irid); s_rem_node(SNODE en); ospf_hash_delete(n->lsrth,en); diff --git a/proto/ospf/packet.c b/proto/ospf/packet.c index 8cc308a06..cefc125e8 100644 --- a/proto/ospf/packet.c +++ b/proto/ospf/packet.c @@ -149,6 +149,7 @@ ospf_rx_hook(sock *sk, int size) break; case LSACK: DBG("%s: Link state ack received.\n", p->name); + ospf_lsack_rx((struct ospf_lsack_packet *)ps, p, ifa, size); break; default: log("%s: Bad packet received: wrong type %u", p->name, ps->type);