summaryrefslogtreecommitdiff
path: root/system.h
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.h
parentb3a698e7b6c099203dcb4227a21813948b176e3b (diff)
downloadnetifd-f6f065d3997ccc8d42805529e4aad59b789579ad.tar.gz
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.h')
-rw-r--r--system.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/system.h b/system.h
index 3bf6f97..9a2326b 100644
--- a/system.h
+++ b/system.h
@@ -135,6 +135,7 @@ int system_flush_routes(void);
bool system_resolve_rt_type(const char *type, unsigned int *id);
bool system_resolve_rt_table(const char *name, unsigned int *id);
bool system_is_default_rt_table(unsigned int id);
+bool system_resolve_rpfilter(const char *filter, unsigned int *id);
int system_del_ip_tunnel(const char *name, struct blob_attr *attr);
int system_add_ip_tunnel(const char *name, struct blob_attr *attr);