/linux-2.6.39/net/bluetooth/ |
D | l2cap_sock.c | 179 if ((sk->sk_type == SOCK_SEQPACKET || sk->sk_type == SOCK_STREAM) in l2cap_sock_connect() 222 sk->sk_type != SOCK_RAW && !la.l2_cid) { in l2cap_sock_connect() 488 if (sk->sk_type != SOCK_SEQPACKET && sk->sk_type != SOCK_STREAM in l2cap_sock_getsockopt() 489 && sk->sk_type != SOCK_RAW) { in l2cap_sock_getsockopt() 632 if (sk->sk_type != SOCK_SEQPACKET && sk->sk_type != SOCK_STREAM in l2cap_sock_setsockopt() 633 && sk->sk_type != SOCK_RAW) { in l2cap_sock_setsockopt() 727 if (sk->sk_type == SOCK_DGRAM) { in l2cap_sock_sendmsg() 899 if ((sk->sk_type == SOCK_SEQPACKET || in __l2cap_sock_close() 900 sk->sk_type == SOCK_STREAM) && in __l2cap_sock_close() 909 if ((sk->sk_type == SOCK_SEQPACKET || in __l2cap_sock_close() [all …]
|
D | l2cap_core.c | 183 if (sk->sk_type == SOCK_SEQPACKET || sk->sk_type == SOCK_STREAM) { in __l2cap_chan_add() 194 } else if (sk->sk_type == SOCK_DGRAM) { in __l2cap_chan_add() 263 if (sk->sk_type == SOCK_RAW) { in l2cap_get_auth_type() 504 if (sk->sk_type != SOCK_SEQPACKET && in l2cap_conn_start() 505 sk->sk_type != SOCK_STREAM) { in l2cap_conn_start() 689 if (sk->sk_type != SOCK_SEQPACKET && in l2cap_conn_ready() 690 sk->sk_type != SOCK_STREAM) { in l2cap_conn_ready() 885 if (sk->sk_type != SOCK_SEQPACKET && in l2cap_do_connect() 886 sk->sk_type != SOCK_STREAM) { in l2cap_do_connect() 1398 if (sk->sk_type != SOCK_RAW) in l2cap_raw_recv() [all …]
|
D | sco.c | 398 sk->sk_type = parent->sk_type; in sco_sock_init() 506 if (sk->sk_type != SOCK_SEQPACKET) in sco_sock_connect()
|
/linux-2.6.39/net/unix/ |
D | af_unix.c | 402 if (sk->sk_type == SOCK_STREAM || sk->sk_type == SOCK_SEQPACKET) { in unix_release_sock() 737 addr->hash ^= sk->sk_type; in unix_autobind() 774 if (u->sk_type == type) in unix_find_other() 780 if (u->sk_type != type) { in unix_find_other() 845 addr->hash = hash ^ sk->sk_type; in unix_bind() 892 sk->sk_type, hash)) { in unix_bind() 1093 other = unix_find_other(net, sunaddr, addr_len, sk->sk_type, hash, &err); in unix_stream_connect() 1173 newsk->sk_type = sk->sk_type; in unix_stream_connect() 1235 if (ska->sk_type != SOCK_DGRAM) { in unix_socketpair() 1474 other = unix_find_other(net, sunaddr, namelen, sk->sk_type, in unix_dgram_sendmsg() [all …]
|
/linux-2.6.39/net/ax25/ |
D | af_ax25.c | 169 s->sk->sk_type == type && s->sk->sk_state == TCP_LISTEN) { in ax25_find_listener() 197 s->sk->sk_type == type) { in ax25_get_socket() 221 if (s->sk && s->sk->sk_type != SOCK_SEQPACKET) in ax25_find_cb() 257 s->sk->sk_type == SOCK_RAW && in ax25_send_to_raw() 651 if (sk->sk_type == SOCK_SEQPACKET && in ax25_setsockopt() 780 if (sk->sk_type == SOCK_SEQPACKET && sk->sk_state != TCP_LISTEN) { in ax25_listen() 892 switch (osk->sk_type) { in ax25_make_new() 905 sk->sk_type = osk->sk_type; in ax25_make_new() 961 if (sk->sk_type == SOCK_SEQPACKET) { in ax25_release() 1162 if (sk->sk_state == TCP_ESTABLISHED && sk->sk_type == SOCK_SEQPACKET) { in ax25_connect() [all …]
|
/linux-2.6.39/net/llc/ |
D | af_llc.c | 102 else if (sk->sk_type == SOCK_STREAM) in llc_ui_header_len() 136 sk->sk_type = sock->type; in llc_ui_sk_init() 447 if (unlikely(sk->sk_type != SOCK_STREAM)) in llc_ui_connect() 515 if (unlikely(sk->sk_type != SOCK_STREAM)) in llc_ui_listen() 656 if (unlikely(sk->sk_type != SOCK_STREAM)) in llc_ui_accept() 725 if (unlikely(sk->sk_type == SOCK_STREAM && sk->sk_state == TCP_LISTEN)) in llc_ui_recvmsg() 784 if (sk->sk_type == SOCK_STREAM && sk->sk_state == TCP_CLOSE) { in llc_ui_recvmsg() 842 if (sk->sk_type != SOCK_STREAM) in llc_ui_recvmsg() 918 if (sk->sk_type == SOCK_DGRAM || addr->sllc_ua) { in llc_ui_sendmsg() 934 if (!(sk->sk_type == SOCK_STREAM && !addr->sllc_ua)) in llc_ui_sendmsg()
|
D | llc_conn.c | 114 if (sk->sk_type == SOCK_STREAM && in llc_conn_state_process() 153 if (sk->sk_type == SOCK_STREAM && in llc_conn_state_process() 167 if (sk->sk_type == SOCK_STREAM && sk->sk_state == TCP_CLOSING) { in llc_conn_state_process() 551 return sk->sk_type == SOCK_STREAM && sk->sk_state == TCP_LISTEN && in llc_listener_match()
|
D | llc_if.c | 132 if (sk->sk_type != SOCK_STREAM || sk->sk_state != TCP_ESTABLISHED || in llc_send_disc()
|
D | llc_sap.c | 307 return sk->sk_type == SOCK_DGRAM && in llc_dgram_match() 363 return sk->sk_type == SOCK_DGRAM && in llc_mcast_match()
|
D | llc_proc.c | 139 seq_printf(seq, "%2X %2X ", sk->sk_type, 0); in llc_seq_socket_show()
|
/linux-2.6.39/net/bluetooth/rfcomm/ |
D | sock.c | 262 sk->sk_type = parent->sk_type; in rfcomm_sock_init() 365 if (sk->sk_type != SOCK_STREAM) { in rfcomm_sock_bind() 408 if (sk->sk_type != SOCK_STREAM) { in rfcomm_sock_connect() 444 if (sk->sk_type != SOCK_STREAM) { in rfcomm_sock_listen() 493 if (sk->sk_type != SOCK_STREAM) { in rfcomm_sock_accept() 697 if (sk->sk_type != SOCK_STREAM) { in rfcomm_sock_setsockopt() 829 if (sk->sk_type != SOCK_STREAM) { in rfcomm_sock_getsockopt()
|
/linux-2.6.39/net/ipv6/ |
D | ipv6_sockglue.c | 66 if (sk->sk_type != SOCK_RAW || inet_sk(sk)->inet_num != IPPROTO_RAW) in ip6_ra_control() 158 if (sk->sk_type == SOCK_RAW) in do_ipv6_setsockopt() 500 if (sk->sk_type == SOCK_STREAM) in do_ipv6_setsockopt() 520 if (sk->sk_type == SOCK_STREAM) in do_ipv6_setsockopt() 822 if (level == SOL_IP && sk->sk_type != SOCK_RAW) in ipv6_setsockopt() 850 if (level == SOL_IP && sk->sk_type != SOCK_RAW) { in compat_ipv6_setsockopt() 960 if (sk->sk_type != SOCK_STREAM) in do_ipv6_getsockopt() 1219 if (level == SOL_IP && sk->sk_type != SOCK_RAW) in ipv6_getsockopt() 1253 if (level == SOL_IP && sk->sk_type != SOCK_RAW) { in compat_ipv6_getsockopt()
|
/linux-2.6.39/net/irda/ |
D | af_irda.c | 203 switch (sk->sk_type) { in irda_connect_confirm() 264 switch (sk->sk_type) { in irda_connect_indication() 757 if ((sk->sk_type != SOCK_STREAM) && (sk->sk_type != SOCK_SEQPACKET) && in irda_listen() 758 (sk->sk_type != SOCK_DGRAM)) in irda_listen() 794 if ((sk->sk_type == SOCK_DGRAM) && in irda_bind() 868 if ((sk->sk_type != SOCK_STREAM) && (sk->sk_type != SOCK_SEQPACKET) && in irda_accept() 869 (sk->sk_type != SOCK_DGRAM)) in irda_accept() 983 if ((sk->sk_type == SOCK_DGRAM) && (sk->sk_protocol == IRDAPROTO_ULTRA)) in irda_connect() 1793 switch (sk->sk_type) { in irda_poll() 2133 if (sk->sk_type != SOCK_SEQPACKET) { in irda_setsockopt()
|
/linux-2.6.39/net/iucv/ |
D | af_iucv.c | 446 sk->sk_type = parent->sk_type; in iucv_sock_init() 685 if (sk->sk_type != SOCK_STREAM && sk->sk_type != SOCK_SEQPACKET) in iucv_sock_connect() 906 if (sk->sk_type == SOCK_SEQPACKET && !(msg->msg_flags & MSG_EOR)) in iucv_sock_sendmsg() 1112 if (sk->sk_type == SOCK_STREAM && in iucv_process_message() 1194 if (sk->sk_type == SOCK_SEQPACKET) { in iucv_sock_recvmsg() 1216 if (sk->sk_type == SOCK_STREAM) { in iucv_sock_recvmsg() 1247 if (sk->sk_type == SOCK_SEQPACKET && (flags & MSG_TRUNC)) in iucv_sock_recvmsg() 1535 nsk = iucv_sock_alloc(NULL, sk->sk_type, GFP_ATOMIC); in iucv_callback_connreq()
|
/linux-2.6.39/net/ipv4/ |
D | ip_sockglue.c | 259 if (sk->sk_type != SOCK_RAW || inet_sk(sk)->inet_num == IPPROTO_RAW) in ip_ra_control() 571 if (sk->sk_type == SOCK_STREAM) { in do_ip_setsockopt() 589 if (sk->sk_type != SOCK_RAW) { in do_ip_setsockopt() 596 if (sk->sk_type != SOCK_RAW) { in do_ip_setsockopt() 613 if (sk->sk_type == SOCK_STREAM) in do_ip_setsockopt() 633 if (sk->sk_type == SOCK_STREAM) in do_ip_setsockopt() 1225 if (sk->sk_type != SOCK_STREAM) in do_ip_getsockopt()
|
/linux-2.6.39/security/tomoyo/ |
D | realpath.c | 113 sk->sk_type, sk->sk_protocol); in tomoyo_realpath_from_path()
|
/linux-2.6.39/net/rds/ |
D | tcp_listen.c | 55 ret = sock_create_lite(sock->sk->sk_family, sock->sk->sk_type, in rds_tcp_accept_one()
|
/linux-2.6.39/net/netrom/ |
D | af_netrom.c | 481 if (osk->sk_type != SOCK_SEQPACKET) in nr_make_new() 492 sk->sk_type = osk->sk_type; in nr_make_new() 786 if (sk->sk_type != SOCK_SEQPACKET) { in nr_accept()
|
/linux-2.6.39/net/core/ |
D | datagram.c | 66 return sk->sk_type == SOCK_SEQPACKET || sk->sk_type == SOCK_STREAM; in connection_based()
|
D | sock.c | 818 v.val = sk->sk_type; in sock_getsockopt() 1706 if (sk->sk_type == SOCK_STREAM) { in __sk_mem_schedule() 1729 if (kind == SK_MEM_SEND && sk->sk_type == SOCK_STREAM) { in __sk_mem_schedule() 1990 sk->sk_type = sock->type; in sock_init_data()
|
/linux-2.6.39/net/rose/ |
D | af_rose.c | 564 if (osk->sk_type != SOCK_SEQPACKET) in rose_make_new() 581 sk->sk_type = osk->sk_type; in rose_make_new() 892 if (sk->sk_type != SOCK_SEQPACKET) { in rose_accept()
|
/linux-2.6.39/net/appletalk/ |
D | atalk_proc.c | 181 s->sk_type, ntohs(at->src_net), at->src_node, at->src_port, in atalk_seq_socket_show()
|
/linux-2.6.39/net/phonet/ |
D | pep-gprs.c | 266 if (unlikely(sk->sk_type == SOCK_STREAM)) in gprs_attach()
|
/linux-2.6.39/net/x25/ |
D | af_x25.c | 602 if (osk->sk_type != SOCK_SEQPACKET) in x25_make_new() 610 sk->sk_type = osk->sk_type; in x25_make_new() 866 if (sk->sk_type != SOCK_SEQPACKET) in x25_accept()
|
/linux-2.6.39/net/packet/ |
D | af_packet.c | 588 if (sk->sk_type != SOCK_DGRAM) in packet_rcv() 700 if (sk->sk_type != SOCK_DGRAM) in tpacket_rcv() 719 if (sk->sk_type == SOCK_DGRAM) { in tpacket_rcv() 2712 s->sk_type, in packet_seq_show()
|