patch-2.1.68 linux/net/ipv6/af_inet6.c

Next file: linux/net/ipv6/icmp.c
Previous file: linux/net/ipv6/addrconf.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.67/linux/net/ipv6/af_inet6.c linux/net/ipv6/af_inet6.c
@@ -7,7 +7,7 @@
  *
  *	Adapted from linux/net/ipv4/af_inet.c
  *
- *	$Id: af_inet6.c,v 1.21 1997/08/20 11:25:00 alan Exp $
+ *	$Id: af_inet6.c,v 1.23 1997/10/29 20:27:52 kuznet Exp $
  *
  *	This program is free software; you can redistribute it and/or
  *      modify it under the terms of the GNU General Public License
@@ -44,7 +44,7 @@
 #include <net/ipv6.h>
 #include <net/udp.h>
 #include <net/tcp.h>
-#include <net/sit.h>
+#include <net/ipip.h>
 #include <net/protocol.h>
 #include <net/inet_common.h>
 #include <net/transp_v6.h>
@@ -200,7 +200,7 @@
 	/* Check if the address belongs to the host. */
 	if (addr_type == IPV6_ADDR_MAPPED) {
 		v4addr = addr->sin6_addr.s6_addr32[3];
-		if (__ip_chk_addr(v4addr) != IS_MYADDR)
+		if (inet_addr_type(v4addr) != RTN_LOCAL)
 			return(-EADDRNOTAVAIL);
 	} else {
 		if (addr_type != IPV6_ADDR_ANY) {
@@ -354,8 +354,8 @@
 	case SIOCGIFMAP:
 	case SIOCSIFSLAVE:
 	case SIOCGIFSLAVE:
-	case SIOGIFINDEX:
-	case SIOGIFNAME:
+	case SIOCGIFINDEX:
+	case SIOCGIFNAME:
 	case SIOCGIFCOUNT:
 		return(dev_ioctl(cmd,(void *) arg));		
 		

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov