View | Details | Raw Unified | Return to bug 115200
Collapse All | Expand All

(-)linux-2.6.13/net/core/netfilter.c (-1 / +3 lines)
Lines 544-551 int nf_rcv_postxfrm_local(struct sk_buff Link Here
544
	/* Fix header len and checksum if last xfrm was transport mode */
544
	/* Fix header len and checksum if last xfrm was transport mode */
545
	if (!skb->sp->x[skb->sp->len - 1].xvec->props.mode) {
545
	if (!skb->sp->x[skb->sp->len - 1].xvec->props.mode) {
546
		skb->nh.iph->tot_len = htons(skb->len);
546
		skb->nh.iph->tot_len = htons(skb->len);
547
		ip_send_check(skb->nh.iph);
548
	}
547
	}
548
	/* Unconditionally do the checksum; the packet
549
	 * may have been fragmented. Icky. */
550
	ip_send_check(skb->nh.iph);
549
	return nf_rcv_postxfrm_nonlocal(skb);
551
	return nf_rcv_postxfrm_nonlocal(skb);
550
}
552
}
551
 
553
 

Return to bug 115200