ipv6: Check IPV6_MULTICAST_LOOP option value.
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Wed, 11 Jun 2008 18:14:51 +0000 (03:14 +0900)
committerYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Thu, 12 Jun 2008 00:19:09 +0000 (09:19 +0900)
commit28d4488216645cd71402925cffde9528b0cfdb7e
treec382b026e6c480827f0c539e3d2dcf3943389347
parente8766fc86b34d44a8c55a2f9d71da69e091b1ca4
ipv6: Check IPV6_MULTICAST_LOOP option value.

Only 0 and 1 are valid for IPV6_MULTICAST_LOOP socket option,
and we should return an error of EINVAL otherwise, per RFC3493.

Based on patch from Shan Wei <shanwei@cn.fujitsu.com>.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
net/ipv6/ipv6_sockglue.c