patch-1.3.73 linux/net/ipv4/raw.c
Next file: linux/net/ipv4/tcp.c
Previous file: linux/net/ipv4/ip_output.c
Back to the patch index
Back to the overall index
-  Lines: 10
 -  Date:
Sun Mar 10 09:28:57 1996
 -  Orig file: 
v1.3.72/linux/net/ipv4/raw.c
 -  Orig date: 
Tue Feb 20 14:37:30 1996
 
diff -u --recursive --new-file v1.3.72/linux/net/ipv4/raw.c linux/net/ipv4/raw.c
@@ -174,7 +174,8 @@
 	if(offset==0)
 	{
 		struct iphdr *iph=(struct iphdr *)to;
-		iph->saddr=saddr;
+		if(!iph->saddr)
+			iph->saddr=saddr;
 		iph->check=0;
 		iph->tot_len=htons(fraglen);	/* This is right as you cant frag
 					   RAW packets */
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