Lines Matching refs:sock
17 #include <net/sock.h>
40 static inline struct l2tp_ip_sock *l2tp_ip_sk(const struct sock *sk)
45 static struct sock *__l2tp_ip_bind_lookup(const struct net *net, __be32 laddr,
48 struct sock *sk;
116 struct sock *sk;
199 static int l2tp_ip_hash(struct sock *sk)
209 static void l2tp_ip_unhash(struct sock *sk)
218 static int l2tp_ip_open(struct sock *sk)
227 static void l2tp_ip_close(struct sock *sk, long timeout)
236 static void l2tp_ip_destroy_sock(struct sock *sk)
248 static int l2tp_ip_bind(struct sock *sk, struct sockaddr *uaddr, int addr_len)
307 static int l2tp_ip_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len)
343 static int l2tp_ip_disconnect(struct sock *sk, int flags)
351 static int l2tp_ip_getname(struct socket *sock, struct sockaddr *uaddr,
354 struct sock *sk = sock->sk;
377 static int l2tp_ip_backlog_recv(struct sock *sk, struct sk_buff *skb)
397 static int l2tp_ip_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)
519 static int l2tp_ip_recvmsg(struct sock *sk, struct msghdr *msg,
565 int l2tp_ioctl(struct sock *sk, int cmd, int *karg)