Home
last modified time | relevance | path

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

1234

/linux/tools/testing/selftests/net/
H A Dnetlink-dumps.c120 netlink_sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); in TEST()
205 netlink_sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC); in TEST()
225 netlink_sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC); in TEST()
241 netlink_sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC); in TEST()
H A Dmsg_zerocopy.c507 if (type == SOCK_RAW) { in do_tx()
590 if (type == SOCK_RAW && protocol == IPPROTO_RAW) in do_setup_rx()
643 if (cfg_family == PF_INET && type == SOCK_RAW) { in do_flush_datagram()
810 do_test(PF_PACKET, SOCK_RAW, 0); in main()
814 do_test(cfg_family, SOCK_RAW, IPPROTO_EGP); in main()
816 do_test(cfg_family, SOCK_RAW, IPPROTO_RAW); in main()
H A Dtxring_overwrite.c79 fdr = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_IP)); in setup_rx()
92 fdt = socket(PF_PACKET, SOCK_RAW, 0); in setup_tx()
H A Drxtimestamp.c65 { "ip", SOCK_RAW, IPPROTO_EGP },
308 port = (s->type == SOCK_RAW) ? 0 : next_port++; in run_test_case()
315 if (s->type == SOCK_RAW) in run_test_case()
H A Dgetsockopt_iter.c70 self->fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); in FIXTURE_SETUP()
336 self->fd = socket(AF_INET, SOCK_RAW, IPPROTO_ICMP); in FIXTURE_SETUP()
391 fd = socket(AF_INET, SOCK_RAW, IPPROTO_UDP); in TEST_F()
421 self->fd = socket(AF_INET6, SOCK_RAW, IPPROTO_UDP); in FIXTURE_SETUP()
H A Dtxtimestamp.c502 if (cfg_use_pf_packet || cfg_proto == SOCK_RAW) { in do_test()
587 if (cfg_use_pf_packet || cfg_proto == SOCK_RAW) { in do_test()
782 cfg_proto = SOCK_RAW; in parse_opt()
787 cfg_proto = SOCK_RAW; in parse_opt()
875 type = cfg_proto == SOCK_RAW ? SOCK_DGRAM : cfg_proto; in do_listen()
H A Dpsock_fanout.c68 fd = socket(AF_PACKET, SOCK_RAW, 0); in loopback_set_up_down()
98 fd = socket(PF_PACKET, SOCK_RAW, 0); in sock_fanout_open()
290 fd0 = socket(PF_PACKET, SOCK_RAW, 0); in test_unbound_fanout()
H A Dpsock_snd.c234 fd = socket(PF_PACKET, cfg_use_dgram ? SOCK_DGRAM : SOCK_RAW, 0); in do_tx()
365 fd = socket(PF_PACKET, SOCK_RAW, 0); in setup_sniffer()
H A Dskf_net_off.c107 fd = socket(PF_INET6, SOCK_RAW, IPPROTO_UDP); in raw_open()
/linux/include/linux/
H A Dsock_diag.h59 if (sk->sk_type == SOCK_RAW) in sock_diag_destroy_group()
71 if (sk->sk_type == SOCK_RAW) in sock_diag_destroy_group()
/linux/security/tomoyo/
H A Dnetwork.c36 [SOCK_RAW] = "raw",
151 [SOCK_RAW] = {
533 if (address->protocol == SOCK_RAW) in tomoyo_check_inet_address()
701 case SOCK_RAW: in tomoyo_socket_connect_permission()
738 case SOCK_RAW: in tomoyo_socket_bind_permission()
769 (type != SOCK_DGRAM && type != SOCK_RAW)) in tomoyo_socket_sendmsg_permission()
/linux/net/nfc/
H A Drawsock.c67 if (sock->type == SOCK_RAW) in rawsock_release()
341 if ((sock->type != SOCK_SEQPACKET) && (sock->type != SOCK_RAW)) in rawsock_create()
344 if (sock->type == SOCK_RAW) { in rawsock_create()
360 if (sock->type == SOCK_RAW) in rawsock_create()
H A Dllcp_sock.c642 if (sock->type == SOCK_RAW) in llcp_sock_release()
906 sk->sk_type == SOCK_RAW) { in llcp_sock_recvmsg()
1043 sock->type != SOCK_RAW) in llcp_sock_create()
1046 if (sock->type == SOCK_RAW) { in llcp_sock_create()
/linux/samples/bpf/
H A Dsock_example.h18 sock = socket(PF_PACKET, SOCK_RAW | SOCK_NONBLOCK | SOCK_CLOEXEC, htons(ETH_P_ALL)); in open_raw_sock()
H A Dxdp_router_ipv4_user.c267 sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); in get_route_table()
403 sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); in get_arp_table()
458 sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); in monitor_routes_thread()
477 sock_arp = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); in monitor_routes_thread()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsockopt_sk.c190 fd = socket(AF_NETLINK, SOCK_RAW, 0); in getsetsockopt()
216 fd = socket(AF_INET, SOCK_RAW, IPPROTO_TCP); in getsetsockopt()
H A Dlwt_redirect.c99 s = socket(AF_PACKET, SOCK_RAW, 0); in new_packet_sock()
/linux/tools/testing/selftests/drivers/net/
H A Dxdp_helper.c
/linux/tools/testing/selftests/net/netfilter/
H A Daudit_logread.c147 fd = socket(PF_NETLINK, SOCK_RAW, NETLINK_AUDIT); in main()
/linux/tools/testing/selftests/net/mptcp/
H A Dmptcp_diag.c356 fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_SOCK_DIAG); in get_mptcpinfo()
387 fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_SOCK_DIAG); in get_subflow_info()
/linux/tools/testing/selftests/bpf/progs/
H A Dsockopt_sk.c152 if (sk && sk->family == AF_INET && sk->type == SOCK_RAW) { in _setsockopt()
/linux/tools/testing/selftests/net/af_unix/
H A Ddiag_uid.c54 self->netlink_fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_SOCK_DIAG); in FIXTURE_SETUP()
/linux/tools/testing/selftests/net/tcp_ao/
H A Dicmps-accept.c182 int sk = socket(AF_INET, SOCK_RAW, IPPROTO_RAW); in icmp_interfere4()
197 test_error("socket(AF_INET, SOCK_RAW, IPPROTO_RAW)"); in icmp_interfere4()
296 int sk = socket(AF_INET6, SOCK_RAW, IPPROTO_RAW); in icmp6_interfere()
313 test_error("socket(AF_INET6, SOCK_RAW, IPPROTO_RAW)"); in icmp6_interfere()
H A Dicmps-discard.c182 int sk = socket(AF_INET, SOCK_RAW, IPPROTO_RAW); in icmp_interfere4()
296 int sk = socket(AF_INET6, SOCK_RAW, IPPROTO_RAW); in icmp6_interfere()
/linux/arch/um/drivers/
H A Dvector_user.c171 fd = socket(AF_PACKET, SOCK_RAW, flags); in create_raw_fd()
641 dsthints.ai_socktype = SOCK_RAW; in user_init_socket_fds()
649 dsthints.ai_socktype = SOCK_RAW; in user_init_socket_fds()

1234