diff options
author | Denis V. Lunev <den@openvz.org> | 2008-01-31 12:46:12 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-02-01 04:27:24 +0100 |
commit | 377cf82d66ea43f3d3cb82c2563e65b5c12c9bfd (patch) | |
tree | 9bce5ff5153b91104dcf560626a12289d013809e /net/ipv6/raw.c | |
parent | [IPCOMP]: Fix reception of incompressible packets (diff) | |
download | linux-377cf82d66ea43f3d3cb82c2563e65b5c12c9bfd.tar.xz linux-377cf82d66ea43f3d3cb82c2563e65b5c12c9bfd.zip |
[RAW]: Family check in the /proc/net/raw[6] is extra.
Different hashtables are used for IPv6 and IPv4 raw sockets, so no
need to check the socket family in the iterator over hashtables. Clean
this out.
Signed-off-by: Denis V. Lunev <den@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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c index d61c63dedbf6..a2cf49911ffd 100644 --- a/net/ipv6/raw.c +++ b/net/ipv6/raw.c @@ -1262,7 +1262,7 @@ static const struct seq_operations raw6_seq_ops = { static int raw6_seq_open(struct inode *inode, struct file *file) { - return raw_seq_open(inode, file, &raw_v6_hashinfo, PF_INET6); + return raw_seq_open(inode, file, &raw_v6_hashinfo); } static const struct file_operations raw6_seq_fops = { |