Lines Matching defs:sock
56 #include <net/sock.h>
81 struct sock sk;
93 static inline struct raw_sock *raw_sk(const struct sock *sk)
100 struct sock *sk = (struct sock *)data;
104 /* check the received tx sock reference */
130 static int raw_enable_filters(struct net_device *dev, struct sock *sk,
153 static int raw_enable_errfilter(struct net_device *dev, struct sock *sk,
165 static void raw_disable_filters(struct net_device *dev, struct sock *sk,
176 struct sock *sk,
186 struct sock *sk)
194 static int raw_enable_allfilters(struct net_device *dev, struct sock *sk)
214 struct sock *sk = &ro->sk;
256 static int raw_init(struct sock *sk)
281 static int raw_release(struct socket *sock)
283 struct sock *sk = sock->sk;
312 sock->sk = NULL;
320 static int raw_bind(struct socket *sock, struct sockaddr *uaddr, int len)
323 struct sock *sk = sock->sk;
395 static int raw_getname(struct socket *sock, struct sockaddr *uaddr,
399 struct sock *sk = sock->sk;
414 static int raw_setsockopt(struct socket *sock, int level, int optname,
417 struct sock *sk = sock->sk;
551 static int raw_getsockopt(struct socket *sock, int level, int optname,
554 struct sock *sk = sock->sk;
614 static int raw_sendmsg(struct kiocb *iocb, struct socket *sock,
617 struct sock *sk = sock->sk;
654 /* to be able to check the received tx sock reference in raw_rcv() */
677 static int raw_recvmsg(struct kiocb *iocb, struct socket *sock,
680 struct sock *sk = sock->sk;