[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>
This commit is contained in:
parent
b1641064a3
commit
377cf82d66
3 changed files with 6 additions and 12 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue