Home
last modified time | relevance | path

Searched refs:SAFE_SETSOCKOPT_INT (Results 1 – 10 of 10) sorted by relevance

/external/ltp/testcases/network/netstress/
Dnetstress.c152 SAFE_SETSOCKOPT_INT(sd, SOL_SOCKET, SO_BUSY_POLL, busy_poll); in init_socket_opts()
161 SAFE_SETSOCKOPT_INT(sd, IPPROTO_TCP, in init_socket_opts()
165 SAFE_SETSOCKOPT_INT(sd, SOL_SOCKET, SO_ZEROCOPY, 1); in init_socket_opts()
168 SAFE_SETSOCKOPT_INT(sd, SOL_DCCP, DCCP_SOCKOPT_SERVICE, in init_socket_opts()
178 SAFE_SETSOCKOPT_INT(sd, SOL_UDPLITE, UDPLITE_SEND_CSCOV, cscov); in init_socket_opts()
179 SAFE_SETSOCKOPT_INT(sd, SOL_UDPLITE, UDPLITE_RECV_CSCOV, 8); in init_socket_opts()
316 SAFE_SETSOCKOPT_INT(sd, SOL_IP, IP_BIND_ADDRESS_NO_PORT, 1); in bind_before_connect()
318 SAFE_SETSOCKOPT_INT(sd, SOL_SOCKET, SO_REUSEPORT, 1); in bind_before_connect()
674 SAFE_SETSOCKOPT_INT(sfd, SOL_SOCKET, SO_REUSEADDR, 1); in server_init()
676 SAFE_SETSOCKOPT_INT(sfd, SOL_SOCKET, SO_REUSEPORT, 1); in server_init()
[all …]
/external/ltp/testcases/kernel/syscalls/sendto/
Dsendto03.c75 SAFE_SETSOCKOPT_INT(dst_sock, SOL_PACKET, PACKET_VERSION, TPACKET_V2); in check_tiny_frame()
141 SAFE_SETSOCKOPT_INT(dst_sock, SOL_PACKET, PACKET_VERSION, TPACKET_V2); in check_vnet_hdr()
142 SAFE_SETSOCKOPT_INT(dst_sock, SOL_PACKET, PACKET_VNET_HDR, 1); in check_vnet_hdr()
143 SAFE_SETSOCKOPT_INT(dst_sock, SOL_PACKET, PACKET_RESERVE, 0xffff - 75); in check_vnet_hdr()
/external/ltp/testcases/cve/
Dcve-2017-16939.c58 SAFE_SETSOCKOPT_INT(fd, SOL_SOCKET, SO_RCVBUF, 0x100); in run()
Dicmp_rate_limit01.c97 SAFE_SETSOCKOPT_INT(fds[i], IPPROTO_IP, IP_RECVERR, 1); in setup()
/external/ltp/testcases/kernel/syscalls/setsockopt/
Dsetsockopt05.c71 SAFE_SETSOCKOPT_INT(sock, SOL_SOCKET, SO_NO_CHECK, 1); in run()
Dsetsockopt09.c81 SAFE_SETSOCKOPT_INT(sock, SOL_PACKET, PACKET_VERSION, in run()
/external/ltp/testcases/kernel/syscalls/sendmsg/
Dsendmsg03.c86 SAFE_SETSOCKOPT_INT(sockfd, SOL_IP, IP_HDRINCL, hdrincl); in run()
/external/ltp/include/
Dtst_safe_net.h29 #define SAFE_SETSOCKOPT_INT(fd, l, n, val) \ macro
/external/ltp/testcases/kernel/syscalls/io_uring/
Dio_uring02.c96 SAFE_SETSOCKOPT_INT(sockpair[0], SOL_SOCKET, SO_SNDBUF, in drain_fallback()
/external/ltp/doc/
Dnetwork-c-api.txt58 - +int SAFE_SETSOCKOPT_INT(int sockfd, int level, int optname, int value)+ –
131 SAFE_SETSOCKOPT_INT(sockfd, SOL_SOCKET, SO_SNDBUF, 4096);