Home
last modified time | relevance | path

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

/f-stack/app/nginx-1.16.1/src/os/unix/
H A Dngx_freebsd_config.h61 #undef CMSG_SPACE
62 #define CMSG_SPACE(l) (ALIGN(sizeof(struct cmsghdr)) + ALIGN(l)) macro
H A Dngx_udp_sendmsg_chain.c209 u_char msg_control[CMSG_SPACE(sizeof(struct in_addr))]; in ngx_sendmsg()
211 u_char msg_control[CMSG_SPACE(sizeof(struct in_pktinfo))]; in ngx_sendmsg()
215 u_char msg_control6[CMSG_SPACE(sizeof(struct in6_pktinfo))]; in ngx_sendmsg()
H A Dngx_channel.c26 char space[CMSG_SPACE(sizeof(int))]; in ngx_write_channel()
106 char space[CMSG_SPACE(sizeof(int))]; in ngx_read_channel()
/f-stack/app/nginx-1.16.1/src/event/
H A Dngx_event_udp.c52 u_char msg_control[CMSG_SPACE(sizeof(struct in_addr))]; in ngx_event_recvmsg()
54 u_char msg_control[CMSG_SPACE(sizeof(struct in_pktinfo))]; in ngx_event_recvmsg()
58 u_char msg_control6[CMSG_SPACE(sizeof(struct in6_pktinfo))]; in ngx_event_recvmsg()
/f-stack/dpdk/drivers/net/mlx5/linux/
H A Dmlx5_socket.c38 char buf[CMSG_SPACE(sizeof(int))] = { 0 }; in mlx5_pmd_socket_handle()
/f-stack/freebsd/kern/
H A Duipc_usrreq.c2100 if (CMSG_SPACE(datalen) < clen) { in unp_externalize()
2101 clen -= CMSG_SPACE(datalen); in unp_externalize()
2103 ((caddr_t)cm + CMSG_SPACE(datalen)); in unp_externalize()
2372 if (CMSG_SPACE(datalen) < clen) { in unp_internalize()
2373 clen -= CMSG_SPACE(datalen); in unp_internalize()
2375 ((caddr_t)cm + CMSG_SPACE(datalen)); in unp_internalize()
2833 if (CMSG_SPACE(datalen) < clen) { in unp_scan()
2834 clen -= CMSG_SPACE(datalen); in unp_scan()
2836 ((caddr_t)cm + CMSG_SPACE(datalen)); in unp_scan()
H A Duipc_sockbuf.c1739 if (CMSG_SPACE((u_int)size) > MCLBYTES) in sbcreatecontrol_how()
1741 if (CMSG_SPACE((u_int)size) > MLEN) in sbcreatecontrol_how()
1749 KASSERT(CMSG_SPACE((u_int)size) <= M_TRAILINGSPACE(m), in sbcreatecontrol_how()
1755 bzero(cp, CMSG_SPACE((u_int)size)); in sbcreatecontrol_how()
1758 m->m_len = CMSG_SPACE(size); in sbcreatecontrol_how()
H A Duipc_syscalls.c1613 datalen = CMSG_SPACE(cm->cmsg_len - CMSG_SPACE(0)); in m_dispose_extcontrolm()
1620 nfd = (cm->cmsg_len - CMSG_SPACE(0)) / in m_dispose_extcontrolm()
/f-stack/dpdk/drivers/net/memif/
H A Dmemif_socket.c36 char ctl[CMSG_SPACE(sizeof(int))]; in memif_msg_send()
625 char ctl[CMSG_SPACE(sizeof(int)) + in memif_msg_receive()
626 CMSG_SPACE(sizeof(struct ucred))] = { 0 }; in memif_msg_receive()
/f-stack/tools/compat/include/sys/
H A Dsocket.h567 #define CMSG_SPACE(l) (_ALIGN(sizeof(struct cmsghdr)) + _ALIGN(l)) macro
/f-stack/dpdk/lib/librte_vhost/
H A Dsocket.c107 char control[CMSG_SPACE(max_fds * sizeof(int))]; in read_fd_message()
160 char control[CMSG_SPACE(fdsize)]; in send_fd_message()
/f-stack/freebsd/netinet/
H A Dsctp_indata.c193 len += CMSG_SPACE(sizeof(struct sctp_rcvinfo)); in sctp_build_ctl_nchunk()
199 len += CMSG_SPACE(sizeof(struct sctp_nxtinfo)); in sctp_build_ctl_nchunk()
206 len += CMSG_SPACE(sizeof(struct sctp_extrcvinfo)); in sctp_build_ctl_nchunk()
209 len += CMSG_SPACE(sizeof(struct sctp_sndrcvinfo)); in sctp_build_ctl_nchunk()
242 cmh = (struct cmsghdr *)((caddr_t)cmh + CMSG_SPACE(sizeof(struct sctp_rcvinfo))); in sctp_build_ctl_nchunk()
243 SCTP_BUF_LEN(ret) += CMSG_SPACE(sizeof(struct sctp_rcvinfo)); in sctp_build_ctl_nchunk()
264 cmh = (struct cmsghdr *)((caddr_t)cmh + CMSG_SPACE(sizeof(struct sctp_nxtinfo))); in sctp_build_ctl_nchunk()
265 SCTP_BUF_LEN(ret) += CMSG_SPACE(sizeof(struct sctp_nxtinfo)); in sctp_build_ctl_nchunk()
274 SCTP_BUF_LEN(ret) += CMSG_SPACE(sizeof(struct sctp_extrcvinfo)); in sctp_build_ctl_nchunk()
279 SCTP_BUF_LEN(ret) += CMSG_SPACE(sizeof(struct sctp_sndrcvinfo)); in sctp_build_ctl_nchunk()
/f-stack/freebsd/sys/
H A Dsocket.h573 #define CMSG_SPACE(l) (_ALIGN(sizeof(struct cmsghdr)) + _ALIGN(l)) macro
/f-stack/dpdk/drivers/net/virtio/virtio_user/
H A Dvhost_user.c60 char control[CMSG_SPACE(fd_size)]; in vhost_user_write()
/f-stack/dpdk/lib/librte_eal/common/
H A Deal_common_proc.c269 char control[CMSG_SPACE(sizeof(m->msg.fds))]; in read_msg()
670 char control[CMSG_SPACE(fd_size)]; in send_msg()