Contributors: 8
Author |
Tokens |
Token Proportion |
Commits |
Commit Proportion |
Alexei Starovoitov |
46 |
40.00% |
1 |
7.69% |
Taehee Yoo |
29 |
25.22% |
3 |
23.08% |
Linus Torvalds (pre-git) |
17 |
14.78% |
2 |
15.38% |
Dmitry Mishin |
11 |
9.57% |
1 |
7.69% |
Christoph Hellwig |
5 |
4.35% |
1 |
7.69% |
Eric W. Biedermann |
3 |
2.61% |
3 |
23.08% |
David S. Miller |
2 |
1.74% |
1 |
7.69% |
Yue haibing |
2 |
1.74% |
1 |
7.69% |
Total |
115 |
|
13 |
|
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _LINUX_BPFILTER_H
#define _LINUX_BPFILTER_H
#include <uapi/linux/bpfilter.h>
#include <linux/usermode_driver.h>
#include <linux/sockptr.h>
struct sock;
int bpfilter_ip_set_sockopt(struct sock *sk, int optname, sockptr_t optval,
unsigned int optlen);
int bpfilter_ip_get_sockopt(struct sock *sk, int optname, char __user *optval,
int __user *optlen);
struct bpfilter_umh_ops {
struct umd_info info;
/* since ip_getsockopt() can run in parallel, serialize access to umh */
struct mutex lock;
int (*sockopt)(struct sock *sk, int optname, sockptr_t optval,
unsigned int optlen, bool is_set);
int (*start)(void);
};
extern struct bpfilter_umh_ops bpfilter_ops;
#endif