diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2008-01-14 14:35:57 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-29 00:02:06 +0100 |
commit | f51d599fbecf4881a36466f0355da6b0b346ea70 (patch) | |
tree | 46cd843dd44f1b74bb69f1a2b207260e468ae1be /net/ipv6/raw.c | |
parent | [NETNS][RAW]: Make ipv[46] raw sockets lookup namespaces aware. (diff) | |
download | linux-f51d599fbecf4881a36466f0355da6b0b346ea70.tar.xz linux-f51d599fbecf4881a36466f0355da6b0b346ea70.zip |
[NETNS][RAW]: Make /proc/net/raw(6) show per-namespace socket list.
Pull the struct net pointer up to the showing functions
to filter the sockets depending on their namespaces.
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/raw.c')
-rw-r--r-- | net/ipv6/raw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c index 6f20086064b2..026fa910cb70 100644 --- a/net/ipv6/raw.c +++ b/net/ipv6/raw.c @@ -1259,7 +1259,7 @@ static const struct seq_operations raw6_seq_ops = { static int raw6_seq_open(struct inode *inode, struct file *file) { - return raw_seq_open(file, &raw_v6_hashinfo, PF_INET6); + return raw_seq_open(inode, file, &raw_v6_hashinfo, PF_INET6); } static const struct file_operations raw6_seq_fops = { @@ -1267,7 +1267,7 @@ static const struct file_operations raw6_seq_fops = { .open = raw6_seq_open, .read = seq_read, .llseek = seq_lseek, - .release = seq_release_private, + .release = seq_release_net, }; int __init raw6_proc_init(void) |