diff options
author | Thomas Graf <tgraf@suug.ch> | 2007-03-26 17:37:59 -0700 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-25 22:28:13 -0700 |
commit | 2b44368307cd06c5614d7b53801f516c0654020b (patch) | |
tree | a766c892dd0fc5a0266c25102eda1106b79fd14c /include/linux/fib_rules.h | |
parent | 0947c9fe56d9cf7ad0bc3a03ccd30446cde698e4 (diff) | |
download | blackbird-op-linux-2b44368307cd06c5614d7b53801f516c0654020b.tar.gz blackbird-op-linux-2b44368307cd06c5614d7b53801f516c0654020b.zip |
[NET] fib_rules: Mark rules detached from the device
Rules which match against device names in their selector can
remain while the device itself disappears, in fact the device
doesn't have to present when the rule is added in the first
place. The device name is resolved by trying when the rule is
added and later by listening to NETDEV_REGISTER/UNREGISTER
notifications.
This patch adds the flag FIB_RULE_DEV_DETACHED which is set
towards userspace when a rule contains a device match which
is unresolved at the moment. This eases spotting the reason
why certain rules seem not to function properly.
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/fib_rules.h')
-rw-r--r-- | include/linux/fib_rules.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/fib_rules.h b/include/linux/fib_rules.h index ec9c7b1d3e91..c151273293e2 100644 --- a/include/linux/fib_rules.h +++ b/include/linux/fib_rules.h @@ -8,6 +8,7 @@ #define FIB_RULE_PERMANENT 1 #define FIB_RULE_INVERT 2 #define FIB_RULE_UNRESOLVED 4 +#define FIB_RULE_DEV_DETACHED 8 struct fib_rule_hdr { |