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 /net/decnet | |
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 'net/decnet')
-rw-r--r-- | net/decnet/dn_rules.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/decnet/dn_rules.c b/net/decnet/dn_rules.c index ffebea04cc99..0b5e2b97e15a 100644 --- a/net/decnet/dn_rules.c +++ b/net/decnet/dn_rules.c | |||
@@ -255,12 +255,12 @@ void __init dn_fib_rules_init(void) | |||
255 | { | 255 | { |
256 | BUG_ON(fib_default_rule_add(&dn_fib_rules_ops, 0x7fff, | 256 | BUG_ON(fib_default_rule_add(&dn_fib_rules_ops, 0x7fff, |
257 | RT_TABLE_MAIN, 0)); | 257 | RT_TABLE_MAIN, 0)); |
258 | fib_rules_register(&dn_fib_rules_ops); | 258 | fib_rules_register(&init_net, &dn_fib_rules_ops); |
259 | } | 259 | } |
260 | 260 | ||
261 | void __exit dn_fib_rules_cleanup(void) | 261 | void __exit dn_fib_rules_cleanup(void) |
262 | { | 262 | { |
263 | fib_rules_unregister(&dn_fib_rules_ops); | 263 | fib_rules_unregister(&init_net, &dn_fib_rules_ops); |
264 | } | 264 | } |
265 | 265 | ||
266 | 266 | ||