Lines Matching defs:sock
92 static __inline__ struct ipv6_pinfo *inet6_sk_generic(struct sock *sk)
99 static int inet6_create(struct net *net, struct socket *sock, int protocol,
104 struct sock *sk;
112 if (sock->type != SOCK_RAW &&
113 sock->type != SOCK_DGRAM &&
121 list_for_each_entry_rcu(answer, &inetsw6[sock->type], list) {
149 PF_INET6, protocol, sock->type);
163 if (sock->type == SOCK_RAW && !kern && !capable(CAP_NET_RAW))
166 sock->ops = answer->ops;
179 sock_init_data(sock, sk);
189 if (SOCK_RAW == sock->type) {
257 int inet6_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len)
260 struct sock *sk = sock->sk;
276 if ((addr_type & IPV6_ADDR_MULTICAST) && sock->type == SOCK_STREAM)
391 int inet6_release(struct socket *sock)
393 struct sock *sk = sock->sk;
404 return inet_release(sock);
409 void inet6_destroy_sock(struct sock *sk)
438 int inet6_getname(struct socket *sock, struct sockaddr *uaddr,
442 struct sock *sk = sock->sk;
475 int inet6_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
477 struct sock *sk = sock->sk;
644 int inet6_sk_rebuild_header(struct sock *sk)
691 int ipv6_opt_accepted(struct sock *sk, struct sk_buff *skb)