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

Next file: linux/net/ipv6/ndisc.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.10/linux/net/ipv6/af_inet6.c linux/net/ipv6/af_inet6.c
@@ -254,7 +254,7 @@
  */
 
 static int inet6_bind(struct socket *sock, struct sockaddr *uaddr,
-		      int addr_len)
+		      size_t addr_len)
 {
 	struct sockaddr_in6 *addr=(struct sockaddr_in6 *)uaddr;
 	struct sock *sk=(struct sock *)sock->data, *sk2;
@@ -271,7 +271,7 @@
 		
 	/* check this error. */
 	if (sk->state != TCP_CLOSE)
-		return(-EIO);
+		return(-EINVAL);
 
 	if(addr_len < sizeof(struct sockaddr_in6))
 		return -EINVAL;
@@ -434,7 +434,7 @@
  */
  
 static int inet6_getname(struct socket *sock, struct sockaddr *uaddr,
-		 int *uaddr_len, int peer)
+		 size_t *uaddr_len, int peer)
 {
 	struct sockaddr_in6 *sin=(struct sockaddr_in6 *)uaddr;
 	struct sock *sk;
@@ -805,7 +805,7 @@
 {
 	int i;
 
-	printk(KERN_INFO "IPv6 v0.1\n");
+	printk(KERN_INFO "IPv6 v0.1 for NET3.037\n");
 
 	sock_register(inet6_proto_ops.family, &inet6_proto_ops);
 	

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