patch-2.2.19 linux/include/net/ip.h

Next file: linux/include/net/ip_masq.h
Previous file: linux/include/math-emu/op-2.h
Back to the patch index
Back to the overall index

diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.18/include/net/ip.h linux/include/net/ip.h
@@ -172,7 +172,7 @@
 {
 	u16 check = iph->check;
 	check += __constant_htons(0x0100);
-	iph->check = check + (check>=0xFFFF);
+	iph->check = check + ((check>=0xFFFF) ? 1 : 0);
 	return --iph->ttl;
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)