Lines Matching refs:sock
84 #include <net/sock.h>
98 static int __pppoe_xmit(struct sock *sk, struct sk_buff *skb);
301 struct sock *sk;
315 * sock lock while doing any unbinding, we need to
317 * the sock so it doesn't disappear as we're jumping
384 static int pppoe_rcv_core(struct sock *sk, struct sk_buff *skb)
508 struct sock *sk = sk_pppox(po);
558 * Initialize a new struct sock.
561 static int pppoe_create(struct net *net, struct socket *sock)
563 struct sock *sk;
569 sock_init_data(sock, sk);
571 sock->state = SS_UNCONNECTED;
572 sock->ops = &pppoe_ops;
583 static int pppoe_release(struct socket *sock)
585 struct sock *sk = sock->sk;
622 sock->sk = NULL;
631 static int pppoe_connect(struct socket *sock, struct sockaddr *uservaddr,
634 struct sock *sk = sock->sk;
674 sizeof(struct pppox_sock) - sizeof(struct sock));
733 static int pppoe_getname(struct socket *sock, struct sockaddr *uaddr,
741 memcpy(&sp.sa_addr.pppoe, &pppox_sk(sock->sk)->pppoe_pa,
751 static int pppoe_ioctl(struct socket *sock, unsigned int cmd,
754 struct sock *sk = sock->sk;
851 static int pppoe_sendmsg(struct kiocb *iocb, struct socket *sock,
855 struct sock *sk = sock->sk;
926 static int __pppoe_xmit(struct sock *sk, struct sk_buff *skb)
1007 struct sock *sk = (struct sock *)chan->private;
1015 static int pppoe_recvmsg(struct kiocb *iocb, struct socket *sock,
1018 struct sock *sk = sock->sk;