summaryrefslogtreecommitdiffstats
path: root/proto/ospf/lsreq.c
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-03-30 22:00:42 +0200
committerOndrej Filip <feela@network.cz>2000-03-30 22:00:42 +0200
commitde769e24c01ff0c4aa573d9b4cec833dcae182d2 (patch)
tree2e930b785fecbe391e2ed53d67e8cc8e6c6cd243 /proto/ospf/lsreq.c
parent95eb1dba3ffe810bd876546ca4580af3bccdf181 (diff)
downloadbird-de769e24c01ff0c4aa573d9b4cec833dcae182d2.tar
bird-de769e24c01ff0c4aa573d9b4cec833dcae182d2.zip
Skeleton structures and files added.
Diffstat (limited to 'proto/ospf/lsreq.c')
-rw-r--r--proto/ospf/lsreq.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/proto/ospf/lsreq.c b/proto/ospf/lsreq.c
index 5aa59f5..91bc988 100644
--- a/proto/ospf/lsreq.c
+++ b/proto/ospf/lsreq.c
@@ -86,7 +86,7 @@ ospf_lsreq_rx(struct ospf_lsreq_packet *ps, struct proto *p,
if((n=find_neigh(ifa, nrid))==NULL)
{
- debug("%s: Received dbdes from unknown neigbor! (%u)\n", p->name,
+ debug("%s: Received lsreq from unknown neigbor! (%u)\n", p->name,
nrid);
return ;
}
@@ -99,8 +99,12 @@ ospf_lsreq_rx(struct ospf_lsreq_packet *ps, struct proto *p,
{
DBG("Processing LSA: ID=%u, Type=%u, Router=%u\n", lsh->id, lsh->type,
lsh->rt);
+ if(ospf_hash_find(n->ifa->oa->gr, lsh->id, lsh->rt, lsh->type)==NULL)
+ {
+ ospf_neigh_sm(n,INM_BADLSREQ);
+ return;
+ }
/* FIXME Go on */
}
-
}