blob: 687b1760bb9f87755f50fe575d30988259248e19 [file] [log] [blame]
Alexei Starovoitovd2ba09c2018-05-21 19:22:30 -07001/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _LINUX_BPFILTER_H
3#define _LINUX_BPFILTER_H
4
5#include <uapi/linux/bpfilter.h>
6
7struct sock;
8int bpfilter_ip_set_sockopt(struct sock *sk, int optname, char *optval,
9 unsigned int optlen);
10int bpfilter_ip_get_sockopt(struct sock *sk, int optname, char *optval,
11 int *optlen);
12extern int (*bpfilter_process_sockopt)(struct sock *sk, int optname,
13 char __user *optval,
14 unsigned int optlen, bool is_set);
15#endif