Lines Matching defs:sock
103 static __inline__ struct ipv6_pinfo *inet6_sk_generic(struct sock *sk)
110 void inet6_sock_destruct(struct sock *sk)
117 static int inet6_create(struct net *net, struct socket *sock, int protocol,
122 struct sock *sk;
136 list_for_each_entry_rcu(answer, &inetsw6[sock->type], list) {
164 PF_INET6, protocol, sock->type);
178 if (sock->type == SOCK_RAW && !kern &&
182 sock->ops = answer->ops;
194 sock_init_data(sock, sk);
206 if (SOCK_RAW == sock->type) {
287 static int __inet6_bind(struct sock *sk, struct sockaddr *uaddr, int addr_len,
449 int inet6_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len)
451 struct sock *sk = sock->sk;
474 int inet6_release(struct socket *sock)
476 struct sock *sk = sock->sk;
487 return inet_release(sock);
491 void inet6_destroy_sock(struct sock *sk)
518 void inet6_cleanup_sock(struct sock *sk)
527 int inet6_getname(struct socket *sock, struct sockaddr *uaddr,
531 struct sock *sk = sock->sk;
566 int inet6_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
569 struct sock *sk = sock->sk;
614 static int inet6_compat_routing_ioctl(struct sock *sk, unsigned int cmd,
634 int inet6_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
637 struct sock *sk = sock->sk;
650 INDIRECT_CALLABLE_DECLARE(int udpv6_sendmsg(struct sock *, struct msghdr *,
652 int inet6_sendmsg(struct socket *sock, struct msghdr *msg, size_t size)
654 struct sock *sk = sock->sk;
666 INDIRECT_CALLABLE_DECLARE(int udpv6_recvmsg(struct sock *, struct msghdr *,
668 int inet6_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
671 struct sock *sk = sock->sk;
826 int inet6_sk_rebuild_header(struct sock *sk)
869 bool ipv6_opt_accepted(const struct sock *sk, const struct sk_buff *skb,