aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/raw.c
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@openvz.org>2008-01-14 08:35:57 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:02:06 -0500
commitf51d599fbecf4881a36466f0355da6b0b346ea70 (patch)
tree46cd843dd44f1b74bb69f1a2b207260e468ae1be /net/ipv6/raw.c
parentbe185884b31093555dc10aa32efe0b73c835312e (diff)
[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.c4
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 = {
1259 1259
1260static int raw6_seq_open(struct inode *inode, struct file *file) 1260static int raw6_seq_open(struct inode *inode, struct file *file)
1261{ 1261{
1262 return raw_seq_open(file, &raw_v6_hashinfo, PF_INET6); 1262 return raw_seq_open(inode, file, &raw_v6_hashinfo, PF_INET6);
1263} 1263}
1264 1264
1265static const struct file_operations raw6_seq_fops = { 1265static const struct file_operations raw6_seq_fops = {
@@ -1267,7 +1267,7 @@ static const struct file_operations raw6_seq_fops = {
1267 .open = raw6_seq_open, 1267 .open = raw6_seq_open,
1268 .read = seq_read, 1268 .read = seq_read,
1269 .llseek = seq_lseek, 1269 .llseek = seq_lseek,
1270 .release = seq_release_private, 1270 .release = seq_release_net,
1271}; 1271};
1272 1272
1273int __init raw6_proc_init(void) 1273int __init raw6_proc_init(void)