/linux-4.1.27/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.1.27/net/nfc/ |
D | rawsock.c | 78 if (sock->type == SOCK_RAW) in rawsock_release() 343 if ((sock->type != SOCK_SEQPACKET) && (sock->type != SOCK_RAW)) in rawsock_create() 346 if (sock->type == SOCK_RAW) in rawsock_create() 359 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.1.27/arch/mips/include/asm/ |
D | socket.h | 32 SOCK_RAW = 3, enumerator
|
/linux-4.1.27/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.1.27/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 | 846 SOCK_RAW, IPPROTO_ICMPV6, net); in icmpv6_sk_init()
|
D | raw.c | 1322 .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 | ip6_output.c | 1301 if (sk->sk_type == SOCK_DGRAM || sk->sk_type == SOCK_RAW) { in __ip6_append_data()
|
D | ndisc.c | 1744 SOCK_RAW, IPPROTO_ICMPV6, net); in ndisc_net_init()
|
D | tcp_ipv6.c | 1898 SOCK_RAW, IPPROTO_TCP, net); in tcpv6_net_init()
|
D | ip6mr.c | 1682 if (sk->sk_type != SOCK_RAW || in ip6_mroute_setsockopt()
|
/linux-4.1.27/samples/bpf/ |
D | libbpf.c | 111 sock = socket(PF_PACKET, SOCK_RAW | SOCK_NONBLOCK | SOCK_CLOEXEC, htons(ETH_P_ALL)); in open_raw_sock()
|
/linux-4.1.27/net/bluetooth/cmtp/ |
D | sock.c | 205 if (sock->type != SOCK_RAW) in cmtp_sock_create()
|
/linux-4.1.27/net/bluetooth/bnep/ |
D | sock.c | 202 if (sock->type != SOCK_RAW) in bnep_sock_create()
|
/linux-4.1.27/net/bluetooth/hidp/ |
D | sock.c | 235 if (sock->type != SOCK_RAW) in hidp_sock_create()
|
/linux-4.1.27/net/bluetooth/ |
D | l2cap_sock.c | 562 && sk->sk_type != SOCK_RAW) { in l2cap_sock_getsockopt() 1487 case SOCK_RAW: in l2cap_sock_init() 1569 sock->type != SOCK_DGRAM && sock->type != SOCK_RAW) in l2cap_sock_create() 1572 if (sock->type == SOCK_RAW && !kern && !capable(CAP_NET_RAW)) in l2cap_sock_create()
|
D | hci_sock.c | 1387 if (sock->type != SOCK_RAW) in hci_sock_create()
|
/linux-4.1.27/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.1.27/include/linux/ |
D | net.h | 62 SOCK_RAW = 3, enumerator
|
/linux-4.1.27/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); 301 s = socket(PF_CAN, SOCK_RAW, CAN_RAW); 417 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.1.27/net/ipv4/ |
D | af_inet.c | 313 if (sock->type == SOCK_RAW && !kern && in inet_create() 338 if (SOCK_RAW == sock->type) { in inet_create() 1021 .type = SOCK_RAW,
|
D | ip_sockglue.c | 323 if (sk->sk_type != SOCK_RAW || inet_sk(sk)->inet_num == IPPROTO_RAW) in ip_ra_control() 733 if (sk->sk_type != SOCK_RAW) { in do_ip_setsockopt() 740 if (sk->sk_type != SOCK_RAW) { in do_ip_setsockopt()
|
D | icmp.c | 1160 SOCK_RAW, IPPROTO_ICMP, net); in icmp_sk_init()
|
D | ipmr.c | 1287 if (sk->sk_type != SOCK_RAW || in ip_mroute_setsockopt() 1450 if (sk->sk_type != SOCK_RAW || in ip_mroute_getsockopt()
|
D | tcp_ipv4.c | 2410 res = inet_ctl_sock_create(&sk, PF_INET, SOCK_RAW, in tcp_sk_init()
|
/linux-4.1.27/Documentation/accounting/ |
D | getdelays.c | 93 fd = socket(AF_NETLINK, SOCK_RAW, protocol); in create_nl_socket()
|
/linux-4.1.27/net/can/ |
D | raw.c | 851 .type = SOCK_RAW,
|
/linux-4.1.27/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.1.27/net/ax25/ |
D | af_ax25.c | 251 s->sk->sk_type == SOCK_RAW && in ax25_send_to_raw() 855 case SOCK_RAW: in ax25_create()
|
/linux-4.1.27/drivers/isdn/mISDN/ |
D | socket.c | 763 if (sock->type != SOCK_RAW) in base_sock_create()
|
/linux-4.1.27/net/packet/ |
D | af_packet.c | 2296 if (po->sk.sk_socket->type == SOCK_RAW) in tpacket_snd() 2461 if (sock->type == SOCK_RAW) in packet_snd() 2836 if (sock->type != SOCK_DGRAM && sock->type != SOCK_RAW && in packet_create() 3419 if (sock->type != SOCK_RAW) in packet_setsockopt()
|
/linux-4.1.27/net/bluetooth/rfcomm/ |
D | sock.c | 322 if (sock->type != SOCK_STREAM && sock->type != SOCK_RAW) in rfcomm_sock_create()
|
/linux-4.1.27/net/ieee802154/ |
D | socket.c | 1009 case SOCK_RAW: in ieee802154_create()
|
/linux-4.1.27/drivers/vhost/ |
D | net.c | 825 if (sock->sk->sk_type != SOCK_RAW) { in get_raw_socket()
|
/linux-4.1.27/drivers/net/ |
D | macvtap.c | 485 q->sock.type = SOCK_RAW; in macvtap_open()
|
/linux-4.1.27/net/unix/ |
D | af_unix.c | 794 case SOCK_RAW: in unix_create()
|
/linux-4.1.27/net/netlink/ |
D | af_netlink.c | 1203 if (sock->type != SOCK_RAW && sock->type != SOCK_DGRAM) in netlink_create()
|
/linux-4.1.27/net/key/ |
D | af_key.c | 146 if (sock->type != SOCK_RAW) in pfkey_create()
|