Home
last modified time | relevance | path

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

/xnu-12377.1.9/tests/
H A Drecvmsg_x_ctrunc.c66 const socklen_t cmsg_size = (socklen_t)CMSG_SPACE(sizeof(int)); in send_packets()
85 msg->msg_controllen = CMSG_SPACE(sizeof(int)); in send_packets()
92 msg->msg_controllen = CMSG_SPACE(sizeof(int)); in send_packets()
128 …n_t cmsg_size = (socklen_t)MAX(CMSG_SPACE(sizeof(struct in_pktinfo)), CMSG_SPACE(sizeof(struct in6… in receive_packets()
H A Dfd_send.c23 char buf[CMSG_SPACE(sizeof(int))]; in send_fd()
32 msg.msg_controllen = CMSG_SPACE(sizeof(int)); in send_fd()
55 char buf[CMSG_SPACE(sizeof(int))]; in recv_fd()
65 msg.msg_controllen = CMSG_SPACE(sizeof(int)); in recv_fd()
H A Dscm_rights_leak.c47 T_ASSERT_NOTNULL(cmsg = calloc(1, CMSG_SPACE(MAX_SOCK * sizeof(int))), "calloc");
78 socklen_t rcmsg_size = CMSG_SPACE(MAX_SOCK * 2 * sizeof(uintptr_t));
H A Dtcp_send_implied_connect.c100 char buf[CMSG_SPACE(sizeof(int))]; in tcp_send_implied_connect_v4()
107 msg.msg_controllen = CMSG_SPACE(sizeof(int)); in tcp_send_implied_connect_v4()
153 char buf[CMSG_SPACE(sizeof(int))]; in tcp_send_implied_connect_v6()
183 msg.msg_controllen = CMSG_SPACE(sizeof(int)); in tcp_send_implied_connect_v6()
H A Dip_pktinfo.c235 char control_space[CMSG_SPACE(128)] = {}; in echo()
246 char reply_control_space[CMSG_SPACE(128)] = {}; in echo()
292 reply_msg.msg_controllen = CMSG_SPACE(sizeof(struct in_pktinfo)); in echo()
H A Dsendmsg_test.c70 char cmsg_buf[CMSG_SPACE(sizeof(int))]; in do_test()
H A Drecv_link_addr_type.c226 char control_space[CMSG_SPACE(8192)] = {};
389 char control_space[CMSG_SPACE(8192)] = {};
H A Dv4mappedv6_recvpktinfo.c194 char control_space[CMSG_SPACE(8192)] = {}; in do_kqueue()
H A Dip_tos_35768492.c35 uint8_t ctrl[CMSG_SPACE(sizeof(int))] = {0}; in my_sendmsg()
/xnu-12377.1.9/bsd/sys/
H A Dsocket.h717 #define CMSG_SPACE(l) (__DARWIN_ALIGN32(sizeof(struct cmsghdr)) + __DARWIN_ALIGN32(l)) macro
/xnu-12377.1.9/bsd/kern/
H A Duipc_socket2.c1970 if (CMSG_SPACE((u_int)size) > MLEN) { in sbcreatecontrol()
1980 m->m_len = (int32_t)CMSG_SPACE(size); in sbcreatecontrol()
1998 if (CMSG_SPACE((u_int)size) + (*mp)->m_len > MLEN) { in sbcreatecontrol_mbuf()
2009 m->m_len += (int32_t)CMSG_SPACE(size); in sbcreatecontrol_mbuf()
H A Duipc_syscalls.c2059 unsigned char tmp_buffer[CMSG_SPACE(sizeof(struct user64_timeval))] = {}; in copyout_control()
2074 tmp_space = CMSG_SPACE(sizeof(struct user64_timeval)); in copyout_control()
2082 tmp_space = CMSG_SPACE(sizeof(struct user32_timeval)); in copyout_control()