patch-2.1.27 linux/net/ipv6/ipv6_sockglue.c
Next file: linux/net/ipv6/mcast.c
Previous file: linux/net/ipv6/datagram.c
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
Fri Feb 21 14:58:40 1997
- Orig file:
v2.1.26/linux/net/ipv6/ipv6_sockglue.c
- Orig date:
Mon Jan 13 22:16:49 1997
diff -u --recursive --new-file v2.1.26/linux/net/ipv6/ipv6_sockglue.c linux/net/ipv6/ipv6_sockglue.c
@@ -13,6 +13,12 @@
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version.
+ *
+ * FIXME: Make the setsockopt code POSIX compliant: That is
+ *
+ * o Return -EINVAL for setsockopt of short lengths
+ * o Truncate getsockopt returns
+ * o Return an optlen of the truncated length if need be
*/
#include <linux/errno.h>
@@ -67,7 +73,7 @@
{
struct ipv6_pinfo *np = &sk->net_pinfo.af_inet6;
int val, err;
- int retv = -EOPNOTSUPP;
+ int retv = -ENOPROTOOPT;
if(level!=SOL_IPV6)
goto out;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov