Home
last modified time | relevance | path

Searched refs:SOL_SOCKET (Results 1 – 25 of 41) sorted by relevance

12

/Zephyr-Core-3.7.0/drivers/net/
Dnsos_adapt.c547 ret = getsockopt(fd, SOL_SOCKET, SO_ERROR, &err, &optlen); in nsos_adapt_getsockopt()
562 ret = getsockopt(fd, SOL_SOCKET, SO_TYPE, &type, &optlen); in nsos_adapt_getsockopt()
580 ret = getsockopt(fd, SOL_SOCKET, SO_PROTOCOL, &proto, &optlen); in nsos_adapt_getsockopt()
598 ret = getsockopt(fd, SOL_SOCKET, SO_DOMAIN, &family, &optlen); in nsos_adapt_getsockopt()
611 return nsos_adapt_getsockopt_int(fd, SOL_SOCKET, SO_RCVBUF, in nsos_adapt_getsockopt()
614 return nsos_adapt_getsockopt_int(fd, SOL_SOCKET, SO_SNDBUF, in nsos_adapt_getsockopt()
617 return nsos_adapt_getsockopt_int(fd, SOL_SOCKET, SO_REUSEADDR, in nsos_adapt_getsockopt()
620 return nsos_adapt_getsockopt_int(fd, SOL_SOCKET, SO_REUSEPORT, in nsos_adapt_getsockopt()
623 return nsos_adapt_getsockopt_int(fd, SOL_SOCKET, SO_LINGER, in nsos_adapt_getsockopt()
626 return nsos_adapt_getsockopt_int(fd, SOL_SOCKET, SO_KEEPALIVE, in nsos_adapt_getsockopt()
[all …]
/Zephyr-Core-3.7.0/tests/net/socket/tcp/src/
Dmain.c530 rv = zsock_setsockopt(new_sock, SOL_SOCKET, SO_RCVTIMEO, &optval, in ZTEST()
1276 rv = zsock_getsockopt(sock1, SOL_SOCKET, SO_TYPE, &optval, &optlen); in ZTEST()
1281 rv = zsock_getsockopt(sock2, SOL_SOCKET, SO_TYPE, &optval, &optlen); in ZTEST()
1305 rv = zsock_getsockopt(sock1, SOL_SOCKET, SO_PROTOCOL, &optval, &optlen); in ZTEST()
1310 rv = zsock_getsockopt(sock2, SOL_SOCKET, SO_PROTOCOL, &optval, &optlen); in ZTEST()
1333 rv = zsock_setsockopt(sock1, SOL_SOCKET, SO_RCVBUF, &optval, sizeof(optval)); in ZTEST()
1335 rv = zsock_getsockopt(sock1, SOL_SOCKET, SO_RCVBUF, &retval, &optlen); in ZTEST()
1340 rv = zsock_setsockopt(sock2, SOL_SOCKET, SO_RCVBUF, &optval, sizeof(optval)); in ZTEST()
1342 rv = zsock_getsockopt(sock2, SOL_SOCKET, SO_RCVBUF, &retval, &optlen); in ZTEST()
1348 rv = zsock_setsockopt(sock2, SOL_SOCKET, SO_RCVBUF, &optval, sizeof(optval)); in ZTEST()
[all …]
/Zephyr-Core-3.7.0/subsys/net/lib/ptp/
Dtransport.c45 if (zsock_setsockopt(socket, SOL_SOCKET, SO_REUSEADDR, &feature_on, sizeof(feature_on))) { in transport_socket_open()
57 SOL_SOCKET, in transport_socket_open()
65 if (zsock_setsockopt(socket, SOL_SOCKET, SO_TIMESTAMPING, &ts_mask, sizeof(ts_mask))) { in transport_socket_open()
70 if (zsock_setsockopt(socket, SOL_SOCKET, SO_PRIORITY, &priority, sizeof(priority))) { in transport_socket_open()
311 if (cmsg->cmsg_level == SOL_SOCKET && cmsg->cmsg_type == SO_TIMESTAMPING) { in ptp_transport_recv()
/Zephyr-Core-3.7.0/subsys/net/lib/zperf/
Dzperf_tcp_receiver.c139 (void)zsock_getsockopt(pev->event.fd, SOL_SOCKET, in tcp_recv_data()
141 (void)zsock_getsockopt(pev->event.fd, SOL_SOCKET, in tcp_recv_data()
164 (void)zsock_getsockopt(pev->event.fd, SOL_SOCKET, in tcp_recv_data()
194 (void)zsock_getsockopt(pev->event.fd, SOL_SOCKET, in tcp_recv_data()
Dzperf_udp_receiver.c325 (void)zsock_getsockopt(pev->event.fd, SOL_SOCKET, in udp_recv_data()
327 (void)zsock_getsockopt(pev->event.fd, SOL_SOCKET, in udp_recv_data()
343 (void)zsock_getsockopt(pev->event.fd, SOL_SOCKET, in udp_recv_data()
Dzperf_udp_uploader.c105 ret = zsock_setsockopt(sock, SOL_SOCKET, SO_RCVTIMEO, &rcvtimeo, in zperf_upload_fin()
318 if (zsock_setsockopt(sock, SOL_SOCKET, SO_BINDTODEVICE, &req, in zperf_udp_upload()
Dzperf_common.c185 if (zsock_setsockopt(sock, SOL_SOCKET, SO_PRIORITY, in zperf_prepare_upload_sock()
/Zephyr-Core-3.7.0/tests/net/socket/offload_dispatcher/src/
Dmain.c607 ret = zsock_getsockopt(test_sock, SOL_SOCKET, SO_RCVTIMEO, in ZTEST()
624 ret = zsock_setsockopt(test_sock, SOL_SOCKET, SO_RCVTIMEO, in ZTEST()
701 ret = zsock_setsockopt(test_sock, SOL_SOCKET, SO_BINDTODEVICE, in ZTEST()
734 ret = zsock_setsockopt(test_sock, SOL_SOCKET, SO_BINDTODEVICE, in ZTEST()
782 ret = zsock_setsockopt(test_sock, SOL_SOCKET, SO_BINDTODEVICE, in ZTEST()
829 ret = zsock_setsockopt(test_sock, SOL_SOCKET, SO_BINDTODEVICE, in ZTEST()
/Zephyr-Core-3.7.0/tests/net/socket/udp/src/
Dmain.c342 rv = zsock_setsockopt(sock1, SOL_SOCKET, SO_PRIORITY, &optval, in ZTEST()
347 rv = zsock_setsockopt(sock2, SOL_SOCKET, SO_PRIORITY, &optval, in ZTEST()
462 cmsg->cmsg_level = SOL_SOCKET; in ZTEST_USER()
566 cmsg->cmsg_level = SOL_SOCKET; in ZTEST_USER()
627 cmsg->cmsg_level = SOL_SOCKET; in ZTEST_USER()
687 cmsg->cmsg_level = SOL_SOCKET; in ZTEST_USER()
716 rv = zsock_getsockopt(sock1, SOL_SOCKET, SO_TYPE, &optval, &optsize); in ZTEST()
721 rv = zsock_getsockopt(sock2, SOL_SOCKET, SO_TYPE, &optval, &optsize); in ZTEST()
750 rv = zsock_setsockopt(sock1, SOL_SOCKET, SO_TXTIME, &optval, in ZTEST()
755 rv = zsock_setsockopt(sock2, SOL_SOCKET, SO_TXTIME, &optval, in ZTEST()
[all …]
/Zephyr-Core-3.7.0/tests/net/socket/tls/src/
Dmain.c214 rv = zsock_getsockopt(sock1, SOL_SOCKET, SO_TYPE, &optval, &optlen); in ZTEST()
219 rv = zsock_getsockopt(sock2, SOL_SOCKET, SO_TYPE, &optval, &optlen); in ZTEST()
239 rv = zsock_getsockopt(sock1, SOL_SOCKET, SO_PROTOCOL, &optval, &optlen); in ZTEST()
245 rv = zsock_getsockopt(sock2, SOL_SOCKET, SO_PROTOCOL, &optval, &optlen); in ZTEST()
443 ret = zsock_setsockopt(new_sock, SOL_SOCKET, SO_RCVTIMEO, &timeo_optval, in ZTEST()
499 ret = zsock_setsockopt(new_sock, SOL_SOCKET, SO_RCVTIMEO, &timeo_optval, in ZTEST()
1179 ret = zsock_setsockopt(new_sock, SOL_SOCKET, SO_RCVBUF, &buf_optval, in ZTEST()
1272 ret = zsock_setsockopt(new_sock, SOL_SOCKET, SO_RCVBUF, &buf_optval, in ZTEST()
1373 ret = zsock_setsockopt(c_sock, SOL_SOCKET, SO_RCVTIMEO, &optval, in ZTEST()
1416 ret = zsock_setsockopt(c_sock, SOL_SOCKET, SO_SNDTIMEO, &timeo_optval, in ZTEST()
[all …]
/Zephyr-Core-3.7.0/tests/net/socket/misc/src/
Dmain.c190 ret = zsock_setsockopt(sock_s, SOL_SOCKET, SO_BINDTODEVICE, &ifreq, in test_so_bindtodevice()
201 ret = zsock_setsockopt(sock_c, SOL_SOCKET, SO_BINDTODEVICE, &ifreq, in test_so_bindtodevice()
226 ret = zsock_setsockopt(sock_c, SOL_SOCKET, SO_BINDTODEVICE, &ifreq, in test_so_bindtodevice()
254 ret = zsock_setsockopt(sock_s, SOL_SOCKET, SO_BINDTODEVICE, &ifreq, in test_so_bindtodevice()
264 ret = zsock_setsockopt(sock_c, SOL_SOCKET, SO_BINDTODEVICE, &ifreq, in test_so_bindtodevice()
909 ret = zsock_getsockopt(sock_t, SOL_SOCKET, SO_DOMAIN, &domain, &optlen); in ZTEST()
914 ret = zsock_getsockopt(sock_u, SOL_SOCKET, SO_DOMAIN, &domain, &optlen); in ZTEST()
921 ret = zsock_setsockopt(sock_u, SOL_SOCKET, SO_DOMAIN, &domain, optlen); in ZTEST()
/Zephyr-Core-3.7.0/doc/connectivity/networking/api/
Dsocks5.rst37 ret = setsockopt(sock, SOL_SOCKET, SO_SOCKS5,
/Zephyr-Core-3.7.0/subsys/net/lib/dns/
Ddispatcher.c109 (void)zsock_getsockopt(pev->event.fd, SOL_SOCKET, in recv_data()
114 (void)zsock_getsockopt(pev->event.fd, SOL_SOCKET, in recv_data()
Dllmnr_responder.c451 (void)zsock_getsockopt(sock, SOL_SOCKET, SO_DOMAIN, &family, &optlen); in dns_read()
511 (void)zsock_getsockopt(pev->event.fd, SOL_SOCKET, in recv_data()
513 (void)zsock_getsockopt(pev->event.fd, SOL_SOCKET, in recv_data()
/Zephyr-Core-3.7.0/samples/net/sockets/big_http_download/src/
Dbig_http_download.c293 CHECK(setsockopt(sock, SOL_SOCKET, SO_RCVTIMEO, &timeout, in download()
295 CHECK(setsockopt(sock, SOL_SOCKET, SO_SNDTIMEO, &timeout, in download()
/Zephyr-Core-3.7.0/subsys/net/lib/mqtt/
Dmqtt_transport_socket_tcp.c35 SOL_SOCKET, SO_SOCKS5, in mqtt_client_tcp_connect()
Dmqtt_transport_socket_tls.c38 SOL_SOCKET, SO_SOCKS5, in mqtt_client_tls_connect()
/Zephyr-Core-3.7.0/tests/net/socket/reuseaddr_reuseport/src/
Dmain.c110 ret = zsock_getsockopt(sock, SOL_SOCKET, SO_REUSEADDR, optval, optlen); in test_getsocketopt_reuseaddr()
118 ret = zsock_setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, optval, optlen); in test_setsocketopt_reuseaddr()
133 ret = zsock_getsockopt(sock, SOL_SOCKET, SO_REUSEPORT, optval, optlen); in test_getsocketopt_reuseport()
141 ret = zsock_setsockopt(sock, SOL_SOCKET, SO_REUSEPORT, optval, optlen); in test_setsocketopt_reuseport()
/Zephyr-Core-3.7.0/samples/net/sockets/txtime/src/
Dmain.c186 cmsg->cmsg_level = SOL_SOCKET; in tx()
334 ret = setsockopt(sock, SOL_SOCKET, SO_TXTIME, &optval, sizeof(optval)); in create_socket()
341 ret = setsockopt(sock, SOL_SOCKET, SO_PRIORITY, &priority, in create_socket()
/Zephyr-Core-3.7.0/scripts/coredump/
Dcoredump_gdbserver.py127 gdbserver.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
/Zephyr-Core-3.7.0/samples/net/sockets/packet/src/
Dpacket.c135 ret = setsockopt(sock_packet.recv_sock, SOL_SOCKET, SO_RCVTIMEO, in recv_packet()
/Zephyr-Core-3.7.0/subsys/net/lib/sockets/
Dsocket_obj_core.c177 ret = zsock_getsockopt(sock, SOL_SOCKET, SO_DOMAIN, &family, &optlen); in sock_obj_core_alloc_find()
/Zephyr-Core-3.7.0/samples/net/sockets/echo_client/src/
Dtcp.c133 ret = setsockopt(data->tcp.sock, SOL_SOCKET, SO_SOCKS5, in start_tcp_proto()
/Zephyr-Core-3.7.0/modules/thrift/src/thrift/transport/
DTSSLSocket.cpp164 setsockopt(socket_, SOL_SOCKET, SO_NOSIGPIPE, &one, sizeof(one)); in openSecConnection()
224 int ret2 = getsockopt(socket_, SOL_SOCKET, SO_ERROR, cast_sockopt(&val), &lon); in openSecConnection()
/Zephyr-Core-3.7.0/samples/net/cellular_modem/src/
Dmain.c150 if (zsock_setsockopt(socket_fd, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) < 0) { in sample_echo_packet()

12