Home
last modified time | relevance | path

Searched refs:optname (Results 1 – 25 of 33) sorted by relevance

12

/Zephyr-latest/tests/net/conn_mgr_conn/src/
Dtest_conn_impl.c139 char *opt_pointer(struct test_conn_data *data, int optname) in opt_pointer() argument
141 switch (optname) { in opt_pointer()
150 int test_set_opt_a(struct conn_mgr_conn_binding *const binding, int optname, in test_set_opt_a() argument
154 char *target = opt_pointer(data, optname); in test_set_opt_a()
174 int test_get_opt_a(struct conn_mgr_conn_binding *const binding, int optname, in test_get_opt_a() argument
178 char *target = opt_pointer(data, optname); in test_get_opt_a()
/Zephyr-latest/include/zephyr/net/
Dcanbus.h41 int optname,
46 int optname,
Dconn_mgr_connectivity.h166 int conn_mgr_if_set_opt(struct net_if *iface, int optname, const void *optval, size_t optlen);
194 int conn_mgr_if_get_opt(struct net_if *iface, int optname, void *optval, size_t *optlen);
Dconn_mgr_connectivity_impl.h97 int optname, const void *optval, size_t optlen);
115 int optname, void *optval, size_t *optlen);
Dsocket.h616 __syscall int zsock_getsockopt(int sock, int level, int optname,
632 __syscall int zsock_setsockopt(int sock, int level, int optname,
/Zephyr-latest/subsys/net/lib/sockets/
Dsockets_net_mgmt.c227 int optname, void *optval, socklen_t *optlen) in znet_mgmt_getsockopt() argument
240 if (optname == NET_REQUEST_ETHERNET_GET_QAV_PARAM) { in znet_mgmt_getsockopt()
263 int optname, const void *optval, in znet_mgmt_setsockopt() argument
277 if (optname == NET_REQUEST_ETHERNET_SET_QAV_PARAM) { in znet_mgmt_setsockopt()
360 static int net_mgmt_sock_getsockopt(void *obj, int level, int optname, in net_mgmt_sock_getsockopt() argument
363 return znet_mgmt_getsockopt(obj, level, optname, optval, optlen); in net_mgmt_sock_getsockopt()
366 static int net_mgmt_sock_setsockopt(void *obj, int level, int optname, in net_mgmt_sock_setsockopt() argument
369 return znet_mgmt_setsockopt(obj, level, optname, optval, optlen); in net_mgmt_sock_setsockopt()
Dsockets_can.c347 static int zcan_getsockopt_ctx(struct net_context *ctx, int level, int optname, in zcan_getsockopt_ctx() argument
355 return sock_fd_op_vtable.getsockopt(ctx, level, optname, in zcan_getsockopt_ctx()
359 static int zcan_setsockopt_ctx(struct net_context *ctx, int level, int optname, in zcan_setsockopt_ctx() argument
362 return sock_fd_op_vtable.setsockopt(ctx, level, optname, in zcan_setsockopt_ctx()
514 static int can_sock_getsockopt_vmeth(void *obj, int level, int optname, in can_sock_getsockopt_vmeth() argument
536 return api->getsockopt(dev, obj, level, optname, optval, in can_sock_getsockopt_vmeth()
540 return zcan_getsockopt_ctx(obj, level, optname, optval, optlen); in can_sock_getsockopt_vmeth()
624 static int can_sock_setsockopt_vmeth(void *obj, int level, int optname, in can_sock_setsockopt_vmeth() argument
633 return zcan_setsockopt_ctx(obj, level, optname, optval, optlen); in can_sock_setsockopt_vmeth()
639 if (optname == CAN_RAW_FILTER && optlen != sizeof(struct socketcan_filter)) { in can_sock_setsockopt_vmeth()
[all …]
Dsockets_packet.c363 int zpacket_getsockopt_ctx(struct net_context *ctx, int level, int optname, in zpacket_getsockopt_ctx() argument
371 return sock_fd_op_vtable.getsockopt(ctx, level, optname, in zpacket_getsockopt_ctx()
375 int zpacket_setsockopt_ctx(struct net_context *ctx, int level, int optname, in zpacket_setsockopt_ctx() argument
378 return sock_fd_op_vtable.setsockopt(ctx, level, optname, in zpacket_setsockopt_ctx()
453 static int packet_sock_getsockopt_vmeth(void *obj, int level, int optname, in packet_sock_getsockopt_vmeth() argument
456 return zpacket_getsockopt_ctx(obj, level, optname, optval, optlen); in packet_sock_getsockopt_vmeth()
459 static int packet_sock_setsockopt_vmeth(void *obj, int level, int optname, in packet_sock_setsockopt_vmeth() argument
462 return zpacket_setsockopt_ctx(obj, level, optname, optval, optlen); in packet_sock_setsockopt_vmeth()
Dsocket_dispatcher.c302 static int sock_dispatch_getsockopt_vmeth(void *obj, int level, int optname, in sock_dispatch_getsockopt_vmeth() argument
311 return zsock_getsockopt(fd, level, optname, optval, optlen); in sock_dispatch_getsockopt_vmeth()
314 static int sock_dispatch_setsockopt_vmeth(void *obj, int level, int optname, in sock_dispatch_setsockopt_vmeth() argument
319 if ((level == SOL_SOCKET) && (optname == SO_BINDTODEVICE)) { in sock_dispatch_setsockopt_vmeth()
365 } else if ((level == SOL_TLS) && (optname == TLS_NATIVE)) { in sock_dispatch_setsockopt_vmeth()
393 return zsock_setsockopt(fd, level, optname, optval, optlen); in sock_dispatch_setsockopt_vmeth()
Dsockets.c847 int z_impl_zsock_getsockopt(int sock, int level, int optname, in z_impl_zsock_getsockopt() argument
852 SYS_PORT_TRACING_OBJ_FUNC_ENTER(socket, getsockopt, sock, level, optname); in z_impl_zsock_getsockopt()
854 ret = VTABLE_CALL(getsockopt, sock, level, optname, optval, optlen); in z_impl_zsock_getsockopt()
856 SYS_PORT_TRACING_OBJ_FUNC_EXIT(socket, getsockopt, sock, level, optname, in z_impl_zsock_getsockopt()
862 int z_vrfy_zsock_getsockopt(int sock, int level, int optname, in z_vrfy_zsock_getsockopt() argument
878 ret = z_impl_zsock_getsockopt(sock, level, optname, in z_vrfy_zsock_getsockopt()
892 int z_impl_zsock_setsockopt(int sock, int level, int optname, in z_impl_zsock_setsockopt() argument
898 level, optname, optval, optlen); in z_impl_zsock_setsockopt()
900 ret = VTABLE_CALL(setsockopt, sock, level, optname, optval, optlen); in z_impl_zsock_setsockopt()
908 int z_vrfy_zsock_setsockopt(int sock, int level, int optname, in z_vrfy_zsock_setsockopt() argument
[all …]
Dsockets_internal.h68 int (*getsockopt)(void *obj, int level, int optname,
70 int (*setsockopt)(void *obj, int level, int optname,
Dsockets_inet.c1601 static enum tcp_conn_option get_tcp_option(int optname) in get_tcp_option() argument
1603 switch (optname) { in get_tcp_option()
1708 int zsock_getsockopt_ctx(struct net_context *ctx, int level, int optname, in zsock_getsockopt_ctx() argument
1715 switch (optname) { in zsock_getsockopt_ctx()
1872 switch (optname) { in zsock_getsockopt_ctx()
1884 get_tcp_option(optname), in zsock_getsockopt_ctx()
1900 switch (optname) { in zsock_getsockopt_ctx()
1982 switch (optname) { in zsock_getsockopt_ctx()
2201 int zsock_setsockopt_ctx(struct net_context *ctx, int level, int optname, in zsock_setsockopt_ctx() argument
2208 switch (optname) { in zsock_setsockopt_ctx()
[all …]
Dsockets_tls.c3432 int ztls_getsockopt_ctx(struct tls_context *ctx, int level, int optname, in ztls_getsockopt_ctx() argument
3442 if ((level == SOL_SOCKET) && (optname == SO_PROTOCOL)) { in ztls_getsockopt_ctx()
3459 if ((level == SOL_SOCKET) && (optname == SO_ERROR) && ctx->error != 0) { in ztls_getsockopt_ctx()
3471 return zsock_getsockopt(ctx->sock, level, optname, in ztls_getsockopt_ctx()
3475 switch (optname) { in ztls_getsockopt_ctx()
3558 int ztls_setsockopt_ctx(struct tls_context *ctx, int level, int optname, in ztls_setsockopt_ctx() argument
3566 if ((level == SOL_SOCKET) && (optname == SO_SNDTIMEO)) { in ztls_setsockopt_ctx()
3571 if ((level == SOL_SOCKET) && (optname == SO_RCVTIMEO)) { in ztls_setsockopt_ctx()
3577 return zsock_setsockopt(ctx->sock, level, optname, in ztls_setsockopt_ctx()
3581 switch (optname) { in ztls_setsockopt_ctx()
[all …]
Dsocketpair.c1144 static int spair_getsockopt(void *obj, int level, int optname, in spair_getsockopt() argument
1149 ARG_UNUSED(optname); in spair_getsockopt()
1157 static int spair_setsockopt(void *obj, int level, int optname, in spair_setsockopt() argument
1162 ARG_UNUSED(optname); in spair_setsockopt()
/Zephyr-latest/include/zephyr/posix/sys/
Dsocket.h35 int getsockopt(int sock, int level, int optname, void *optval, socklen_t *optlen);
45 int setsockopt(int sock, int level, int optname, const void *optval, socklen_t optlen);
/Zephyr-latest/drivers/net/
Dcanbus.c60 int optname, const void *optval, socklen_t optlen) in net_canbus_setsockopt() argument
67 if (level != SOL_CAN_RAW && optname != CAN_RAW_FILTER) { in net_canbus_setsockopt()
Dnsos.h152 int nsos_adapt_getsockopt(int fd, int level, int optname,
154 int nsos_adapt_setsockopt(int fd, int level, int optname,
Dnsos_sockets.c1046 static int nsos_getsockopt(void *obj, int level, int optname, in nsos_getsockopt() argument
1053 switch (optname) { in nsos_getsockopt()
1170 switch (optname) { in nsos_getsockopt()
1191 switch (optname) { in nsos_getsockopt()
1224 static int nsos_setsockopt(void *obj, int level, int optname, in nsos_setsockopt() argument
1231 switch (optname) { in nsos_setsockopt()
1339 switch (optname) { in nsos_setsockopt()
1360 switch (optname) { in nsos_setsockopt()
/Zephyr-latest/subsys/net/conn_mgr/
Dconn_mgr_connectivity.c103 int conn_mgr_if_get_opt(struct net_if *iface, int optname, void *optval, size_t *optlen) in conn_mgr_if_get_opt() argument
132 status = api->get_opt(binding, optname, optval, optlen); in conn_mgr_if_get_opt()
139 int conn_mgr_if_set_opt(struct net_if *iface, int optname, const void *optval, size_t optlen) in conn_mgr_if_set_opt() argument
161 status = api->set_opt(binding, optname, optval, optlen); in conn_mgr_if_set_opt()
/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/wifi/simplelink/
Dsimplelink_sockets.c715 static int simplelink_setsockopt(void *obj, int level, int optname, in simplelink_setsockopt() argument
723 switch (optname) { in simplelink_setsockopt()
773 switch (optname) { in simplelink_setsockopt()
797 retval = sl_SetSockOpt(sd, SL_SOL_SOCKET, optname, optval, in simplelink_setsockopt()
809 static int simplelink_getsockopt(void *obj, int level, int optname, in simplelink_getsockopt() argument
817 switch (optname) { in simplelink_getsockopt()
832 switch (optname) { in simplelink_getsockopt()
853 retval = sl_GetSockOpt(sd, SL_SOL_SOCKET, optname, optval, in simplelink_getsockopt()
/Zephyr-latest/subsys/tracing/ctf/
Dtracing_ctf.h502 #define sys_port_trace_socket_getsockopt_enter(sock, level, optname) \ argument
503 sys_trace_socket_getsockopt_enter(sock, level, optname)
504 #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)
561 void sys_trace_socket_getsockopt_enter(int sock, int level, int optname);
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.c576 void sys_trace_socket_getsockopt_enter(int sock, int level, int optname) in sys_trace_socket_getsockopt_enter() argument
578 ctf_top_socket_getsockopt_enter(sock, level, optname); in sys_trace_socket_getsockopt_enter()
581 void sys_trace_socket_getsockopt_exit(int sock, int level, int optname, in sys_trace_socket_getsockopt_exit() argument
584 ctf_top_socket_getsockopt_exit(sock, level, optname, in sys_trace_socket_getsockopt_exit()
588 void sys_trace_socket_setsockopt_enter(int sock, int level, int optname, in sys_trace_socket_setsockopt_enter() argument
591 ctf_top_socket_setsockopt_enter(sock, level, optname, in sys_trace_socket_setsockopt_enter()
Dctf_top.h586 static inline void ctf_top_socket_getsockopt_enter(int32_t sock, uint32_t level, uint32_t optname) in ctf_top_socket_getsockopt_enter() argument
588 CTF_EVENT(CTF_LITERAL(uint8_t, CTF_EVENT_SOCKET_GETSOCKOPT_ENTER), sock, level, optname); in ctf_top_socket_getsockopt_enter()
591 static inline void ctf_top_socket_getsockopt_exit(int32_t sock, uint32_t level, uint32_t optname, in ctf_top_socket_getsockopt_exit() argument
595 sock, level, optname, optval, optlen, ret); in ctf_top_socket_getsockopt_exit()
598 static inline void ctf_top_socket_setsockopt_enter(int32_t sock, uint32_t level, uint32_t optname, in ctf_top_socket_setsockopt_enter() argument
602 optname, optval, optlen); in ctf_top_socket_setsockopt_enter()
/Zephyr-latest/tests/net/socket/offload_dispatcher/src/
Dmain.c191 static int offload_getsockopt(void *obj, int level, int optname, in offload_getsockopt() argument
197 ARG_UNUSED(optname); in offload_getsockopt()
206 static int offload_setsockopt(void *obj, int level, int optname, in offload_setsockopt() argument
212 ARG_UNUSED(optname); in offload_setsockopt()

12