Home
last modified time | relevance | path

Searched refs:CMSG_SPACE (Results 1 – 25 of 32) sorted by relevance

12

/linux-6.15/tools/testing/selftests/net/
H A Dudpgso_bench_tx.c212 char control[CMSG_SPACE(sizeof(struct scm_timestamping)) + in flush_errqueue_recv()
213 CMSG_SPACE(sizeof(struct sock_extended_err)) + in flush_errqueue_recv()
214 CMSG_SPACE(sizeof(struct sockaddr_in6))] = {0}; in flush_errqueue_recv()
327 char control[CMSG_SPACE(sizeof(cfg_tx_ts))] = {0}; in send_udp_sendmmsg()
345 msg_controllen += CMSG_SPACE(sizeof(cfg_tx_ts)); in send_udp_sendmmsg()
391 char control[CMSG_SPACE(sizeof(cfg_gso_size)) + in send_udp_segment()
392 CMSG_SPACE(sizeof(cfg_tx_ts))] = {0}; in send_udp_segment()
409 msg_controllen = CMSG_SPACE(sizeof(cfg_mss)); in send_udp_segment()
413 msg_controllen += CMSG_SPACE(sizeof(cfg_tx_ts)); in send_udp_segment()
H A Dso_rcv_listener.c73 char cbuf[CMSG_SPACE(sizeof(__u32))]; in main()
74 char recv_buf[CMSG_SPACE(sizeof(__u32))]; in main()
H A Dipv6_flowlabel.c55 char control[CMSG_SPACE(sizeof(flowlabel))] = {0}; in do_send()
99 char control[CMSG_SPACE(sizeof(expect))]; in do_recv()
H A Dcmsg_sender.c247 *cmsg_len += CMSG_SPACE(sizeof(__u32)); in ca_write_cmsg_u32()
293 cmsg_len += CMSG_SPACE(sizeof(txtime)); in cs_write_cmsg()
304 cmsg_len += CMSG_SPACE(sizeof(__u32)); in cs_write_cmsg()
316 cmsg_len += CMSG_SPACE(8); in cs_write_cmsg()
H A Dso_txtime.c75 char control[CMSG_SPACE(sizeof(uint64_t))]; in do_send_one()
156 char control[CMSG_SPACE(sizeof(struct sock_extended_err)) + in do_recv_errqueue_timeout()
157 CMSG_SPACE(sizeof(struct sockaddr_in6))] = {0}; in do_recv_errqueue_timeout()
H A Dmsg_zerocopy.c189 char ckbuf[CMSG_SPACE(sizeof(cookie))]; in do_sendmsg()
200 msg->msg_controllen = CMSG_SPACE(sizeof(cookie)); in do_sendmsg()
364 char cmsgbuf[CMSG_SPACE(sizeof(struct rds_zcopy_cookies))]; in do_recvmsg_completion()
H A Dtxtimestamp.c490 char control[2 * CMSG_SPACE(sizeof(uint32_t))]; in do_test()
634 msg.msg_controllen = cfg_use_cmsg * CMSG_SPACE(sizeof(uint32_t)); in do_test()
635 msg.msg_controllen += cfg_use_cmsg_opt_id * CMSG_SPACE(sizeof(uint32_t)); in do_test()
H A Dudpgso_bench_rx.c217 char control[CMSG_SPACE(sizeof(int))] = {0}; in recv_msg()
H A Dudpgso.c378 char control[CMSG_SPACE(sizeof(uint16_t))] = {0}; in send_one()
/linux-6.15/tools/testing/selftests/landlock/
H A Dcommon.h141 char buf[CMSG_SPACE(sizeof(fd_rx))]; in recv_fd()
175 char buf[CMSG_SPACE(sizeof(fd_tx))]; in send_fd()
/linux-6.15/arch/um/os-Linux/
H A Dfile.c526 char buf[CMSG_SPACE(sizeof(*fds) * MAX_RCV_FDS)]; in os_rcv_fd_msg()
536 .msg_controllen = CMSG_SPACE(sizeof(*fds) * n_fds), in os_rcv_fd_msg()
666 char control[CMSG_SPACE(sizeof(*fds) * OS_SENDMSG_MAX_FDS)]; in os_sendmsg_fds()
674 .msg_controllen = CMSG_SPACE(fds_size), in os_sendmsg_fds()
/linux-6.15/samples/seccomp/
H A Duser-trap.c37 char buf[CMSG_SPACE(sizeof(int))] = {0}, c = 'c'; in send_fd()
68 char buf[CMSG_SPACE(sizeof(int))] = {0}, c = 'c'; in recv_fd()
/linux-6.15/net/handshake/
H A Dalert.c37 u8 buf[CMSG_SPACE(sizeof(record_type))]; in tls_alert_send()
/linux-6.15/tools/testing/selftests/net/af_unix/
H A Dscm_pidfd.c136 char control[CMSG_SPACE(sizeof(struct ucred)) + in cmsg_check()
137 CMSG_SPACE(sizeof(int))] = { 0 }; in cmsg_check()
H A Dscm_rights.c228 .msg_controllen = CMSG_SPACE(sizeof(cmsg.fd)), in __send_fd()
/linux-6.15/net/core/
H A Dscm.c270 cmlen = min(CMSG_SPACE(len), msg->msg_controllen); in put_cmsg()
363 cmlen = CMSG_SPACE(i * sizeof(int)); in scm_detach_fds()
/linux-6.15/tools/testing/selftests/bpf/prog_tests/
H A Dlwt_reroute.c83 char control_buf[CMSG_SPACE(sizeof(uint64_t))]; in overflow_fq()
H A Dcrypto_sanity.c53 char cbuf[CMSG_SPACE(4)] = {0}; in do_crypt_afalg()
H A Dtoken.c159 char buf[CMSG_SPACE(sizeof(fds))]; in sendfd()
194 char buf[CMSG_SPACE(sizeof(fds))]; in recvfd()
/linux-6.15/arch/um/os-Linux/drivers/
H A Dtuntap_user.c69 char buf[CMSG_SPACE(sizeof(*fd_out))]; in tuntap_open_tramp()
/linux-6.15/tools/testing/selftests/uevent/
H A Duevent_filtering.c86 char control[CMSG_SPACE(sizeof(struct ucred))]; in uevent_listener()
/linux-6.15/net/rds/
H A Drecv.c474 max_messages = msghdr->msg_controllen / CMSG_SPACE(sizeof(cmsg)); in rds_notify_queue_get()
614 msg->msg_controllen < CMSG_SPACE(sizeof(*done))) in rds_recvmsg_zcookie()
/linux-6.15/tools/perf/trace/beauty/include/linux/
H A Dsocket.h125 #define CMSG_SPACE(len) (sizeof(struct cmsghdr) + CMSG_ALIGN(len)) macro
/linux-6.15/include/linux/
H A Dsocket.h125 #define CMSG_SPACE(len) (sizeof(struct cmsghdr) + CMSG_ALIGN(len)) macro
/linux-6.15/Documentation/networking/
H A Dtls.rst141 char buf[CMSG_SPACE(cmsg_len)];
175 char cmsg[CMSG_SPACE(sizeof(unsigned char))];

12