diff options
author | Florian Westphal <fw@strlen.de> | 2022-02-08 12:29:47 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2022-02-09 11:56:06 +0100 |
commit | 7afa38831aee2ca2f41b22747ed8545e1887aaa9 (patch) | |
tree | 48a96d37122fc2b587f907abc31cdb046bd75cbc /include/net/netfilter | |
parent | netfilter: ecache: don't use nf_conn spinlock (diff) | |
download | linux-7afa38831aee2ca2f41b22747ed8545e1887aaa9.tar.gz linux-7afa38831aee2ca2f41b22747ed8545e1887aaa9.tar.bz2 linux-7afa38831aee2ca2f41b22747ed8545e1887aaa9.zip |
netfilter: cttimeout: use option structure
Instead of two exported functions, export a single option structure.
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_conntrack_timeout.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/net/netfilter/nf_conntrack_timeout.h b/include/net/netfilter/nf_conntrack_timeout.h index db507e4a65bb..3ea94f6f3844 100644 --- a/include/net/netfilter/nf_conntrack_timeout.h +++ b/include/net/netfilter/nf_conntrack_timeout.h @@ -108,8 +108,12 @@ static inline void nf_ct_destroy_timeout(struct nf_conn *ct) #endif /* CONFIG_NF_CONNTRACK_TIMEOUT */ #ifdef CONFIG_NF_CONNTRACK_TIMEOUT -extern struct nf_ct_timeout *(*nf_ct_timeout_find_get_hook)(struct net *net, const char *name); -extern void (*nf_ct_timeout_put_hook)(struct nf_ct_timeout *timeout); +struct nf_ct_timeout_hooks { + struct nf_ct_timeout *(*timeout_find_get)(struct net *net, const char *name); + void (*timeout_put)(struct nf_ct_timeout *timeout); +}; + +extern const struct nf_ct_timeout_hooks *nf_ct_timeout_hook; #endif #endif /* _NF_CONNTRACK_TIMEOUT_H */ |