[NET]: Fix IP_ADD/DROP_MEMBERSHIP to handle only connectionless
authorFlavio Leitner <fleitner@redhat.com>
Sat, 25 Aug 2007 05:16:39 +0000 (22:16 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 27 Aug 2007 01:35:35 +0000 (18:35 -0700)
commita96fb49be3dd2031f722bf32af6ed7db965b60f7
tree3c02106c65a3013990007d9bdf2708616bc9ba6e
parent36d98d3edce12c8f9ffd33f8f5d23ce728380925
[NET]: Fix IP_ADD/DROP_MEMBERSHIP to handle only connectionless

Fix IP[V6]_ADD_MEMBERSHIP and IP[V6]_DROP_MEMBERSHIP to
return -EPROTO for connection oriented sockets.

Signed-off-by: Flavio Leitner <fleitner@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_sockglue.c
net/ipv6/ipv6_sockglue.c