]>
Commit | Line | Data |
---|---|---|
d2ba09c1 AS |
1 | /* SPDX-License-Identifier: GPL-2.0 */ |
2 | #ifndef _LINUX_BPFILTER_H | |
3 | #define _LINUX_BPFILTER_H | |
4 | ||
5 | #include <uapi/linux/bpfilter.h> | |
6 | ||
7 | struct sock; | |
f95de8aa | 8 | int bpfilter_ip_set_sockopt(struct sock *sk, int optname, char __user *optval, |
d2ba09c1 | 9 | unsigned int optlen); |
f95de8aa Y |
10 | int bpfilter_ip_get_sockopt(struct sock *sk, int optname, char __user *optval, |
11 | int __user *optlen); | |
d2ba09c1 AS |
12 | extern int (*bpfilter_process_sockopt)(struct sock *sk, int optname, |
13 | char __user *optval, | |
14 | unsigned int optlen, bool is_set); | |
15 | #endif |