patch-1.3.44 linux/net/ipv4/raw.c

Next file: linux/net/ipv4/tcp.c
Previous file: linux/net/ipv4/ipmr.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.43/linux/net/ipv4/raw.c linux/net/ipv4/raw.c
@@ -125,6 +125,16 @@
 	skb->dev = dev;
 	skb->saddr = daddr;
 	skb->daddr = saddr;
+
+#if 0	
+	/*
+	 *	For no adequately explained reasons BSD likes to mess up the header of
+	 *	the received frame. 
+	 */
+	 
+	if(sk->bsdism)
+		skb->ip_hdr->tot_len=ntohs(skb->ip_hdr->tot_len-4*skb->ip_hdr->ihl);
+#endif
 	
 	/* Charge it to the socket. */
 	

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