mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[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 <[email protected]> Acked-by: Daniel Lezcano <[email protected]> Signed-off-by: Denis V. Lunev <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
41a76906b3
commit
f8c26b8d58
5 changed files with 9 additions and 9 deletions
|
|
@ -255,12 +255,12 @@ void __init dn_fib_rules_init(void)
|
|||
{
|
||||
BUG_ON(fib_default_rule_add(&dn_fib_rules_ops, 0x7fff,
|
||||
RT_TABLE_MAIN, 0));
|
||||
fib_rules_register(&dn_fib_rules_ops);
|
||||
fib_rules_register(&init_net, &dn_fib_rules_ops);
|
||||
}
|
||||
|
||||
void __exit dn_fib_rules_cleanup(void)
|
||||
{
|
||||
fib_rules_unregister(&dn_fib_rules_ops);
|
||||
fib_rules_unregister(&init_net, &dn_fib_rules_ops);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue