Lines Matching defs:sock
19 #include <net/sock.h>
50 static inline struct l2tp_ip_sock *l2tp_ip_sk(const struct sock *sk)
55 static struct sock *__l2tp_ip_bind_lookup(struct net *net, __be32 laddr, int dif, u32 tunnel_id)
58 struct sock *sk;
81 static inline struct sock *l2tp_ip_bind_lookup(struct net *net, __be32 laddr, int dif, u32 tunnel_id)
83 struct sock *sk = __l2tp_ip_bind_lookup(net, laddr, dif, tunnel_id);
125 struct sock *sk;
192 sk = tunnel->sock;
221 static int l2tp_ip_open(struct sock *sk)
233 static void l2tp_ip_close(struct sock *sk, long timeout)
242 static void l2tp_ip_destroy_sock(struct sock *sk)
252 static int l2tp_ip_bind(struct sock *sk, struct sockaddr *uaddr, int addr_len)
299 static int l2tp_ip_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len)
363 static int l2tp_ip_getname(struct socket *sock, struct sockaddr *uaddr,
366 struct sock *sk = sock->sk;
389 static int l2tp_ip_backlog_recv(struct sock *sk, struct sk_buff *skb)
414 static int l2tp_ip_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len)
524 static int l2tp_ip_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg,