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

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