Home
last modified time | relevance | path

Searched refs:SAFE_SOCKET (Results 1 – 25 of 71) sorted by relevance

123

/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/testcases/kernel/syscalls/connect/
Dconnect02.c53 listenfd = SAFE_SOCKET(AF_INET6, SOCK_STREAM, IPPROTO_TCP); in setup()
85 confd1 = SAFE_SOCKET(AF_INET, SOCK_STREAM, IPPROTO_TCP); in run()
110 confd2 = SAFE_SOCKET(AF_INET, SOCK_STREAM, IPPROTO_TCP); in run()
/third_party/ltp/testcases/kernel/syscalls/bind/
Dbind03.c52 sock1 = SAFE_SOCKET(PF_UNIX, SOCK_STREAM, 0); in setup()
53 sock2 = SAFE_SOCKET(PF_UNIX, SOCK_STREAM, 0); in setup()
Dbind06.c45 fd = SAFE_SOCKET(AF_PACKET, SOCK_DGRAM, PF_PACKET); in setup()
88 fd = SAFE_SOCKET(AF_PACKET, SOCK_DGRAM, PF_PACKET); in run()
Dbind01.c57 inet_socket = SAFE_SOCKET(PF_INET, SOCK_STREAM, 0); in verify_bind()
81 inet_socket = SAFE_SOCKET(PF_INET, SOCK_STREAM, 0); in test_setup()
Dbind04.c91 sock = SAFE_SOCKET(tc->address->sa_family, tc->type, tc->protocol); in peer_thread()
118 listen_sock = SAFE_SOCKET(tc->address->sa_family, tc->type, in test_bind()
Dbind05.c91 sock = SAFE_SOCKET(tc->address->sa_family, tc->type, tc->protocol); in peer_thread()
132 sock = SAFE_SOCKET(tc->address->sa_family, tc->type, tc->protocol); in test_bind()
/third_party/ltp/testcases/kernel/syscalls/getsockopt/
Dgetsockopt02.c26 socket_fd = SAFE_SOCKET(sun.sun_family, SOCK_STREAM, 0); in setup()
33 int fork_socket_fd = SAFE_SOCKET(sun.sun_family, SOCK_STREAM, 0); in fork_func()
/third_party/ltp/testcases/kernel/syscalls/setsockopt/
Dsetsockopt05.c52 dst_sock = SAFE_SOCKET(AF_INET, SOCK_DGRAM, 0); in setup()
78 sock = SAFE_SOCKET(AF_INET, SOCK_DGRAM, 0); in run()
/third_party/ltp/testcases/kernel/syscalls/accept/
Daccept01.c78 socket_fd = SAFE_SOCKET(PF_INET, SOCK_STREAM, 0); in test_setup()
85 udp_fd = SAFE_SOCKET(PF_INET, SOCK_DGRAM, 0); in test_setup()
Daccept02.c51 server_sockfd = SAFE_SOCKET(AF_INET, SOCK_STREAM, 0); in server_thread()
84 client_sockfd = SAFE_SOCKET(AF_INET, SOCK_STREAM, 0); in client_thread()
/third_party/ltp/testcases/kernel/syscalls/recvmsg/
Drecvmsg02.c57 sdr = SAFE_SOCKET(PF_INET6, SOCK_DGRAM | SOCK_CLOEXEC, IPPROTO_IP); in verify_recvmsg()
61 sdw = SAFE_SOCKET(PF_INET6, SOCK_DGRAM|SOCK_CLOEXEC, IPPROTO_IP); in verify_recvmsg()
Drecvmsg03.c55 sock_fd1 = SAFE_SOCKET(AF_RDS, SOCK_SEQPACKET, 0); in client()
98 sock_fd2 = SAFE_SOCKET(AF_RDS, SOCK_SEQPACKET, 0); in server()
/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_01.c243 sd = SAFE_SOCKET(NULL, PF_INET6, SOCK_RAW, NH_TEST); in client()
351 listen_fd = SAFE_SOCKET(NULL, pf, type, proto); in isocketpair()
365 fd[0] = SAFE_SOCKET(NULL, pf, type, proto); in isocketpair()
385 sd = SAFE_SOCKET(NULL, PF_INET6, SOCK_RAW, NH_TEST); in csum_test()
/third_party/ltp/testcases/network/can/cve/
Dcan_bcm01.c57 sock1 = SAFE_SOCKET(AF_CAN, SOCK_DGRAM, CAN_BCM); in setup()
114 sock2 = SAFE_SOCKET(AF_CAN, SOCK_DGRAM, CAN_BCM); in run()
/third_party/ltp/utils/sctp/func_tests/
Dtest_1_to_1_initmsg_connect.c52 sk1 = SAFE_SOCKET(PF_INET, SOCK_STREAM, IPPROTO_SCTP); in test_sctp()
53 sk3 = SAFE_SOCKET(PF_INET, SOCK_STREAM, IPPROTO_SCTP); in test_sctp()
/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/recvmmsg/
Drecvmmsg01.c104 send_sockfd = SAFE_SOCKET(AF_INET, SOCK_DGRAM, 0); in setup()
105 receive_sockfd = SAFE_SOCKET(AF_INET, SOCK_DGRAM, 0); in setup()
/third_party/ltp/testcases/kernel/syscalls/sendmmsg/
Dsendmmsg01.c67 send_sockfd = SAFE_SOCKET(AF_INET, SOCK_DGRAM, 0); in setup()
68 receive_sockfd = SAFE_SOCKET(AF_INET, SOCK_DGRAM, 0); in setup()
/third_party/ltp/testcases/kernel/syscalls/accept4/
Daccept4_01.c59 lfd = SAFE_SOCKET(AF_INET, SOCK_STREAM, 0); in create_listening_socket()
104 connfd = SAFE_SOCKET(AF_INET, SOCK_STREAM, 0); in verify_accept4()
/third_party/ltp/testcases/kernel/syscalls/send/
Dsend02.c134 listen_sock = SAFE_SOCKET(tc->domain, tc->type, tc->protocol); in run()
143 sock = SAFE_SOCKET(tc->domain, tc->type, tc->protocol); in run()
/third_party/ltp/testcases/network/sctp/
Dsctp_big_chunk.c40 sfd = SAFE_SOCKET(AF_INET6, SOCK_STREAM, IPPROTO_SCTP); in setup_server()
132 cfd = SAFE_SOCKET(AF_INET6, SOCK_RAW, IPPROTO_RAW); in setup_client()
/third_party/ltp/testcases/kernel/syscalls/sockioctl/
Dsockioctl01.c208 s = SAFE_SOCKET(cleanup, tdat[testno].domain, tdat[testno].type, in setup1()
221 s = SAFE_SOCKET(cleanup, tdat[testno].domain, tdat[testno].type, in setup2()
/third_party/ltp/lib/newlib_tests/
Dtest14.c19 SAFE_SOCKET(AF_UNIX, SOCK_STREAM, -1); in cleanup()

123