patch-1.3.60 linux/net/ipv4/udp.c
Next file: linux/net/ipx/af_ipx.c
Previous file: linux/net/ipv4/tcp.c
Back to the patch index
Back to the overall index
-  Lines: 18
 -  Date:
Wed Feb  7 08:55:56 1996
 -  Orig file: 
v1.3.59/linux/net/ipv4/udp.c
 -  Orig date: 
Sun Jan 14 16:30:20 1996
 
diff -u --recursive --new-file v1.3.59/linux/net/ipv4/udp.c linux/net/ipv4/udp.c
@@ -429,7 +429,7 @@
 			return -ENOBUFS;
 		memcpy_fromiovec(buf, msg->msg_iov, len);
 		fs=get_fs();
-		set_fs(get_fs());
+		set_fs(get_ds());
 		err=udp_sendto(sk,buf,len, noblock, flags, msg->msg_name, msg->msg_namelen);
 		set_fs(fs);
 		kfree_s(buf,len);
@@ -474,7 +474,7 @@
 				 * of this packet since that is all
 				 * that will be read.
 				 */
-				amount = skb->len;
+				amount = skb->len-sizeof(struct udphdr);
 			}
 			err=verify_area(VERIFY_WRITE,(void *)arg,
 						sizeof(unsigned long));
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this