Lines Matching refs:sock
93 static __inline__ struct ipv6_pinfo *inet6_sk_generic(struct sock *sk) in inet6_sk_generic()
100 static int inet6_create(struct net *net, struct socket *sock, int protocol, in inet6_create() argument
105 struct sock *sk; in inet6_create()
119 list_for_each_entry_rcu(answer, &inetsw6[sock->type], list) { in inet6_create()
147 PF_INET6, protocol, sock->type); in inet6_create()
161 if (sock->type == SOCK_RAW && !kern && in inet6_create()
165 sock->ops = answer->ops; in inet6_create()
177 sock_init_data(sock, sk); in inet6_create()
186 if (SOCK_RAW == sock->type) { in inet6_create()
256 int inet6_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) in inet6_bind() argument
259 struct sock *sk = sock->sk; in inet6_bind()
279 if ((addr_type & IPV6_ADDR_MULTICAST) && sock->type == SOCK_STREAM) in inet6_bind()
396 int inet6_release(struct socket *sock) in inet6_release() argument
398 struct sock *sk = sock->sk; in inet6_release()
409 return inet_release(sock); in inet6_release()
413 void inet6_destroy_sock(struct sock *sk) in inet6_destroy_sock()
446 int inet6_getname(struct socket *sock, struct sockaddr *uaddr, in inet6_getname() argument
450 struct sock *sk = sock->sk; in inet6_getname()
482 int inet6_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) in inet6_ioctl() argument
484 struct sock *sk = sock->sk; in inet6_ioctl()
644 int inet6_sk_rebuild_header(struct sock *sk) in inet6_sk_rebuild_header()
686 bool ipv6_opt_accepted(const struct sock *sk, const struct sk_buff *skb, in ipv6_opt_accepted()