patch-2.1.106 linux/net/ipv6/udp.c

Next file: linux/net/sched/cls_rsvp.h
Previous file: linux/net/ipv6/tcp_ipv6.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.105/linux/net/ipv6/udp.c linux/net/ipv6/udp.c
@@ -7,7 +7,7 @@
  *
  *	Based on linux/ipv4/udp.c
  *
- *	$Id: udp.c,v 1.28 1998/05/03 14:31:12 alan Exp $
+ *	$Id: udp.c,v 1.29 1998/05/15 15:21:39 davem Exp $
  *
  *	This program is free software; you can redistribute it and/or
  *      modify it under the terms of the GNU General Public License
@@ -689,7 +689,7 @@
 		}
 	} else {
 		if (sk->state != TCP_ESTABLISHED)
-			return(-EINVAL);
+			return(-ENOTCONN);
 		
 		udh.uh.dest = sk->dport;
 		daddr = &sk->net_pinfo.af_inet6.daddr;

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