/third_party/ltp/testcases/kernel/syscalls/sendto/ |
D | sendto03.c | 54 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/ |
D | connect02.c | 53 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/ |
D | bind03.c | 52 sock1 = SAFE_SOCKET(PF_UNIX, SOCK_STREAM, 0); in setup() 53 sock2 = SAFE_SOCKET(PF_UNIX, SOCK_STREAM, 0); in setup()
|
D | bind06.c | 45 fd = SAFE_SOCKET(AF_PACKET, SOCK_DGRAM, PF_PACKET); in setup() 88 fd = SAFE_SOCKET(AF_PACKET, SOCK_DGRAM, PF_PACKET); in run()
|
D | bind01.c | 57 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()
|
D | bind04.c | 91 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()
|
D | bind05.c | 91 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/ |
D | getsockopt02.c | 26 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/ |
D | setsockopt05.c | 52 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/ |
D | accept01.c | 78 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()
|
D | accept02.c | 51 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/ |
D | recvmsg02.c | 57 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()
|
D | recvmsg03.c | 55 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/ |
D | asapi_02.c | 99 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()
|
D | asapi_01.c | 243 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/ |
D | can_bcm01.c | 57 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/ |
D | test_1_to_1_initmsg_connect.c | 52 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/ |
D | can_rcv_own_msgs.c | 90 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/ |
D | recvmmsg01.c | 104 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/ |
D | sendmmsg01.c | 67 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/ |
D | accept4_01.c | 59 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/ |
D | send02.c | 134 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/ |
D | sctp_big_chunk.c | 40 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/ |
D | sockioctl01.c | 208 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/ |
D | test14.c | 19 SAFE_SOCKET(AF_UNIX, SOCK_STREAM, -1); in cleanup()
|