summaryrefslogtreecommitdiffhomepage
path: root/system-dummy.c
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2014-11-13 15:57:58 +0000
committerSteven Barth <steven@midlink.org>2014-11-19 09:30:28 +0100
commitf6f065d3997ccc8d42805529e4aad59b789579ad (patch)
tree2bbd1f2d4c4c594888c69f956a90f16d31d37413 /system-dummy.c
parentb3a698e7b6c099203dcb4227a21813948b176e3b (diff)
netifd: Add rpfilter config support
Reverse path filtering config support; possible values are: 0: no source validation 1|strict: strict mode as packet will be dropped if the incoming interface is not the best reverse path 2|loose: loose mode as packet will be dropped if the source address is not reachable via any interface Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'system-dummy.c')
-rw-r--r--system-dummy.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/system-dummy.c b/system-dummy.c
index 7d54315..76c6ffa 100644
--- a/system-dummy.c
+++ b/system-dummy.c
@@ -209,6 +209,12 @@ bool system_is_default_rt_table(unsigned int id)
return true;
}
+bool system_resolve_rpfilter(const char *filter, unsigned int *id)
+{
+ *id = 0;
+ return true;
+}
+
int system_add_iprule(struct iprule *rule)
{
return 0;