Lines Matching defs:sock
45 #include <net/sock.h> /* for struct sock */
79 static int pptp_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg);
81 static int __pptp_xmit(struct sock *sk, struct sk_buff *skb);
239 struct sock *sk = sk_pppox(po);
250 * hold the sock lock while doing any unbinding,
252 * Hold a reference to the sock so it doesn't disappear
360 static void pptp_fill_ip_header(struct sock *sk,
436 static int pptp_rcv_core(struct sock *sk, struct sk_buff *skb)
569 * Initialize a new struct sock.
573 static int pptp_create(struct net *net, struct socket *sock)
575 struct sock *sk;
581 sock_init_data(sock, sk);
588 sock->state = SS_UNCONNECTED;
589 sock->ops = &pptp_ops;
599 static int pptp_release(struct socket *sock)
601 struct sock *sk = sock->sk;
639 sock->sk = NULL;
650 static int pptp_connect(struct socket *sock, struct sockaddr *uservaddr,
653 struct sock *sk = sock->sk;
686 sizeof(struct pppox_sock) - sizeof(struct sock));
760 static int pptp_getname(struct socket *sock, struct sockaddr *uaddr,
768 memcpy(&sp.sa_addr.pptp, &pppox_sk(sock->sk)->pptp_pa,
779 static int pptp_ioctl(struct socket *sock, unsigned int cmd,
782 struct sock *sk = sock->sk;
897 static int pptp_sendmsg(struct kiocb *iocb, struct socket *sock,
901 struct sock *sk = sock->sk;
995 static int __pptp_xmit(struct sock *sk, struct sk_buff *skb)
1089 struct sock *sk = (struct sock *) chan->private;
1097 static int pptp_recvmsg(struct kiocb *iocb, struct socket *sock,
1100 struct sock *sk = sock->sk;