mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-10 08:33:14 +00:00
[NETNS][IPV6] tcp6 - make proc per namespace
Make the proc for tcp6 to be per namespace. Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
0c96d8c50b
commit
6f8b13bcb3
5 changed files with 24 additions and 19 deletions
|
@ -2129,14 +2129,14 @@ static struct tcp_seq_afinfo tcp6_seq_afinfo = {
|
|||
.seq_fops = &tcp6_seq_fops,
|
||||
};
|
||||
|
||||
int __init tcp6_proc_init(void)
|
||||
int tcp6_proc_init(struct net *net)
|
||||
{
|
||||
return tcp_proc_register(&tcp6_seq_afinfo);
|
||||
return tcp_proc_register(net, &tcp6_seq_afinfo);
|
||||
}
|
||||
|
||||
void tcp6_proc_exit(void)
|
||||
void tcp6_proc_exit(struct net *net)
|
||||
{
|
||||
tcp_proc_unregister(&tcp6_seq_afinfo);
|
||||
tcp_proc_unregister(net, &tcp6_seq_afinfo);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue