aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/bpfilter.h
diff options
context:
space:
mode:
authorTaehee Yoo <ap420073@gmail.com>2019-01-09 02:24:34 +0900
committerDavid S. Miller <davem@davemloft.net>2019-01-11 18:05:41 -0800
commit5b4cb650e569db2e6a09d2fa0ef8eb789a0ac5d8 (patch)
tree7ef7c653d79db14d7eec7b445c178255a01e13d8 /include/linux/bpfilter.h
parentumh: add exit routine for UMH process (diff)
downloadwireguard-linux-5b4cb650e569db2e6a09d2fa0ef8eb789a0ac5d8.tar.xz
wireguard-linux-5b4cb650e569db2e6a09d2fa0ef8eb789a0ac5d8.zip
net: bpfilter: use cleanup callback to release umh_info
Now, UMH process is killed, do_exit() calls the umh_info->cleanup callback to release members of the umh_info. This patch makes bpfilter_umh's cleanup routine to use the umh_info->cleanup callback. Signed-off-by: Taehee Yoo <ap420073@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/bpfilter.h')
-rw-r--r--include/linux/bpfilter.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/include/linux/bpfilter.h b/include/linux/bpfilter.h
index f02cee0225d4..70ffeed280e9 100644
--- a/include/linux/bpfilter.h
+++ b/include/linux/bpfilter.h
@@ -3,13 +3,18 @@
#define _LINUX_BPFILTER_H
#include <uapi/linux/bpfilter.h>
+#include <linux/umh.h>
struct sock;
int bpfilter_ip_set_sockopt(struct sock *sk, int optname, char __user *optval,
unsigned int optlen);
int bpfilter_ip_get_sockopt(struct sock *sk, int optname, char __user *optval,
int __user *optlen);
-extern int (*bpfilter_process_sockopt)(struct sock *sk, int optname,
- char __user *optval,
- unsigned int optlen, bool is_set);
+struct bpfilter_umh_ops {
+ struct umh_info info;
+ int (*sockopt)(struct sock *sk, int optname,
+ char __user *optval,
+ unsigned int optlen, bool is_set);
+};
+extern struct bpfilter_umh_ops bpfilter_ops;
#endif