diff options
| author | 2021-05-28 12:30:06 +0200 | |
|---|---|---|
| committer | 2021-05-29 01:04:54 +0200 | |
| commit | 2d7b4ace0754ebaaf71c6824880178d46aa0ab33 (patch) | |
| tree | 3de213adfe22128bbdc8f4e089c1b7e4bcd2ebcf /include/net/netfilter | |
| parent | netfilter: nf_tables: add and use nft_sk helper (diff) | |
| download | linux-dev-2d7b4ace0754ebaaf71c6824880178d46aa0ab33.tar.xz linux-dev-2d7b4ace0754ebaaf71c6824880178d46aa0ab33.zip | |
netfilter: nf_tables: add and use nft_thoff helper
This allows to change storage placement later on without changing readers.
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/net/netfilter')
| -rw-r--r-- | include/net/netfilter/nf_tables.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/netfilter/nf_tables.h b/include/net/netfilter/nf_tables.h index af1228f58e5a..10c1b8759990 100644 --- a/include/net/netfilter/nf_tables.h +++ b/include/net/netfilter/nf_tables.h @@ -34,6 +34,11 @@ static inline struct sock *nft_sk(const struct nft_pktinfo *pkt) return pkt->xt.state->sk; } +static inline unsigned int nft_thoff(const struct nft_pktinfo *pkt) +{ + return pkt->xt.thoff; +} + static inline struct net *nft_net(const struct nft_pktinfo *pkt) { return pkt->xt.state->net; |
