patch-2.0.12 linux/net/ipv4/ip_fragment.c

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

diff -u --recursive --new-file v2.0.11/linux/net/ipv4/ip_fragment.c linux/net/ipv4/ip_fragment.c
@@ -645,7 +645,7 @@
 	 *	Check for any "DF" flag. [DF means do not fragment]
 	 */
 
-	if (ntohs(iph->frag_off) & IP_DF)
+	if (iph->frag_off & htons(IP_DF))
 	{
 		ip_statistics.IpFragFails++;
 		NETDEBUG(printk("ip_queue_xmit: frag needed\n"));

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