Home
last modified time | relevance | path

Searched refs:optval (Results 26 – 47 of 47) sorted by relevance

12

/Zephyr-latest/lib/posix/options/
Dnet.c332 int getsockopt(int sock, int level, int optname, void *optval, socklen_t *optlen) in getsockopt() argument
334 return zsock_getsockopt(sock, level, optname, optval, optlen); in getsockopt()
374 int setsockopt(int sock, int level, int optname, const void *optval, socklen_t optlen) in setsockopt() argument
376 return zsock_setsockopt(sock, level, optname, optval, optlen); in setsockopt()
/Zephyr-latest/drivers/net/
Dnsos.h153 void *optval, size_t *optlen);
155 const void *optval, size_t optlen);
Dnsos_adapt.c607 void *optval, size_t *nsos_mid_optlen) in nsos_adapt_getsockopt_int() argument
612 ret = getsockopt(fd, level, optname, optval, &optlen); in nsos_adapt_getsockopt_int()
747 const void *optval, size_t optlen) in nsos_adapt_setsockopt_int() argument
751 ret = setsockopt(fd, level, optname, optval, optlen); in nsos_adapt_setsockopt_int()
/Zephyr-latest/tests/net/dhcpv4/server/src/
Dmain.c436 const void *optval, uint8_t optlen) in verify_option() argument
461 zassert_mem_equal(buf, optval, optlen, "Invalid option value"); in verify_option()
472 uint32_t optval) in verify_option_uint32() argument
474 optval = htonl(optval); in verify_option_uint32()
476 verify_option(pkt, opt_type, &optval, sizeof(optval)); in verify_option_uint32()
480 uint8_t optval) in verify_option_uint8() argument
482 verify_option(pkt, opt_type, &optval, sizeof(optval)); in verify_option_uint8()
/Zephyr-latest/samples/net/sockets/echo_client/src/
Dudp.c196 int optval; in start_udp_proto() local
237 optval = IPV6_PREFER_SRC_TMP; in start_udp_proto()
240 &optval, sizeof(optval)); in start_udp_proto()
/Zephyr-latest/tests/net/socket/reuseaddr_reuseport/src/
Dmain.c106 static void test_getsocketopt_reuseaddr(int sock, void *optval, socklen_t *optlen) in test_getsocketopt_reuseaddr() argument
110 ret = zsock_getsockopt(sock, SOL_SOCKET, SO_REUSEADDR, optval, optlen); in test_getsocketopt_reuseaddr()
114 static void test_setsocketopt_reuseaddr(int sock, void *optval, socklen_t optlen) in test_setsocketopt_reuseaddr() argument
118 ret = zsock_setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, optval, optlen); in test_setsocketopt_reuseaddr()
129 static void test_getsocketopt_reuseport(int sock, void *optval, socklen_t *optlen) in test_getsocketopt_reuseport() argument
133 ret = zsock_getsockopt(sock, SOL_SOCKET, SO_REUSEPORT, optval, optlen); in test_getsocketopt_reuseport()
137 static void test_setsocketopt_reuseport(int sock, void *optval, socklen_t optlen) in test_setsocketopt_reuseport() argument
141 ret = zsock_setsockopt(sock, SOL_SOCKET, SO_REUSEPORT, optval, optlen); in test_setsocketopt_reuseport()
/Zephyr-latest/subsys/net/lib/sockets/
Dsockets_internal.h69 void *optval, socklen_t *optlen);
71 const void *optval, socklen_t optlen);
Dsocketpair.c1145 void *optval, socklen_t *optlen) in spair_getsockopt() argument
1150 ARG_UNUSED(optval); in spair_getsockopt()
1158 const void *optval, socklen_t optlen) in spair_setsockopt() argument
1163 ARG_UNUSED(optval); in spair_setsockopt()
/Zephyr-latest/drivers/wifi/eswifi/
Deswifi_socket_offload.c169 static int map_credentials(int sd, const void *optval, socklen_t optlen) in map_credentials() argument
171 sec_tag_t *sec_tags = (sec_tag_t *)optval; in map_credentials()
234 static int map_credentials(int sd, const void *optval, socklen_t optlen) in map_credentials() argument
241 const void *optval, socklen_t optlen) in eswifi_socket_setsockopt() argument
249 ret = map_credentials(sd, optval, optlen); in eswifi_socket_setsockopt()
/Zephyr-latest/samples/net/sockets/txtime/src/
Dmain.c266 int optval; in create_socket() local
333 optval = true; in create_socket()
334 ret = setsockopt(sock, SOL_SOCKET, SO_TXTIME, &optval, sizeof(optval)); in create_socket()
/Zephyr-latest/include/zephyr/net/
Dsocket.h617 void *optval, socklen_t *optlen);
633 const void *optval, socklen_t optlen);
/Zephyr-latest/subsys/tracing/ctf/
Dtracing_ctf.h504 #define sys_port_trace_socket_getsockopt_exit(sock, level, optname, optval, optlen, ret) \ argument
505 sys_trace_socket_getsockopt_exit(sock, level, optname, optval, optlen, ret)
506 #define sys_port_trace_socket_setsockopt_enter(sock, level, optname, optval, optlen) \ argument
507 sys_trace_socket_setsockopt_enter(sock, level, optname, optval, optlen)
562 void sys_trace_socket_getsockopt_exit(int sock, int level, int optname, void *optval,
564 void sys_trace_socket_setsockopt_enter(int sock, int level, int optname, const void *optval,
Dctf_top.c582 void *optval, size_t optlen, int ret) in sys_trace_socket_getsockopt_exit() argument
585 (uint32_t)(uintptr_t)optval, optlen, ret); in sys_trace_socket_getsockopt_exit()
589 const void *optval, size_t optlen) in sys_trace_socket_setsockopt_enter() argument
592 (uint32_t)(uintptr_t)optval, optlen); in sys_trace_socket_setsockopt_enter()
Dctf_top.h592 uint32_t optval, uint32_t optlen, int32_t ret) in ctf_top_socket_getsockopt_exit() argument
595 sock, level, optname, optval, optlen, ret); in ctf_top_socket_getsockopt_exit()
599 uint32_t optval, uint32_t optlen) in ctf_top_socket_setsockopt_enter() argument
602 optname, optval, optlen); in ctf_top_socket_setsockopt_enter()
/Zephyr-latest/subsys/net/lib/http/
Dhttp_server_core.c170 int optval = 0; in http_server_init() local
172 (void)zsock_setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY, &optval, in http_server_init()
173 sizeof(optval)); in http_server_init()
/Zephyr-latest/drivers/modem/
Dublox-sara-r4.c1837 static int map_credentials(struct modem_socket *sock, const void *optval, socklen_t optlen) in map_credentials() argument
1839 sec_tag_t *sec_tags = (sec_tag_t *)optval; in map_credentials()
1883 static int map_credentials(struct modem_socket *sock, const void *optval, socklen_t optlen) in map_credentials() argument
1890 const void *optval, socklen_t optlen) in offload_setsockopt() argument
1899 ret = map_credentials(sock, optval, optlen); in offload_setsockopt()
1905 if (*(uint32_t *)optval != TLS_PEER_VERIFY_REQUIRED) { in offload_setsockopt()
/Zephyr-latest/include/zephyr/tracing/
Dtracing.h2348 #define sys_port_trace_socket_getsockopt_exit(socket, level, optname, optval, optlen, ret) argument
2358 #define sys_port_trace_socket_setsockopt_enter(socket, level, optname, optval, optlen) argument
/Zephyr-latest/subsys/tracing/ctf/tsdl/
Dmetadata625 uint32_t optval;
638 uint32_t optval;
/Zephyr-latest/subsys/tracing/user/
Dtracing_user.h430 #define sys_port_trace_socket_getsockopt_exit(sock, level, optname, optval, optlen, ret) argument
431 #define sys_port_trace_socket_setsockopt_enter(sock, level, optname, optval, optlen) argument
/Zephyr-latest/subsys/tracing/sysview/
Dtracing_sysview.h729 #define sys_port_trace_socket_getsockopt_exit(sock, level, optname, optval, optlen, ret) argument
730 #define sys_port_trace_socket_setsockopt_enter(sock, level, optname, optval, optlen) argument
/Zephyr-latest/tests/net/lib/http_server/core/src/
Dmain.c2291 struct timeval optval = { in http_server_tests_before() local
2318 ret = zsock_setsockopt(client_fd, SOL_SOCKET, SO_RCVTIMEO, &optval, in http_server_tests_before()
2319 sizeof(optval)); in http_server_tests_before()
/Zephyr-latest/subsys/tracing/test/
Dtracing_test.h735 #define sys_port_trace_socket_getsockopt_exit(sock, level, optname, optval, optlen, ret) argument
736 #define sys_port_trace_socket_setsockopt_enter(sock, level, optname, optval, optlen) argument

12