diff options
author | Denis V. Lunev <den@openvz.org> | 2008-01-20 19:46:01 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:08:13 -0500 |
commit | 035923833369e4da5d3c4ad0700bc7c367a0fa37 (patch) | |
tree | 2a7e3105e70a543ff2611ffbe7612b4c93ce3bd5 /net/ipv4 | |
parent | 853f4b505578ea3a1d9c2f5fb4ca58658ea15780 (diff) |
[FIB]: Add netns to fib_rules_ops.
The backward link from FIB rules operations to the network namespace
will allow to simplify the API a bit.
Signed-off-by: Denis V. Lunev <den@openvz.org>
Acked-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/fib_rules.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv4/fib_rules.c b/net/ipv4/fib_rules.c index 72232ab4ecb1..8d0ebe7f360d 100644 --- a/net/ipv4/fib_rules.c +++ b/net/ipv4/fib_rules.c | |||
@@ -315,6 +315,8 @@ int __net_init fib4_rules_init(struct net *net) | |||
315 | if (ops == NULL) | 315 | if (ops == NULL) |
316 | return -ENOMEM; | 316 | return -ENOMEM; |
317 | INIT_LIST_HEAD(&ops->rules_list); | 317 | INIT_LIST_HEAD(&ops->rules_list); |
318 | ops->fro_net = net; | ||
319 | |||
318 | fib_rules_register(net, ops); | 320 | fib_rules_register(net, ops); |
319 | 321 | ||
320 | err = fib_default_rules_init(ops); | 322 | err = fib_default_rules_init(ops); |