]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ipv6: Fail with appropriate error code when setting not-applicable sockopt.
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Wed, 11 Jun 2008 18:27:26 +0000 (03:27 +0900)
committerYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Thu, 12 Jun 2008 00:19:09 +0000 (09:19 +0900)
commit1717699cd5130009b7cd6756e883d8582c1fe706
tree884f77b16c05578522eb4d8ad8d585eb008df60d
parent28d4488216645cd71402925cffde9528b0cfdb7e
ipv6: Fail with appropriate error code when setting not-applicable sockopt.

IPV6_MULTICAST_HOPS, for example, is not valid for stream sockets.
Since they are virtually unavailable for stream sockets,
we should return ENOPROTOOPT instead of EINVAL.

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