diff options
author | Denis V. Lunev <den@openvz.org> | 2008-01-10 06:17:29 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:01:21 -0500 |
commit | f8c26b8d589867aed8251db2935f8aa03aa68717 (patch) | |
tree | a96938be9494e60365d10c652cb3e7c9d3dcee18 /include | |
parent | 41a76906b3225997036efd88cbaae69d60b1e947 (diff) |
[NETNS]: Add netns parameter to fib_rules_(un)register.
The patch extends the different fib rules API in order to pass the
network namespace pointer. That will allow to access the different
tables from a namespace relative object. As usual, the pointer to the
init_net variable is passed as parameter so we don't break the
network.
Acked-by: Benjamin Thery <benjamin.thery@bull.net>
Acked-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/fib_rules.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/fib_rules.h b/include/net/fib_rules.h index 2364db1a47e6..f7351b0ad552 100644 --- a/include/net/fib_rules.h +++ b/include/net/fib_rules.h | |||
@@ -101,8 +101,8 @@ static inline u32 frh_get_table(struct fib_rule_hdr *frh, struct nlattr **nla) | |||
101 | return frh->table; | 101 | return frh->table; |
102 | } | 102 | } |
103 | 103 | ||
104 | extern int fib_rules_register(struct fib_rules_ops *); | 104 | extern int fib_rules_register(struct net *, struct fib_rules_ops *); |
105 | extern int fib_rules_unregister(struct fib_rules_ops *); | 105 | extern int fib_rules_unregister(struct net *, struct fib_rules_ops *); |
106 | extern void fib_rules_cleanup_ops(struct fib_rules_ops *); | 106 | extern void fib_rules_cleanup_ops(struct fib_rules_ops *); |
107 | 107 | ||
108 | extern int fib_rules_lookup(struct fib_rules_ops *, | 108 | extern int fib_rules_lookup(struct fib_rules_ops *, |