xt_TEE: use ip_send_check instead of open-coded logic

This commit is contained in:
Jan Engelhardt
2010-03-22 23:29:20 +01:00
parent dd8fdd09c8
commit 56535551b3

View File

@@ -166,11 +166,8 @@ tee_tg4(struct sk_buff **pskb, const struct xt_target_param *par)
* If we are in INPUT, the checksum must be recalculated since
* the length could have changed as a result of defragmentation.
*/
if (par->hooknum == NF_INET_LOCAL_IN) {
struct iphdr *iph = ip_hdr(skb);
iph->check = 0;
iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl);
}
if (par->hooknum == NF_INET_LOCAL_IN)
ip_send_check(ip_hdr(skb));
/*
* Copy the skb, and route the copy. Will later return %XT_CONTINUE for