patch-1.3.73 linux/net/ipv4/ip_output.c

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

diff -u --recursive --new-file v1.3.72/linux/net/ipv4/ip_output.c linux/net/ipv4/ip_output.c
@@ -363,7 +363,7 @@
 	 */
 
 	iph = skb->ip_hdr;
-	iph->tot_len = ntohs(skb->len-(((unsigned char *)iph)-skb->data));
+	iph->tot_len = htons(skb->len-(((unsigned char *)iph)-skb->data));
 
 #ifdef CONFIG_FIREWALL
 	if(call_out_firewall(PF_INET, skb, iph) < FW_ACCEPT)

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