/linux-4.4.14/security/tomoyo/ |
D | network.c | 35 [SOCK_RAW] = "raw", 150 [SOCK_RAW] = { 527 if (address->protocol == SOCK_RAW) in tomoyo_check_inet_address() 692 case SOCK_RAW: in tomoyo_socket_connect_permission() 729 case SOCK_RAW: in tomoyo_socket_bind_permission() 760 (type != SOCK_DGRAM && type != SOCK_RAW)) in tomoyo_socket_sendmsg_permission()
|
/linux-4.4.14/net/nfc/ |
D | rawsock.c | 78 if (sock->type == SOCK_RAW) in rawsock_release() 344 if ((sock->type != SOCK_SEQPACKET) && (sock->type != SOCK_RAW)) in rawsock_create() 347 if (sock->type == SOCK_RAW) in rawsock_create() 360 if (sock->type == SOCK_RAW) in rawsock_create()
|
D | llcp_sock.c | 634 if (sock->type == SOCK_RAW) in llcp_sock_release() 865 sk->sk_type == SOCK_RAW) { in llcp_sock_recvmsg() 1004 sock->type != SOCK_RAW) in llcp_sock_create() 1007 if (sock->type == SOCK_RAW) in llcp_sock_create()
|
/linux-4.4.14/arch/mips/include/asm/ |
D | socket.h | 32 SOCK_RAW = 3, enumerator
|
/linux-4.4.14/Documentation/networking/timestamping/ |
D | txtimestamp.c | 282 if (cfg_proto == SOCK_RAW) { in do_test() 336 if (cfg_proto == SOCK_RAW) { in do_test() 428 cfg_proto = SOCK_RAW; in parse_opt() 433 cfg_proto = SOCK_RAW; in parse_opt()
|
/linux-4.4.14/net/ipv6/ |
D | ipv6_sockglue.c | 66 if (sk->sk_type != SOCK_RAW || inet_sk(sk)->inet_num != IPPROTO_RAW) in ip6_ra_control() 177 if (sk->sk_type == SOCK_RAW) in do_ipv6_setsockopt() 889 if (level == SOL_IP && sk->sk_type != SOCK_RAW) in ipv6_setsockopt() 916 if (level == SOL_IP && sk->sk_type != SOCK_RAW) { in compat_ipv6_setsockopt() 1326 if (level == SOL_IP && sk->sk_type != SOCK_RAW) in ipv6_getsockopt() 1359 if (level == SOL_IP && sk->sk_type != SOCK_RAW) { in compat_ipv6_getsockopt()
|
D | af_inet6.c | 161 if (sock->type == SOCK_RAW && !kern && in inet6_create() 186 if (SOCK_RAW == sock->type) { in inet6_create()
|
D | icmp.c | 849 SOCK_RAW, IPPROTO_ICMPV6, net); in icmpv6_sk_init()
|
D | raw.c | 1327 .type = SOCK_RAW,
|
D | mcast.c | 2898 SOCK_RAW, IPPROTO_ICMPV6, net); in igmp6_net_init() 2908 SOCK_RAW, IPPROTO_ICMPV6, net); in igmp6_net_init()
|
D | ndisc.c | 1780 SOCK_RAW, IPPROTO_ICMPV6, net); in ndisc_net_init()
|
D | ip6_output.c | 1327 if (sk->sk_type == SOCK_DGRAM || sk->sk_type == SOCK_RAW) { in __ip6_append_data()
|
D | tcp_ipv6.c | 1918 SOCK_RAW, IPPROTO_TCP, net); in tcpv6_net_init()
|
D | ip6mr.c | 1677 if (sk->sk_type != SOCK_RAW || in ip6_mroute_setsockopt()
|
/linux-4.4.14/samples/bpf/ |
D | libbpf.c | 130 sock = socket(PF_PACKET, SOCK_RAW | SOCK_NONBLOCK | SOCK_CLOEXEC, htons(ETH_P_ALL)); in open_raw_sock()
|
/linux-4.4.14/net/bluetooth/cmtp/ |
D | sock.c | 205 if (sock->type != SOCK_RAW) in cmtp_sock_create()
|
/linux-4.4.14/net/bluetooth/bnep/ |
D | sock.c | 202 if (sock->type != SOCK_RAW) in bnep_sock_create()
|
/linux-4.4.14/net/bluetooth/hidp/ |
D | sock.c | 235 if (sock->type != SOCK_RAW) in hidp_sock_create()
|
/linux-4.4.14/net/bluetooth/ |
D | l2cap_sock.c | 562 && sk->sk_type != SOCK_RAW) { in l2cap_sock_getsockopt() 1535 case SOCK_RAW: in l2cap_sock_init() 1617 sock->type != SOCK_DGRAM && sock->type != SOCK_RAW) in l2cap_sock_create() 1620 if (sock->type == SOCK_RAW && !kern && !capable(CAP_NET_RAW)) in l2cap_sock_create()
|
D | hci_sock.c | 1466 if (sock->type != SOCK_RAW) in hci_sock_create()
|
/linux-4.4.14/tools/testing/selftests/net/ |
D | psock_tpacket.c | 113 int ret, sock = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); in pfsocket() 367 rcv_sock = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); in walk_v1_v2_tx()
|
/linux-4.4.14/include/linux/ |
D | net.h | 66 SOCK_RAW = 3, enumerator
|
/linux-4.4.14/Documentation/networking/ |
D | packet_mmap.txt | 92 where mode is SOCK_RAW for the raw interface were link level 182 So, whatever you choose for the socket mode (SOCK_DGRAM or SOCK_RAW), 187 the frame (for payload alignment with SOCK_RAW mode for instance) you 188 can set tp_net (with SOCK_DGRAM) or tp_mac (with SOCK_RAW). In order 627 int err, fd = socket(AF_PACKET, SOCK_RAW, htons(ETH_P_IP)); 814 fd = socket(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
|
D | ieee802154.txt | 36 One can use SOCK_RAW for passing raw data towards device xmit function. YMMV.
|
D | can.txt | 19 4.1 RAW protocol sockets with can_filters (SOCK_RAW) 250 s = socket(PF_CAN, SOCK_RAW, CAN_RAW); 304 s = socket(PF_CAN, SOCK_RAW, CAN_RAW); 420 4.1 RAW protocol sockets with can_filters (SOCK_RAW)
|
D | filter.txt | 125 sock = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
|
/linux-4.4.14/net/ipv4/ |
D | ip_sockglue.c | 323 if (sk->sk_type != SOCK_RAW || inet_sk(sk)->inet_num == IPPROTO_RAW) in ip_ra_control() 734 if (sk->sk_type != SOCK_RAW) { in do_ip_setsockopt() 741 if (sk->sk_type != SOCK_RAW) { in do_ip_setsockopt()
|
D | af_inet.c | 311 if (sock->type == SOCK_RAW && !kern && in inet_create() 336 if (SOCK_RAW == sock->type) { in inet_create() 1022 .type = SOCK_RAW,
|
D | icmp.c | 1184 SOCK_RAW, IPPROTO_ICMP, net); in icmp_sk_init()
|
D | ipmr.c | 1278 if (sk->sk_type != SOCK_RAW || in ip_mroute_setsockopt() 1441 if (sk->sk_type != SOCK_RAW || in ip_mroute_getsockopt()
|
D | tcp_ipv4.c | 2375 res = inet_ctl_sock_create(&sk, PF_INET, SOCK_RAW, in tcp_sk_init()
|
/linux-4.4.14/Documentation/accounting/ |
D | getdelays.c | 93 fd = socket(AF_NETLINK, SOCK_RAW, protocol); in create_nl_socket()
|
/linux-4.4.14/net/can/ |
D | raw.c | 851 .type = SOCK_RAW,
|
/linux-4.4.14/net/packet/ |
D | af_packet.c | 2505 if (po->sk.sk_socket->type == SOCK_RAW) in tpacket_snd() 2678 if (sock->type == SOCK_RAW) in packet_snd() 2765 if (sock->type == SOCK_RAW && in packet_snd() 3056 if (sock->type != SOCK_DGRAM && sock->type != SOCK_RAW && in packet_create() 3644 if (sock->type != SOCK_RAW) in packet_setsockopt()
|
/linux-4.4.14/net/appletalk/ |
D | ddp.c | 1030 if (sock->type != SOCK_RAW && sock->type != SOCK_DGRAM) in atalk_create() 1751 if (sk->sk_type != SOCK_RAW) { in atalk_recvmsg()
|
/linux-4.4.14/net/ax25/ |
D | af_ax25.c | 250 s->sk->sk_type == SOCK_RAW && in ax25_send_to_raw() 854 case SOCK_RAW: in ax25_create()
|
/linux-4.4.14/drivers/isdn/mISDN/ |
D | socket.c | 763 if (sock->type != SOCK_RAW) in base_sock_create()
|
/linux-4.4.14/net/bluetooth/rfcomm/ |
D | sock.c | 322 if (sock->type != SOCK_STREAM && sock->type != SOCK_RAW) in rfcomm_sock_create()
|
/linux-4.4.14/net/ieee802154/ |
D | socket.c | 1001 case SOCK_RAW: in ieee802154_create()
|
/linux-4.4.14/drivers/vhost/ |
D | net.c | 824 if (sock->sk->sk_type != SOCK_RAW) { in get_raw_socket()
|
/linux-4.4.14/drivers/net/ |
D | macvtap.c | 534 q->sock.type = SOCK_RAW; in macvtap_open()
|
/linux-4.4.14/net/unix/ |
D | af_unix.c | 812 case SOCK_RAW: in unix_create()
|
/linux-4.4.14/net/netlink/ |
D | af_netlink.c | 1218 if (sock->type != SOCK_RAW && sock->type != SOCK_DGRAM) in netlink_create()
|
/linux-4.4.14/net/key/ |
D | af_key.c | 146 if (sock->type != SOCK_RAW) in pfkey_create()
|