X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=include%2Flinux%2Fskbuff.h;h=5e1e6f2d98c2ae5b45b8a3ec5565eb793e840a68;hb=2e99c07fbe9d823147190753b4d762ec1e31202e;hp=3ebbbe7b6d05fadbccaf66bac9ad1d8cfe7c5c17;hpb=960dfc4eb23a28495276b02604d7458e0e1a1ed8;p=~andy%2Flinux diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 3ebbbe7b6d0..5e1e6f2d98c 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h @@ -2725,7 +2725,7 @@ static inline void nf_reset(struct sk_buff *skb) static inline void nf_reset_trace(struct sk_buff *skb) { -#if IS_ENABLED(CONFIG_NETFILTER_XT_TARGET_TRACE) +#if IS_ENABLED(CONFIG_NETFILTER_XT_TARGET_TRACE) || defined(CONFIG_NF_TABLES) skb->nf_trace = 0; #endif } @@ -2742,6 +2742,9 @@ static inline void __nf_copy(struct sk_buff *dst, const struct sk_buff *src) dst->nf_bridge = src->nf_bridge; nf_bridge_get(src->nf_bridge); #endif +#if IS_ENABLED(CONFIG_NETFILTER_XT_TARGET_TRACE) || defined(CONFIG_NF_TABLES) + dst->nf_trace = src->nf_trace; +#endif } static inline void nf_copy(struct sk_buff *dst, const struct sk_buff *src)