summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2011-10-01 09:57:49 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2011-10-01 09:57:49 +0200
commit35c875f0d1eb7c72e0b0ab8a90eb32cbcbfdac02 (patch)
treeba00b4551644680d90071130e609edaf74cf11f8
parent736fd7303cb05e910507edaa9310178a23dbcf1e (diff)
downloadbird-35c875f0d1eb7c72e0b0ab8a90eb32cbcbfdac02.tar
bird-35c875f0d1eb7c72e0b0ab8a90eb32cbcbfdac02.zip
Fixes some error messages and the NSSA gw lookup.
Thanks to Alexander V. Chernikov for the patch.
-rw-r--r--proto/ospf/topology.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/proto/ospf/topology.c b/proto/ospf/topology.c
index 0b41d1e..8203e4c 100644
--- a/proto/ospf/topology.c
+++ b/proto/ospf/topology.c
@@ -786,7 +786,7 @@ originate_sum_net_lsa(struct ospf_area *oa, struct fib_node *fn, int metric)
{
if (check_sum_net_lsaid_collision(fn, en))
{
- log(L_ERR, "%s: LSAID collision for %I/%d",
+ log(L_ERR "%s: LSAID collision for %I/%d",
p->name, fn->prefix, fn->pxlen);
return;
}
@@ -864,7 +864,7 @@ flush_sum_lsa(struct ospf_area *oa, struct fib_node *fn, int type)
{
if ((type == ORT_NET) && check_sum_net_lsaid_collision(fn, en))
{
- log(L_ERR, "%s: LSAID collision for %I/%d",
+ log(L_ERR "%s: LSAID collision for %I/%d",
p->name, fn->prefix, fn->pxlen);
return;
}
@@ -1004,7 +1004,6 @@ find_surrogate_fwaddr(struct ospf_area *oa)
WALK_LIST(ifa, po->iface_list)
{
if ((ifa->oa != oa) ||
- (ifa->state == OSPF_IS_DOWN) ||
(ifa->type == OSPF_IT_VLINK))
continue;
@@ -1091,7 +1090,7 @@ originate_ext_lsa(struct ospf_area *oa, struct fib_node *fn, int src,
fwaddr = find_surrogate_fwaddr(oa);
if (ipa_zero(fwaddr))
{
- log(L_ERR, "%s: Cannot find forwarding address for NSSA-LSA %I/%d",
+ log(L_ERR "%s: Cannot find forwarding address for NSSA-LSA %I/%d",
p->name, fn->prefix, fn->pxlen);
return;
}
@@ -1102,7 +1101,7 @@ originate_ext_lsa(struct ospf_area *oa, struct fib_node *fn, int src,
int rv = check_ext_lsa(en, fn, metric, fwaddr, tag);
if (rv < 0)
{
- log(L_ERR, "%s: LSAID collision for %I/%d",
+ log(L_ERR "%s: LSAID collision for %I/%d",
p->name, fn->prefix, fn->pxlen);
return;
}
@@ -1150,7 +1149,7 @@ flush_ext_lsa(struct ospf_area *oa, struct fib_node *fn)
{
if (check_ext_lsa(en, fn, 0, IPA_NONE, 0) < 0)
{
- log(L_ERR, "%s: LSAID collision for %I/%d",
+ log(L_ERR "%s: LSAID collision for %I/%d",
p->name, fn->prefix, fn->pxlen);
return;
}