Searched refs:CMSG_LEN (Results 1 – 14 of 14) sorted by relevance
64 #undef CMSG_LEN65 #define CMSG_LEN(l) (ALIGN(sizeof(struct cmsghdr)) + (l)) macro
247 cmsg->cmsg_len = CMSG_LEN(sizeof(struct in_addr)); in ngx_sendmsg()268 cmsg->cmsg_len = CMSG_LEN(sizeof(struct in_pktinfo)); in ngx_sendmsg()292 cmsg->cmsg_len = CMSG_LEN(sizeof(struct in6_pktinfo)); in ngx_sendmsg()
39 cmsg.cm.cmsg_len = CMSG_LEN(sizeof(int)); in ngx_write_channel()155 if (cmsg.cm.cmsg_len < (socklen_t) CMSG_LEN(sizeof(int))) { in ngx_read_channel()
1109 CMSG_LEN(sizeof(struct in6_pktinfo))) in udp_v4mapped_pktinfo()1220 CMSG_LEN(sizeof(struct in_addr))) { in udp_output()1233 if (cm->cmsg_len != CMSG_LEN(sizeof(u_char))) { in udp_output()1241 if (cm->cmsg_len != CMSG_LEN(sizeof(uint32_t))) { in udp_output()1249 if (cm->cmsg_len != CMSG_LEN(sizeof(uint32_t))) { in udp_output()1258 if (cm->cmsg_len != CMSG_LEN(sizeof(uint32_t))) { in udp_output()
231 cmh->cmsg_len = CMSG_LEN(sizeof(struct sctp_rcvinfo)); in sctp_build_ctl_nchunk()247 cmh->cmsg_len = CMSG_LEN(sizeof(struct sctp_nxtinfo)); in sctp_build_ctl_nchunk()271 cmh->cmsg_len = CMSG_LEN(sizeof(struct sctp_extrcvinfo)); in sctp_build_ctl_nchunk()276 cmh->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in sctp_build_ctl_nchunk()
568 #define CMSG_LEN(l) (_ALIGN(sizeof(struct cmsghdr)) + (l)) macro
139 got_fds = (cmsg->cmsg_len - CMSG_LEN(0)) / sizeof(int); in read_fd_message()180 cmsg->cmsg_len = CMSG_LEN(fdsize); in send_fd_message()
574 #define CMSG_LEN(l) (_ALIGN(sizeof(struct cmsghdr)) + (l)) macro
75 cmsg->cmsg_len = CMSG_LEN(fd_size); in vhost_user_write()
48 cmsg->cmsg_len = CMSG_LEN(sizeof(int)); in memif_msg_send()
693 cmsg->cmsg_len = CMSG_LEN(fd_size); in send_msg()
2856 if (control->m_len < CMSG_LEN(0)) in ip6_setpktopts()2866 cm->cmsg_len - CMSG_LEN(0), opt, cred, 0, 1, uproto); in ip6_setpktopts()
1759 cp->cmsg_len = CMSG_LEN(size); in sbcreatecontrol_how()
2075 cmsg->cmsg_len == CMSG_LEN(sizeof(tgr))) {