Lines Matching refs:type
147 int addr_len, int type)
154 hash ^= type;
731 if (sock->type != SOCK_STREAM && sock->type != SOCK_SEQPACKET)
817 if (sock->type == SOCK_DGRAM || s_state == TCP_ESTABLISHED)
952 static struct sock *unix_create1(struct net *net, struct socket *sock, int kern, int type)
964 if (type == SOCK_STREAM)
1013 switch (sock->type) {
1022 sock->type = SOCK_DGRAM;
1034 sk = unix_create1(net, sock, kern, sock->type);
1056 int type)
1082 if (sk->sk_type == type)
1101 int addr_len, int type)
1103 unsigned int hash = unix_abstract_hash(sunaddr, addr_len, type);
1120 int addr_len, int type)
1125 sk = unix_find_bsd(sunaddr, addr_len, type);
1127 sk = unix_find_abstract(net, sunaddr, addr_len, type);
1379 other = unix_find_other(sock_net(sk), sunaddr, alen, sock->type);
1498 newsk = unix_create1(net, NULL, 0, sock->type);
1700 if (sock->type != SOCK_STREAM && sock->type != SOCK_SEQPACKET)