diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2014-11-13 15:57:58 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2014-11-19 09:30:28 +0100 |
commit | f6f065d3997ccc8d42805529e4aad59b789579ad (patch) | |
tree | 2bbd1f2d4c4c594888c69f956a90f16d31d37413 /system.h | |
parent | b3a698e7b6c099203dcb4227a21813948b176e3b (diff) | |
download | netifd-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |