diff --git a/doc/changelog.txt b/doc/changelog.txt index d109979..cca26fc 100644 --- a/doc/changelog.txt +++ b/doc/changelog.txt @@ -1,6 +1,7 @@ HEAD ==== +- TEE: do rechecksumming in PREROUTING too Xtables-addons 1.24 (March 17 2010) diff --git a/extensions/xt_TEE.c b/extensions/xt_TEE.c index ad90cfe..74ac709 100644 --- a/extensions/xt_TEE.c +++ b/extensions/xt_TEE.c @@ -163,10 +163,11 @@ tee_tg4(struct sk_buff **pskb, const struct xt_target_param *par) skb = *pskb; /* - * If we are in INPUT, the checksum must be recalculated since - * the length could have changed as a result of defragmentation. + * If we are in PREROUTING/INPUT, the checksum must be recalculated + * since the length could have changed as a result of defragmentation. */ - if (par->hooknum == NF_INET_LOCAL_IN) + if (par->hooknum == NF_INET_PRE_ROUTING || + par->hooknum == NF_INET_LOCAL_IN) ip_send_check(ip_hdr(skb)); /*