ipv4: ipmr: various fixes and cleanups
authorEric Dumazet <edumazet@google.com>
Sun, 25 Nov 2012 06:41:45 +0000 (06:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 25 Nov 2012 21:34:16 +0000 (16:34 -0500)
1) ip_mroute_setsockopt() & ip_mroute_getsockopt() should not
   access/set raw_sk(sk)->ipmr_table before making sure the socket
   is a raw socket, and protocol is IGMP

2) MRT_INIT should return -EINVAL if optlen != sizeof(int), not
   -ENOPROTOOPT

3) MRT_ASSERT & MRT_PIM should validate optlen

4) " (v) ? 1 : 0 " can be written as " !!v "

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found
This page took 0.024366 seconds and 5 git commands to generate.