Re: [PATCH] IPv6: Fix the return value of ipv6_getsockopt

2007-12-16 Thread David Miller
From: Wei Yongjun [EMAIL PROTECTED] Date: Thu, 13 Dec 2007 14:44:00 +0900 If CONFIG_NETFILTER if not selected when compile the kernel source code, ipv6_getsockopt will returen an EINVAL error if optname is not supported by the kernel. But if CONFIG_NETFILTER is selected, ENOPROTOOPT error

[PATCH] IPv6: Fix the return value of ipv6_getsockopt

2007-12-12 Thread Wei Yongjun
If CONFIG_NETFILTER if not selected when compile the kernel source code, ipv6_getsockopt will returen an EINVAL error if optname is not supported by the kernel. But if CONFIG_NETFILTER is selected, ENOPROTOOPT error will be return. This patch fix to always return ENOPROTOOPT error if optname