.. | .. |
---|
8 | 8 | #include <net/net_namespace.h> |
---|
9 | 9 | #include <uapi/linux/mroute6.h> |
---|
10 | 10 | #include <linux/mroute_base.h> |
---|
| 11 | +#include <linux/sockptr.h> |
---|
11 | 12 | #include <net/fib_rules.h> |
---|
12 | 13 | |
---|
13 | 14 | #ifdef CONFIG_IPV6_MROUTE |
---|
.. | .. |
---|
25 | 26 | struct sock; |
---|
26 | 27 | |
---|
27 | 28 | #ifdef CONFIG_IPV6_MROUTE |
---|
28 | | -extern int ip6_mroute_setsockopt(struct sock *, int, char __user *, unsigned int); |
---|
| 29 | +extern int ip6_mroute_setsockopt(struct sock *, int, sockptr_t, unsigned int); |
---|
29 | 30 | extern int ip6_mroute_getsockopt(struct sock *, int, char __user *, int __user *); |
---|
30 | 31 | extern int ip6_mr_input(struct sk_buff *skb); |
---|
31 | 32 | extern int ip6mr_ioctl(struct sock *sk, int cmd, void __user *arg); |
---|
.. | .. |
---|
33 | 34 | extern int ip6_mr_init(void); |
---|
34 | 35 | extern void ip6_mr_cleanup(void); |
---|
35 | 36 | #else |
---|
36 | | -static inline |
---|
37 | | -int ip6_mroute_setsockopt(struct sock *sock, |
---|
38 | | - int optname, char __user *optval, unsigned int optlen) |
---|
| 37 | +static inline int ip6_mroute_setsockopt(struct sock *sock, int optname, |
---|
| 38 | + sockptr_t optval, unsigned int optlen) |
---|
39 | 39 | { |
---|
40 | 40 | return -ENOPROTOOPT; |
---|
41 | 41 | } |
---|