Lines Matching defs:sock
105 static struct ipv6_pinfo *inet6_sk_generic(struct sock *sk)
112 void inet6_sock_destruct(struct sock *sk)
119 static int inet6_create(struct net *net, struct socket *sock, int protocol,
124 struct sock *sk;
138 list_for_each_entry_rcu(answer, &inetsw6[sock->type], list) {
166 PF_INET6, protocol, sock->type);
180 if (sock->type == SOCK_RAW && !kern &&
184 sock->ops = answer->ops;
196 sock_init_data(sock, sk);
208 if (SOCK_RAW == sock->type) {
280 static int __inet6_bind(struct sock *sk, struct sockaddr *uaddr, int addr_len,
441 int inet6_bind_sk(struct sock *sk, struct sockaddr *uaddr, int addr_len)
468 int inet6_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len)
470 return inet6_bind_sk(sock->sk, uaddr, addr_len);
474 int inet6_release(struct socket *sock)
476 struct sock *sk = sock->sk;
487 return inet_release(sock);
491 void inet6_cleanup_sock(struct sock *sk)
521 int inet6_getname(struct socket *sock, struct sockaddr *uaddr,
526 struct sock *sk = sock->sk;
563 int inet6_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
566 struct sock *sk = sock->sk;
611 static int inet6_compat_routing_ioctl(struct sock *sk, unsigned int cmd,
631 int inet6_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
634 struct sock *sk = sock->sk;
647 INDIRECT_CALLABLE_DECLARE(int udpv6_sendmsg(struct sock *, struct msghdr *,
649 int inet6_sendmsg(struct socket *sock, struct msghdr *msg, size_t size)
651 struct sock *sk = sock->sk;
663 INDIRECT_CALLABLE_DECLARE(int udpv6_recvmsg(struct sock *, struct msghdr *,
665 int inet6_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
668 struct sock *sk = sock->sk;
822 int inet6_sk_rebuild_header(struct sock *sk)
865 bool ipv6_opt_accepted(const struct sock *sk, const struct sk_buff *skb,