aboutsummaryrefslogtreecommitdiffstats
path: root/sysdep
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2018-01-16 16:20:01 +0100
committerOndrej Zajicek (work) <santiago@crfreenet.org>2018-01-16 16:20:01 +0100
commitb94057911554e04df9b709f8354e2e220131096a (patch)
tree411495bfa60fccc6b685346f3fb6543ab54fed2f /sysdep
parent0ff86d054efa8005c5df943acf6d2122781d3175 (diff)
downloadbird-b94057911554e04df9b709f8354e2e220131096a.tar.gz
Filter: Allow silent filter execution
A filter should log messages only if executed explicitly (e.g., during route export or route import). When a filter is executed for technical reasons (e.g., to establish whether a route was exported before), it should run silently.
Diffstat (limited to 'sysdep')
-rw-r--r--sysdep/unix/krt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdep/unix/krt.c b/sysdep/unix/krt.c
index 07a55c0d..526c0cab 100644
--- a/sysdep/unix/krt.c
+++ b/sysdep/unix/krt.c
@@ -632,7 +632,7 @@ krt_export_net(struct krt_proto *p, net *net, rte **rt_free, ea_list **tmpa)
if (filter == FILTER_ACCEPT)
goto accept;
- if (f_run(filter, &rt, tmpa, krt_filter_lp, FF_FORCE_TMPATTR) > F_ACCEPT)
+ if (f_run(filter, &rt, tmpa, krt_filter_lp, FF_FORCE_TMPATTR | FF_SILENT) > F_ACCEPT)
goto reject;