From ebff007f08965d83dba5840ee02171d09ac2598d Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Wed, 12 Apr 2000 15:37:52 +0000 Subject: LSack receiving bugfix. --- proto/ospf/lsack.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'proto/ospf/lsack.c') diff --git a/proto/ospf/lsack.c b/proto/ospf/lsack.c index 5f829704..c5f6bed0 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); -- cgit v1.2.3