summaryrefslogtreecommitdiff
path: root/proto
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-05-17 00:28:45 +0000
committerOndrej Filip <feela@network.cz>2000-05-17 00:28:45 +0000
commit4ee2178935b1f4cdd465e290c13f6580901cec8d (patch)
tree34375ae418888924369a5471ea9dd7483709749a /proto
parent7f6b3cf247c0df8d10e9ed29a5ff6a6af5e1cf8f (diff)
Don't die, if you receive strange LSA.
Diffstat (limited to 'proto')
-rw-r--r--proto/ospf/rt.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/proto/ospf/rt.c b/proto/ospf/rt.c
index 477f23fc..c8b5b47e 100644
--- a/proto/ospf/rt.c
+++ b/proto/ospf/rt.c
@@ -293,8 +293,9 @@ ospf_ext_spfa(struct proto_ospf *po) /* FIXME looking into inter-area */
mlen=ipa_mklen(le->netmask);
if((mlen<0)||(mlen>32))
{
- die("Invalid length of prefix! ID: %I, RT: %I, Type: %u, mask %I",
- en->lsa.id,en->lsa.rt,en->lsa.type,le->netmask);
+ log("%s: Invalid mask in LSA.\nID: %I, RT: %I, Type: %u, Mask %I",
+ p->proto,en->lsa.id,en->lsa.rt,en->lsa.type,le->netmask);
+ continue;
}
nf=NULL;