summaryrefslogtreecommitdiff
path: root/proto/ospf/config.Y
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2023-06-16 22:11:03 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2023-09-12 15:58:07 +0200
commit6f798683a34aa87f5e4f590be4c90253a1135e08 (patch)
tree5df63ea8e08f26d16f2a0b6ffbe722ad8e603195 /proto/ospf/config.Y
parent062ff656830f89bd3bca5b39a86c4d41b535a7bf (diff)
Conf: config warnings show the file position
Diffstat (limited to 'proto/ospf/config.Y')
-rw-r--r--proto/ospf/config.Y6
1 files changed, 3 insertions, 3 deletions
diff --git a/proto/ospf/config.Y b/proto/ospf/config.Y
index cfde3a5d..71d9d05b 100644
--- a/proto/ospf/config.Y
+++ b/proto/ospf/config.Y
@@ -38,10 +38,10 @@ ospf_iface_finish(void)
ip->passwords = get_passwords();
if (ospf_cfg_is_v2() && (ip->autype == OSPF_AUTH_CRYPT) && (ip->helloint < 5))
- log(L_WARN "Hello or poll interval less that 5 makes cryptographic authenication prone to replay attacks");
+ cf_warn("Hello or poll interval less that 5 makes cryptographic authenication prone to replay attacks");
if ((ip->autype == OSPF_AUTH_NONE) && (ip->passwords != NULL))
- log(L_WARN "Password option without authentication option does not make sense");
+ cf_warn("Password option without authentication option does not make sense");
if (ip->passwords)
{
@@ -119,7 +119,7 @@ ospf_proto_finish(void)
if (!ic->instance_id_set)
ic->instance_id = base;
else if (ic->instance_id >= 128)
- log(L_WARN "Instance ID %d from unassigned/private range", ic->instance_id);
+ cf_warn("Instance ID %d from unassigned/private range", ic->instance_id);
else if ((ic->instance_id < base) || (ic->instance_id >= (base + 32)))
cf_error("Instance ID %d invalid for given channel type", ic->instance_id);
}