Home
last modified time | relevance | path

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

1234

/third_party/ltp/testcases/kernel/syscalls/sendto/
Dsendto03.c54 sock = SAFE_SOCKET(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); in setup()
84 dst_sock = SAFE_SOCKET(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); in check_tiny_frame()
150 dst_sock = SAFE_SOCKET(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); in check_vnet_hdr()
176 sock = SAFE_SOCKET(AF_PACKET, SOCK_RAW, IPPROTO_RAW); in check_vnet_hdr()
/third_party/ltp/lib/newlib_tests/
Dtst_capability01.c20 TEST(socket(AF_INET, SOCK_RAW, 1)); in run()
37 TEST(socket(AF_INET, SOCK_RAW, 1)); in setup()
Dtst_capability02.c17 TEST(socket(AF_INET, SOCK_RAW, 1)); in run()
/third_party/ltp/testcases/network/lib6/
Dasapi_02.c99 s = SAFE_SOCKET(NULL, AF_INET6, SOCK_RAW, IPPROTO_ICMPV6); in ic6_send1()
191 sall = SAFE_SOCKET(NULL, PF_INET6, SOCK_RAW, IPPROTO_ICMPV6); in icmp6_ft()
200 sf = SAFE_SOCKET(NULL, PF_INET6, SOCK_RAW, IPPROTO_ICMPV6); in icmp6_ft()
Dasapi_03.c255 sr = SAFE_SOCKET(NULL, PF_INET6, SOCK_RAW, NH_TEST); in so_test()
288 st = SAFE_SOCKET(NULL, PF_INET6, SOCK_RAW, NH_TEST); in so_test()
/third_party/ltp/testcases/network/can/filter-tests/
Dcan_rcv_own_msgs.c90 s = SAFE_SOCKET(PF_CAN, SOCK_RAW, CAN_RAW); in setup()
91 t = SAFE_SOCKET(PF_CAN, SOCK_RAW, CAN_RAW); in setup()
/third_party/ltp/testcases/kernel/syscalls/socketcall/
Dsocketcall01.c29 {SYS_SOCKET, {AF_INET, SOCK_RAW, 6}, "Raw socket"},
/third_party/boost/boost/asio/generic/
Draw_protocol.hpp79 return BOOST_ASIO_OS_DEF(SOCK_RAW); in type()
/third_party/boost/libs/asio/include/boost/asio/generic/
Draw_protocol.hpp79 return BOOST_ASIO_OS_DEF(SOCK_RAW); in type()
/third_party/boost/boost/asio/ip/
Dicmp.hpp66 return BOOST_ASIO_OS_DEF(SOCK_RAW); in type()
/third_party/boost/libs/asio/include/boost/asio/ip/
Dicmp.hpp66 return BOOST_ASIO_OS_DEF(SOCK_RAW); in type()
/third_party/ltp/testcases/kernel/containers/netns/
Dnetns_netlink.c56 fd = SAFE_SOCKET(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); in child_func()
/third_party/ltp/testcases/cve/
Dcve-2017-16939.c49 fd = SAFE_SOCKET(PF_NETLINK, SOCK_RAW, NETLINK_XFRM); in setup()
/third_party/ltp/testcases/kernel/syscalls/socket/
Dsocket01.c34 {PF_INET, SOCK_RAW, 0, -1, EPROTONOSUPPORT, "raw open as non-root"},
/third_party/libusb/libusb/os/
Dlinux_netlink.c96 int socktype = SOCK_RAW | SOCK_NONBLOCK | SOCK_CLOEXEC; in linux_netlink_start_event_monitor()
103 socktype = SOCK_RAW; in linux_netlink_start_event_monitor()
/third_party/ltp/testcases/network/sockets/
DltpClient.c372 rawSocket = socket(PF_INET, SOCK_RAW, protocol->p_proto); in network_listener()
493 rawSocket = socket(PF_INET, SOCK_RAW, protocol->p_proto); in ping_network()
576 rawTraceSocket = socket(PF_INET, SOCK_RAW, protocol->p_proto); in ltp_traceroute()
/third_party/ltp/testcases/kernel/syscalls/setsockopt/
Dsetsockopt02.c53 sk = SAFE_SOCKET(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); in create_skbuf()
Dsetsockopt06.c82 sock = SAFE_SOCKET(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); in run()
Dsetsockopt07.c86 sock = SAFE_SOCKET(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); in run()
/third_party/ltp/testcases/kernel/syscalls/socketpair/
Dsocketpair01.c36 {PF_INET, SOCK_RAW, 0, fds, -1, EPROTONOSUPPORT, "raw open as non-root"},
/third_party/ltp/testcases/kernel/syscalls/sendmsg/
Dsendmsg03.c43 sockfd = SAFE_SOCKET(AF_INET, SOCK_RAW, IPPROTO_ICMP); in setup()
/third_party/musl/src/mq/
Dmq_notify.c44 s = socket(AF_NETLINK, SOCK_RAW|SOCK_CLOEXEC, 0); in mq_notify()
/third_party/ltp/testcases/network/packet/
Dfanout01.c76 fd = SAFE_SOCKET(AF_PACKET, SOCK_RAW, PF_PACKET); in run()
/third_party/musl/src/network/
Dnetlink.c46 fd = socket(PF_NETLINK, SOCK_RAW|SOCK_CLOEXEC, NETLINK_ROUTE); in __rtnetlink_enumerate()
/third_party/ltp/testcases/kernel/uevents/
Duevent.h113 fd = SAFE_SOCKET(AF_NETLINK, SOCK_RAW, NETLINK_KOBJECT_UEVENT); in open_uevent_netlink()

1234