Home
last modified time | relevance | path

Searched refs:SOCK_RAW (Results 1 – 44 of 44) sorted by relevance

/linux-4.4.14/security/tomoyo/
Dnetwork.c35 [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/
Drawsock.c78 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()
Dllcp_sock.c634 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/
Dsocket.h32 SOCK_RAW = 3, enumerator
/linux-4.4.14/Documentation/networking/timestamping/
Dtxtimestamp.c282 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/
Dipv6_sockglue.c66 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()
Daf_inet6.c161 if (sock->type == SOCK_RAW && !kern && in inet6_create()
186 if (SOCK_RAW == sock->type) { in inet6_create()
Dicmp.c849 SOCK_RAW, IPPROTO_ICMPV6, net); in icmpv6_sk_init()
Draw.c1327 .type = SOCK_RAW,
Dmcast.c2898 SOCK_RAW, IPPROTO_ICMPV6, net); in igmp6_net_init()
2908 SOCK_RAW, IPPROTO_ICMPV6, net); in igmp6_net_init()
Dndisc.c1780 SOCK_RAW, IPPROTO_ICMPV6, net); in ndisc_net_init()
Dip6_output.c1327 if (sk->sk_type == SOCK_DGRAM || sk->sk_type == SOCK_RAW) { in __ip6_append_data()
Dtcp_ipv6.c1918 SOCK_RAW, IPPROTO_TCP, net); in tcpv6_net_init()
Dip6mr.c1677 if (sk->sk_type != SOCK_RAW || in ip6_mroute_setsockopt()
/linux-4.4.14/samples/bpf/
Dlibbpf.c130 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/
Dsock.c205 if (sock->type != SOCK_RAW) in cmtp_sock_create()
/linux-4.4.14/net/bluetooth/bnep/
Dsock.c202 if (sock->type != SOCK_RAW) in bnep_sock_create()
/linux-4.4.14/net/bluetooth/hidp/
Dsock.c235 if (sock->type != SOCK_RAW) in hidp_sock_create()
/linux-4.4.14/net/bluetooth/
Dl2cap_sock.c562 && 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()
Dhci_sock.c1466 if (sock->type != SOCK_RAW) in hci_sock_create()
/linux-4.4.14/tools/testing/selftests/net/
Dpsock_tpacket.c113 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/
Dnet.h66 SOCK_RAW = 3, enumerator
/linux-4.4.14/Documentation/networking/
Dpacket_mmap.txt92 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));
Dieee802154.txt36 One can use SOCK_RAW for passing raw data towards device xmit function. YMMV.
Dcan.txt19 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)
Dfilter.txt125 sock = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
/linux-4.4.14/net/ipv4/
Dip_sockglue.c323 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()
Daf_inet.c311 if (sock->type == SOCK_RAW && !kern && in inet_create()
336 if (SOCK_RAW == sock->type) { in inet_create()
1022 .type = SOCK_RAW,
Dicmp.c1184 SOCK_RAW, IPPROTO_ICMP, net); in icmp_sk_init()
Dipmr.c1278 if (sk->sk_type != SOCK_RAW || in ip_mroute_setsockopt()
1441 if (sk->sk_type != SOCK_RAW || in ip_mroute_getsockopt()
Dtcp_ipv4.c2375 res = inet_ctl_sock_create(&sk, PF_INET, SOCK_RAW, in tcp_sk_init()
/linux-4.4.14/Documentation/accounting/
Dgetdelays.c93 fd = socket(AF_NETLINK, SOCK_RAW, protocol); in create_nl_socket()
/linux-4.4.14/net/can/
Draw.c851 .type = SOCK_RAW,
/linux-4.4.14/net/packet/
Daf_packet.c2505 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/
Dddp.c1030 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/
Daf_ax25.c250 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/
Dsocket.c763 if (sock->type != SOCK_RAW) in base_sock_create()
/linux-4.4.14/net/bluetooth/rfcomm/
Dsock.c322 if (sock->type != SOCK_STREAM && sock->type != SOCK_RAW) in rfcomm_sock_create()
/linux-4.4.14/net/ieee802154/
Dsocket.c1001 case SOCK_RAW: in ieee802154_create()
/linux-4.4.14/drivers/vhost/
Dnet.c824 if (sock->sk->sk_type != SOCK_RAW) { in get_raw_socket()
/linux-4.4.14/drivers/net/
Dmacvtap.c534 q->sock.type = SOCK_RAW; in macvtap_open()
/linux-4.4.14/net/unix/
Daf_unix.c812 case SOCK_RAW: in unix_create()
/linux-4.4.14/net/netlink/
Daf_netlink.c1218 if (sock->type != SOCK_RAW && sock->type != SOCK_DGRAM) in netlink_create()
/linux-4.4.14/net/key/
Daf_key.c146 if (sock->type != SOCK_RAW) in pfkey_create()