mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-06 12:45:13 +02:00
xt_TEE: do rechecksumming in PREROUTING too
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
|
||||
HEAD
|
||||
====
|
||||
- TEE: do rechecksumming in PREROUTING too
|
||||
|
||||
|
||||
Xtables-addons 1.24 (March 17 2010)
|
||||
|
@@ -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));
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user