diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/skbuff.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 39a6da243b24..62ab1ab07028 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h | |||
@@ -1498,8 +1498,25 @@ static inline void nf_reset(struct sk_buff *skb) | |||
1498 | #endif | 1498 | #endif |
1499 | } | 1499 | } |
1500 | 1500 | ||
1501 | /* Note: This doesn't put any conntrack and bridge info in dst. */ | ||
1502 | static inline void __nf_copy(struct sk_buff *dst, const struct sk_buff *src) | ||
1503 | { | ||
1504 | dst->nfct = src->nfct; | ||
1505 | nf_conntrack_get(src->nfct); | ||
1506 | dst->nfctinfo = src->nfctinfo; | ||
1507 | #if defined(CONFIG_NF_CONNTRACK) || defined(CONFIG_NF_CONNTRACK_MODULE) | ||
1508 | dst->nfct_reasm = src->nfct_reasm; | ||
1509 | nf_conntrack_get_reasm(src->nfct_reasm); | ||
1510 | #endif | ||
1511 | #ifdef CONFIG_BRIDGE_NETFILTER | ||
1512 | dst->nf_bridge = src->nf_bridge; | ||
1513 | nf_bridge_get(src->nf_bridge); | ||
1514 | #endif | ||
1515 | } | ||
1516 | |||
1501 | #else /* CONFIG_NETFILTER */ | 1517 | #else /* CONFIG_NETFILTER */ |
1502 | static inline void nf_reset(struct sk_buff *skb) {} | 1518 | static inline void nf_reset(struct sk_buff *skb) {} |
1519 | static inline void __nf_copy(struct sk_buff *dst, const struct sk_buff *src) {} | ||
1503 | #endif /* CONFIG_NETFILTER */ | 1520 | #endif /* CONFIG_NETFILTER */ |
1504 | 1521 | ||
1505 | #ifdef CONFIG_NETWORK_SECMARK | 1522 | #ifdef CONFIG_NETWORK_SECMARK |