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;
114 struct sock *sk;
197 static int l2tp_ip_hash(struct sock *sk)
207 static void l2tp_ip_unhash(struct sock *sk)
216 static int l2tp_ip_open(struct sock *sk)
225 static void l2tp_ip_close(struct sock *sk, long timeout)
234 static void l2tp_ip_destroy_sock(struct sock *sk)
246 static int l2tp_ip_bind(struct sock *sk, struct sockaddr *uaddr, int addr_len)
305 static int l2tp_ip_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len)
341 static int l2tp_ip_disconnect(struct sock *sk, int flags)
349 static int l2tp_ip_getname(struct socket *sock, struct sockaddr *uaddr,
352 struct sock *sk = sock->sk;
375 static int l2tp_ip_backlog_recv(struct sock *sk, struct sk_buff *skb)
395 static int l2tp_ip_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)
517 static int l2tp_ip_recvmsg(struct sock *sk, struct msghdr *msg,
563 int l2tp_ioctl(struct sock *sk, int cmd, unsigned long arg)