mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 17:59:32 +00:00
d877f07112
This new expression uses the nf_dup engine to clone packets to a given gateway. Unlike xt_TEE, we use an index to indicate output interface which should be fine at this stage. Moreover, change to the preemtion-safe this_cpu_read(nf_skb_duplicated) from nf_dup_ipv{4,6} to silence a lockdep splat. Based on the original tee expression from Arturo Borrero Gonzalez, although this patch has diverted quite a bit from this initial effort due to the change to support maps. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
9 lines
157 B
C
9 lines
157 B
C
#ifndef _NFT_DUP_H_
|
|
#define _NFT_DUP_H_
|
|
|
|
struct nft_dup_inet {
|
|
enum nft_registers sreg_addr:8;
|
|
enum nft_registers sreg_dev:8;
|
|
};
|
|
|
|
#endif /* _NFT_DUP_H_ */
|