summaryrefslogtreecommitdiffhomepage
path: root/device.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 /device.h
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 'device.h')
-rw-r--r--device.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/device.h b/device.h
index adf72c5..0af65be 100644
--- a/device.h
+++ b/device.h
@@ -33,6 +33,7 @@ enum {
DEV_ATTR_ENABLED,
DEV_ATTR_IPV6,
DEV_ATTR_PROMISC,
+ DEV_ATTR_RPFILTER,
__DEV_ATTR_MAX,
};
@@ -66,6 +67,7 @@ enum {
DEV_OPT_TXQUEUELEN = (1 << 2),
DEV_OPT_IPV6 = (1 << 3),
DEV_OPT_PROMISC = (1 << 4),
+ DEV_OPT_RPFILTER = (1 << 5),
};
/* events broadcasted to all users of a device */
@@ -113,6 +115,7 @@ struct device_settings {
uint8_t macaddr[6];
bool ipv6;
bool promisc;
+ unsigned int rpfilter;
};
/*