Home
last modified time | relevance | path

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

1234

/openbmc/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()
/openbmc/linux/security/tomoyo/
H A Dnetwork.c36 [SOCK_RAW] = "raw",
151 [SOCK_RAW] = {
530 if (address->protocol == SOCK_RAW) in tomoyo_check_inet_address()
698 case SOCK_RAW: in tomoyo_socket_connect_permission()
735 case SOCK_RAW: in tomoyo_socket_bind_permission()
766 (type != SOCK_DGRAM && type != SOCK_RAW)) in tomoyo_socket_sendmsg_permission()
/openbmc/linux/net/nfc/
H A Drawsock.c67 if (sock->type == SOCK_RAW) in rawsock_release()
330 if ((sock->type != SOCK_SEQPACKET) && (sock->type != SOCK_RAW)) in rawsock_create()
333 if (sock->type == SOCK_RAW) { in rawsock_create()
349 if (sock->type == SOCK_RAW) in rawsock_create()
H A Dllcp_sock.c634 if (sock->type == SOCK_RAW) in llcp_sock_release()
896 sk->sk_type == SOCK_RAW) { in llcp_sock_recvmsg()
1033 sock->type != SOCK_RAW) in llcp_sock_create()
1036 if (sock->type == SOCK_RAW) { in llcp_sock_create()
/openbmc/linux/tools/testing/selftests/net/
H A Dmsg_zerocopy.c504 if (type == SOCK_RAW) { in do_tx()
587 if (type == SOCK_RAW && protocol == IPPROTO_RAW) in do_setup_rx()
640 if (cfg_family == PF_INET && type == SOCK_RAW) { in do_flush_datagram()
804 do_test(PF_PACKET, SOCK_RAW, 0); in main()
808 do_test(cfg_family, SOCK_RAW, IPPROTO_EGP); in main()
810 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.c63 { "ip", SOCK_RAW, IPPROTO_EGP },
290 port = (s->type == SOCK_RAW) ? 0 : next_port++; in run_test_case()
297 if (s->type == SOCK_RAW) in run_test_case()
H A Dtxtimestamp.c496 if (cfg_use_pf_packet || cfg_proto == SOCK_RAW) { in do_test()
581 if (cfg_use_pf_packet || cfg_proto == SOCK_RAW) { in do_test()
755 cfg_proto = SOCK_RAW; in parse_opt()
760 cfg_proto = SOCK_RAW; in parse_opt()
846 type = cfg_proto == SOCK_RAW ? SOCK_DGRAM : cfg_proto; in do_listen()
H A Dpsock_snd.c223 fd = socket(PF_PACKET, cfg_use_dgram ? SOCK_DGRAM : SOCK_RAW, 0); in do_tx()
295 fd = socket(PF_PACKET, SOCK_RAW, 0); in setup_sniffer()
H A Dcmsg_sender.c135 opt.sock.type = SOCK_RAW; in cs_parse_args()
457 } else if (opt.sock.type == SOCK_RAW) { in main()
/openbmc/linux/arch/mips/include/asm/
H A Dsocket.h32 SOCK_RAW = 3, enumerator
/openbmc/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()
/openbmc/google-misc/subprojects/ncsid/src/
H A Dncsi_sockio.cpp35 RETURN_IF_ERROR(sockfd_ = socket(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL)), in init()
/openbmc/u-boot/arch/sandbox/cpu/
H A Deth-raw-os.c89 priv->sd = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); in _raw_packet_start()
164 priv->sd = socket(AF_INET, SOCK_RAW, IPPROTO_UDP); in _local_inet_start()
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dlsm_cgroup.c201 ASSERT_LT(socket(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL)), 0, in test_lsm_cgroup_functional()
204 fd = socket(AF_PACKET, SOCK_RAW, 0); in test_lsm_cgroup_functional()
H A Dlwt_redirect.c99 s = socket(AF_PACKET, SOCK_RAW, 0); in new_packet_sock()
H A Dsockopt_sk.c190 fd = socket(AF_NETLINK, SOCK_RAW, 0); in getsetsockopt()
/openbmc/linux/tools/testing/selftests/netfilter/
H A Daudit_logread.c147 fd = socket(PF_NETLINK, SOCK_RAW, NETLINK_AUDIT); in main()
/openbmc/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()
/openbmc/linux/arch/um/drivers/
H A Dvector_user.c168 fd = socket(AF_PACKET, SOCK_RAW, flags); in create_raw_fd()
560 dsthints.ai_socktype = SOCK_RAW; in user_init_socket_fds()
568 dsthints.ai_socktype = SOCK_RAW; in user_init_socket_fds()
/openbmc/linux/net/bluetooth/cmtp/
H A Dsock.c207 if (sock->type != SOCK_RAW) in cmtp_sock_create()
/openbmc/linux/net/bluetooth/bnep/
H A Dsock.c205 if (sock->type != SOCK_RAW) in bnep_sock_create()
/openbmc/linux/net/ipv6/
H A Dipv6_sockglue.c65 if (sk->sk_type != SOCK_RAW || inet_sk(sk)->inet_num != IPPROTO_RAW) in ip6_ra_control()
433 if (sk->sk_type == SOCK_RAW) in do_ipv6_setsockopt()
1005 if (level == SOL_IP && sk->sk_type != SOCK_RAW) in ipv6_setsockopt()
1483 if (level == SOL_IP && sk->sk_type != SOCK_RAW) in ipv6_getsockopt()
/openbmc/qemu/net/
H A Dl2tpv3.c629 hints.ai_socktype = SOCK_RAW; in net_init_l2tpv3()
665 hints.ai_socktype = SOCK_RAW; in net_init_l2tpv3()

1234