Home
last modified time | relevance | path

Searched refs:msghdr (Results 1 – 25 of 44) sorted by relevance

12

/Zephyr-latest/tests/posix/headers/src/
Dsys_socket_h.c25 struct msghdr mhdr = {0}; in ZTEST()
42 zassert_not_equal(-1, offsetof(struct msghdr, msg_name)); in ZTEST()
43 zassert_not_equal(-1, offsetof(struct msghdr, msg_namelen)); in ZTEST()
44 zassert_not_equal(-1, offsetof(struct msghdr, msg_iov)); in ZTEST()
45 zassert_not_equal(-1, offsetof(struct msghdr, msg_iovlen)); in ZTEST()
46 zassert_not_equal(-1, offsetof(struct msghdr, msg_control)); in ZTEST()
47 zassert_not_equal(-1, offsetof(struct msghdr, msg_controllen)); in ZTEST()
48 zassert_not_equal(-1, offsetof(struct msghdr, msg_flags)); in ZTEST()
/Zephyr-latest/tests/net/socket/socketpair/src/
Dhappy_path.c23 struct msghdr msghdr; in happy_path() local
82 memset(&msghdr, 0, sizeof(msghdr)); in happy_path()
83 msghdr.msg_iov = &iovec; in happy_path()
84 msghdr.msg_iovlen = 1; in happy_path()
88 res = zsock_sendmsg(fixture->sv[i], &msghdr, 0); in happy_path()
/Zephyr-latest/subsys/net/lib/mqtt/
Dmqtt_transport.h30 const struct msghdr *message);
95 const struct msghdr *message);
123 const struct msghdr *message);
134 const struct msghdr *message);
145 const struct msghdr *message);
156 const struct msghdr *message);
Dmqtt_transport.c74 const struct msghdr *message) in mqtt_transport_write_msg()
Dmqtt_transport_socket_tcp.c86 const struct msghdr *message) in mqtt_client_tcp_write_msg()
Dmqtt_transport_websocket.c111 const struct msghdr *message) in mqtt_client_websocket_write_msg()
Dmqtt_transport_socket_tls.c143 const struct msghdr *message) in mqtt_client_tls_write_msg()
Dmqtt.c150 const struct msghdr *message) in client_write_msg()
245 struct msghdr msg; in mqtt_publish()
/Zephyr-latest/subsys/net/lib/ptp/
Dtransport.c294 struct msghdr msghdr = {0}; in ptp_transport_recv() local
300 msghdr.msg_iov = &iov; in ptp_transport_recv()
301 msghdr.msg_iovlen = 1; in ptp_transport_recv()
302 msghdr.msg_control = ctrl; in ptp_transport_recv()
303 msghdr.msg_controllen = sizeof(ctrl); in ptp_transport_recv()
305 cnt = zsock_recvmsg(port->socket[idx], &msghdr, ZSOCK_MSG_DONTWAIT); in ptp_transport_recv()
310 for (cmsg = CMSG_FIRSTHDR(&msghdr); cmsg != NULL; cmsg = CMSG_NXTHDR(&msghdr, cmsg)) { in ptp_transport_recv()
/Zephyr-latest/include/zephyr/posix/sys/
Dsocket.h40 ssize_t recvmsg(int sock, struct msghdr *msg, int flags);
42 ssize_t sendmsg(int sock, const struct msghdr *message, int flags);
/Zephyr-latest/subsys/net/lib/sockets/
Dsockets_internal.h72 ssize_t (*sendmsg)(void *obj, const struct msghdr *msg, int flags);
73 ssize_t (*recvmsg)(void *obj, struct msghdr *msg, int flags);
80 size_t msghdr_non_empty_iov_count(const struct msghdr *msg);
Dsockets.c77 size_t msghdr_non_empty_iov_count(const struct msghdr *msg) in msghdr_non_empty_iov_count()
372 ssize_t z_impl_zsock_sendmsg(int sock, const struct msghdr *msg, int flags) in z_impl_zsock_sendmsg()
390 const struct msghdr *msg, in z_vrfy_zsock_sendmsg()
393 struct msghdr msg_copy; in z_vrfy_zsock_sendmsg()
439 ret = z_impl_zsock_sendmsg(sock, (const struct msghdr *)&msg_copy, in z_vrfy_zsock_sendmsg()
527 ssize_t z_impl_zsock_recvmsg(int sock, struct msghdr *msg, int flags) in z_impl_zsock_recvmsg()
544 ssize_t z_vrfy_zsock_recvmsg(int sock, struct msghdr *msg, int flags) in z_vrfy_zsock_recvmsg()
546 struct msghdr msg_copy; in z_vrfy_zsock_recvmsg()
Dsockets_inet.c653 ssize_t zsock_sendmsg_ctx(struct net_context *ctx, const struct msghdr *msg, in zsock_sendmsg_ctx()
924 static int insert_pktinfo(struct msghdr *msg, int level, int type, in insert_pktinfo()
954 struct msghdr *msg) in add_timestamping()
970 struct msghdr *msg) in add_pktinfo()
1034 static int update_msg_controllen(struct msghdr *msg) in update_msg_controllen()
1051 struct msghdr *msg, in zsock_recv_dgram()
1322 static ssize_t zsock_recv_stream_timed(struct net_context *ctx, struct msghdr *msg, in zsock_recv_stream_timed()
1412 static ssize_t zsock_recv_stream(struct net_context *ctx, struct msghdr *msg, in zsock_recv_stream()
1478 ssize_t zsock_recvmsg_ctx(struct net_context *ctx, struct msghdr *msg, in zsock_recvmsg_ctx()
2966 static ssize_t sock_sendmsg_vmeth(void *obj, const struct msghdr *msg, in sock_sendmsg_vmeth()
[all …]
Dsockets_packet.c276 ssize_t zpacket_sendmsg_ctx(struct net_context *ctx, const struct msghdr *msg, in zpacket_sendmsg_ctx()
439 static ssize_t packet_sock_sendmsg_vmeth(void *obj, const struct msghdr *msg, in packet_sock_sendmsg_vmeth()
/Zephyr-latest/subsys/net/ip/
Dnet_context.c2040 int buf_len, const struct msghdr *msghdr) in context_write_data() argument
2044 if (msghdr) { in context_write_data()
2047 for (i = 0; i < msghdr->msg_iovlen; i++) { in context_write_data()
2048 int len = MIN(msghdr->msg_iov[i].iov_len, buf_len); in context_write_data()
2050 ret = net_pkt_write(pkt, msghdr->msg_iov[i].iov_base, in context_write_data()
2073 const struct msghdr *msg, in context_setup_udp_packet()
2187 static void set_pkt_txtime(struct net_pkt *pkt, const struct msghdr *msghdr) in set_pkt_txtime() argument
2191 for (cmsg = CMSG_FIRSTHDR(msghdr); cmsg != NULL; in set_pkt_txtime()
2192 cmsg = CMSG_NXTHDR(msghdr, cmsg)) { in set_pkt_txtime()
2212 const struct msghdr *msghdr = NULL; in context_sendto() local
[all …]
Dtcp_internal.h301 const struct msghdr *msg);
304 size_t len, const struct msghdr *msg) in net_tcp_queue()
/Zephyr-latest/include/zephyr/net/
Dnet_ip.h257 struct msghdr { struct
295 #define CMSG_FIRSTHDR(msghdr) \ argument
296 ((msghdr)->msg_controllen >= sizeof(struct cmsghdr) ? \
297 (struct cmsghdr *)((msghdr)->msg_control) : NULL)
305 #define CMSG_NXTHDR(msghdr, cmsg) \ argument
306 (((cmsg) == NULL) ? CMSG_FIRSTHDR(msghdr) : \
309 (uint8_t *)((msghdr)->msg_control) + (msghdr)->msg_controllen) ? \
Dsocket.h474 __syscall ssize_t zsock_sendmsg(int sock, const struct msghdr *msg,
501 __syscall ssize_t zsock_recvmsg(int sock, struct msghdr *msg, int flags);
Dnet_context.h1235 const struct msghdr *msghdr,
/Zephyr-latest/drivers/can/
Dcan_native_linux_adapt.c119 struct msghdr msg = {0}; in linux_socketcan_read_data()
/Zephyr-latest/lib/posix/options/
Dnet.c353 ssize_t recvmsg(int sock, struct msghdr *msg, int flags) in recvmsg()
363 ssize_t sendmsg(int sock, const struct msghdr *message, int flags) in sendmsg()
/Zephyr-latest/tests/net/socket/udp/src/
Dmain.c360 const struct msghdr *client_msg, in comm_sendmsg_recvfrom()
428 struct msghdr msg; in ZTEST_USER()
487 struct msghdr msg; in ZTEST_USER()
533 struct msghdr msg; in ZTEST_USER()
591 struct msghdr msg; in ZTEST_USER()
652 struct msghdr msg; in ZTEST_USER()
905 const struct msghdr *client_msg) in comm_sendmsg_with_txtime()
1062 struct msghdr msg; in ZTEST_USER()
1406 struct msghdr msg; in ZTEST_USER()
1455 const struct msghdr *client_msg, in comm_sendmsg_recvmsg()
[all …]
/Zephyr-latest/subsys/tracing/ctf/
Dtracing_ctf.h527 struct msghdr;
547 void sys_trace_socket_sendmsg_enter(int sock, const struct msghdr *msg, int flags);
553 void sys_trace_socket_recvmsg_enter(int sock, const struct msghdr *msg, int flags);
554 void sys_trace_socket_recvmsg_exit(int sock, const struct msghdr *msg, int ret);
Dctf_top.c455 void sys_trace_socket_sendmsg_enter(int sock, const struct msghdr *msg, int flags) in sys_trace_socket_sendmsg_enter()
504 void sys_trace_socket_recvmsg_enter(int sock, const struct msghdr *msg, int flags) in sys_trace_socket_recvmsg_enter()
515 void sys_trace_socket_recvmsg_exit(int sock, const struct msghdr *msg, int ret) in sys_trace_socket_recvmsg_exit()
/Zephyr-latest/subsys/logging/backends/
Dlog_backend_net.c49 struct msghdr msg = { 0 }; in line_out()

12