History

netfilter: cttimeout: use option structure

Instead of two exported functions, export a single option structure.

Florian Westphal committed 4 years ago

Commit 7afa3881 parent 8dd86783 files · +26 −24Browse files

Showing the changes to include (1 of 3 files). Show all

Unified · Split

include/net/netfilter/nf_conntrack_timeout.h+6−2
@@ -108,8 +108,12 @@ static inline void nf_ct_destroy_timeout(struct nf_conn *ct) · 107 unmodified lines
108#endif /* CONFIG_NF_CONNTRACK_TIMEOUT */108#endif /* CONFIG_NF_CONNTRACK_TIMEOUT */
109 109
110#ifdef CONFIG_NF_CONNTRACK_TIMEOUT110#ifdef CONFIG_NF_CONNTRACK_TIMEOUT
111extern struct nf_ct_timeout *(*nf_ct_timeout_find_get_hook)(struct net *net, const char *name);111struct nf_ct_timeout_hooks {
112extern void (*nf_ct_timeout_put_hook)(struct nf_ct_timeout *timeout);112 struct nf_ct_timeout *(*timeout_find_get)(struct net *net, const char *name);
113 void (*timeout_put)(struct nf_ct_timeout *timeout);
114};
115
116extern const struct nf_ct_timeout_hooks *nf_ct_timeout_hook;
113#endif117#endif
114 118
115#endif /* _NF_CONNTRACK_TIMEOUT_H */119#endif /* _NF_CONNTRACK_TIMEOUT_H */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t