| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/bits/ |
| H A D | socket_type.h | 32 SOCK_RAW = 3, /* Raw protocol interface. */ enumerator 33 #define SOCK_RAW SOCK_RAW macro
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/bits/ |
| H A D | socket_type.h | 32 SOCK_RAW = 3, /* Raw protocol interface. */ enumerator 33 #define SOCK_RAW SOCK_RAW macro
|
| /OK3568_Linux_fs/kernel/samples/bpf/ |
| H A D | sock_flags_kern.c | 24 sk->type == SOCK_RAW && in bpf_prog1() 42 sk->type == SOCK_RAW && in bpf_prog2()
|
| H A D | sock_example.h | 18 sock = socket(PF_PACKET, SOCK_RAW | SOCK_NONBLOCK | SOCK_CLOEXEC, htons(ETH_P_ALL)); in open_raw_sock()
|
| H A D | xdp_router_ipv4_user.c | 328 sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); in get_route_table() 467 sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); in get_arp_table() 529 sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); in monitor_route() 547 sock_arp = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); in monitor_route()
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | sock_diag.h | 53 if (sk->sk_type == SOCK_RAW) in sock_diag_destroy_group() 65 if (sk->sk_type == SOCK_RAW) in sock_diag_destroy_group()
|
| /OK3568_Linux_fs/kernel/security/tomoyo/ |
| H A D | network.c | 36 [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()
|
| /OK3568_Linux_fs/kernel/net/nfc/ |
| H A D | rawsock.c | 66 if (sock->type == SOCK_RAW) in rawsock_release() 328 if ((sock->type != SOCK_SEQPACKET) && (sock->type != SOCK_RAW)) in rawsock_create() 331 if (sock->type == SOCK_RAW) { in rawsock_create() 347 if (sock->type == SOCK_RAW) in rawsock_create()
|
| H A D | llcp_sock.c | 641 if (sock->type == SOCK_RAW) in llcp_sock_release() 891 sk->sk_type == SOCK_RAW) { in llcp_sock_recvmsg() 1028 sock->type != SOCK_RAW) in llcp_sock_create() 1031 if (sock->type == SOCK_RAW) { in llcp_sock_create()
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/net/ |
| H A D | msg_zerocopy.c | 500 if (type == SOCK_RAW) { in do_tx() 580 if (type == SOCK_RAW && protocol == IPPROTO_RAW) in do_setup_rx() 633 if (cfg_family == PF_INET && type == SOCK_RAW) { in do_flush_datagram() 794 do_test(PF_PACKET, SOCK_RAW, 0); in main() 798 do_test(cfg_family, SOCK_RAW, IPPROTO_EGP); in main() 800 do_test(cfg_family, SOCK_RAW, IPPROTO_RAW); in main()
|
| H A D | txring_overwrite.c | 79 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 D | txtimestamp.c | 496 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 D | rxtimestamp.c | 63 { "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 D | psock_snd.c | 223 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 D | psock_tpacket.c | 101 int ret, sock = socket(PF_PACKET, SOCK_RAW, 0); in pfsocket() 395 rcv_sock = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); in walk_tx()
|
| /OK3568_Linux_fs/app/forlinx/forlinx_cmd/fltest_canfdtest/ |
| H A D | canfdtest.c | 93 if ((s = socket(PF_CAN, SOCK_RAW, CAN_RAW)) < 0) { in canfd_recv() 181 if ((s = socket(PF_CAN, SOCK_RAW, CAN_RAW)) < 0) { in main()
|
| /OK3568_Linux_fs/kernel/arch/mips/include/asm/ |
| H A D | socket.h | 32 SOCK_RAW = 3, enumerator
|
| /OK3568_Linux_fs/u-boot/arch/sandbox/cpu/ |
| H A D | eth-raw-os.c | 49 priv->sd = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); in _raw_packet_start() 121 priv->sd = socket(AF_INET, SOCK_RAW, IPPROTO_UDP); in _local_inet_start()
|
| /OK3568_Linux_fs/kernel/arch/um/drivers/ |
| H A D | vector_user.c | 167 fd = socket(AF_PACKET, SOCK_RAW, flags); in create_raw_fd() 559 dsthints.ai_socktype = SOCK_RAW; in user_init_socket_fds() 567 dsthints.ai_socktype = SOCK_RAW; in user_init_socket_fds()
|
| /OK3568_Linux_fs/app/forlinx/quectelCM/libmnl/ |
| H A D | socket.c | 112 nl->fd = socket(AF_NETLINK, SOCK_RAW | flags, bus); in __mnl_socket_open()
|
| /OK3568_Linux_fs/kernel/net/ipv6/ |
| H A D | ipv6_sockglue.c | 63 if (sk->sk_type != SOCK_RAW || inet_sk(sk)->inet_num != IPPROTO_RAW) in ip6_ra_control() 435 if (sk->sk_type == SOCK_RAW) in do_ipv6_setsockopt() 1004 if (level == SOL_IP && sk->sk_type != SOCK_RAW) in ipv6_setsockopt() 1478 if (level == SOL_IP && sk->sk_type != SOCK_RAW) in ipv6_getsockopt()
|
| /OK3568_Linux_fs/kernel/net/bluetooth/bnep/ |
| H A D | sock.c | 204 if (sock->type != SOCK_RAW) in bnep_sock_create()
|
| /OK3568_Linux_fs/kernel/net/bluetooth/cmtp/ |
| H A D | sock.c | 207 if (sock->type != SOCK_RAW) in cmtp_sock_create()
|
| /OK3568_Linux_fs/kernel/Documentation/networking/ |
| H A D | packet_mmap.rst | 85 where mode is SOCK_RAW for the raw interface were link level 175 So, whatever you choose for the socket mode (SOCK_DGRAM or SOCK_RAW), 181 the frame (for payload alignment with SOCK_RAW mode for instance) you 182 can set tp_net (with SOCK_DGRAM) or tp_mac (with SOCK_RAW). In order 646 int err, fd = socket(AF_PACKET, SOCK_RAW, htons(ETH_P_IP)); 833 fd = socket(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
|
| /OK3568_Linux_fs/kernel/net/bluetooth/hidp/ |
| H A D | sock.c | 255 if (sock->type != SOCK_RAW) in hidp_sock_create()
|