mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-11 15:14:57 +02:00
xt_TEE: use less expensive pskb_copy
This commit is contained in:
@@ -8,6 +8,7 @@ HEAD
|
|||||||
- TEE: do not limit use to mangle table
|
- TEE: do not limit use to mangle table
|
||||||
- TEE: do not retain iif and mark on cloned packet
|
- TEE: do not retain iif and mark on cloned packet
|
||||||
- TEE: new loop detection logic
|
- TEE: new loop detection logic
|
||||||
|
- TEE: use less expensive pskb_copy
|
||||||
|
|
||||||
|
|
||||||
Xtables-addons 1.24 (March 17 2010)
|
Xtables-addons 1.24 (March 17 2010)
|
||||||
|
@@ -146,7 +146,7 @@ tee_tg4(struct sk_buff **pskb, const struct xt_target_param *par)
|
|||||||
* happened. The copy should be independently delivered to the TEE
|
* happened. The copy should be independently delivered to the TEE
|
||||||
* --gateway.
|
* --gateway.
|
||||||
*/
|
*/
|
||||||
skb = skb_copy(skb, GFP_ATOMIC);
|
skb = pskb_copy(skb, GFP_ATOMIC);
|
||||||
if (skb == NULL)
|
if (skb == NULL)
|
||||||
return XT_CONTINUE;
|
return XT_CONTINUE;
|
||||||
/*
|
/*
|
||||||
@@ -243,7 +243,8 @@ tee_tg6(struct sk_buff **pskb, const struct xt_target_param *par)
|
|||||||
|
|
||||||
if (tee_active[cpu])
|
if (tee_active[cpu])
|
||||||
return XT_CONTINUE;
|
return XT_CONTINUE;
|
||||||
if ((skb = skb_copy(skb, GFP_ATOMIC)) == NULL)
|
skb = pskb_copy(skb, GFP_ATOMIC);
|
||||||
|
if (skb == NULL)
|
||||||
return XT_CONTINUE;
|
return XT_CONTINUE;
|
||||||
|
|
||||||
#ifdef WITH_CONNTRACK
|
#ifdef WITH_CONNTRACK
|
||||||
|
Reference in New Issue
Block a user