Home
last modified time | relevance | path

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

123

/netbsd-src/crypto/external/bsd/openssh/dist/
H A Dmonitor_fdpass.c57 if (sizeof(cmsgbuf.buf) < CMSG_SPACE(sizeof(int))) { in mm_send_fd()
59 sizeof(cmsgbuf.buf), CMSG_SPACE(sizeof(int))); in mm_send_fd()
66 msg.msg_controllen = CMSG_SPACE(sizeof(int)); in mm_send_fd()
113 if (sizeof(cmsgbuf.buf) < CMSG_SPACE(sizeof(int))) { in mm_receive_fd()
115 sizeof(cmsgbuf.buf), CMSG_SPACE(sizeof(int))); in mm_receive_fd()
126 msg.msg_controllen = CMSG_SPACE(sizeof(int)); in mm_receive_fd()
/netbsd-src/tests/net/fdpass/
H A Dfdpass.c60 if (sizeof(cmsgbuf.buf) < CMSG_SPACE(sizeof(int))) in send_fd()
62 sizeof(cmsgbuf.buf), CMSG_SPACE(sizeof(int))); in send_fd()
66 msg.msg_controllen = CMSG_SPACE(sizeof(int)); in send_fd()
113 if (sizeof(cmsgbuf.buf) < CMSG_SPACE(sizeof(int))) in recv_fd()
115 sizeof(cmsgbuf.buf), CMSG_SPACE(sizeof(int))); in recv_fd()
123 msg.msg_controllen = CMSG_SPACE(sizeof(int)); in recv_fd()
/netbsd-src/lib/libc/net/
H A Dsctp_sys_calls.c771 cmsgbuf = malloc(CMSG_SPACE(sizeof(struct sctp_sndinfo)) + in sctp_sendv()
772 CMSG_SPACE(sizeof(struct sctp_prinfo)) + in sctp_sendv()
773 CMSG_SPACE(sizeof(struct sctp_authinfo)) + in sctp_sendv()
774 (size_t)addrcnt * CMSG_SPACE(sizeof(struct in6_addr))); in sctp_sendv()
801 msg.msg_controllen += CMSG_SPACE(sizeof(struct sctp_sndinfo)); in sctp_sendv()
802 cmsg = (struct cmsghdr *)((caddr_t)cmsg + CMSG_SPACE(sizeof(struct sctp_sndinfo))); in sctp_sendv()
815 msg.msg_controllen += CMSG_SPACE(sizeof(struct sctp_prinfo)); in sctp_sendv()
816 cmsg = (struct cmsghdr *)((caddr_t)cmsg + CMSG_SPACE(sizeof(struct sctp_prinfo))); in sctp_sendv()
828 msg.msg_controllen += CMSG_SPACE(sizeof(struct sctp_authinfo)); in sctp_sendv()
829 cmsg = (struct cmsghdr *)((caddr_t)cmsg + CMSG_SPACE(sizeof(struct sctp_authinfo))); in sctp_sendv()
[all …]
H A Dip6opt.c83 sp = CMSG_SPACE((nbytes + 7) & ~7); in inet6_option_space()
293 if (cmsg->cmsg_len < CMSG_SPACE(sizeof(struct ip6_ext))) in inet6_option_next()
297 if (cmsg->cmsg_len < CMSG_SPACE(hdrlen)) in inet6_option_next()
352 if (cmsg->cmsg_len < CMSG_SPACE(sizeof(struct ip6_ext))) in inet6_option_find()
356 if (cmsg->cmsg_len < CMSG_SPACE(hdrlen)) in inet6_option_find()
/netbsd-src/external/ibm-public/postfix/dist/src/util/
H A Dunix_recv_fd.c70 #if defined(CMSG_SPACE) && !defined(NO_MSGHDR_MSG_CONTROL) in unix_recv_fd()
73 char control[CMSG_SPACE(sizeof(newfd))]; in unix_recv_fd()
82 msg.msg_controllen = CMSG_SPACE(sizeof(newfd)); /* normal */ in unix_recv_fd()
107 #if defined(CMSG_SPACE) && !defined(NO_MSGHDR_MSG_CONTROL) in unix_recv_fd()
H A Dunix_send_fd.c77 #if defined(CMSG_SPACE) && !defined(NO_MSGHDR_MSG_CONTROL) in unix_send_fd()
80 char control[CMSG_SPACE(sizeof(sendfd))]; in unix_send_fd()
90 msg.msg_controllen = CMSG_SPACE(sizeof(sendfd)); /* normal */ in unix_send_fd()
H A Dsys_defs.h90 #ifndef CMSG_SPACE
91 #define CMSG_SPACE(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + CMSG_ALIGN(len)) macro
610 #ifndef CMSG_SPACE
611 #define CMSG_SPACE(len) (_CMSG_ALIGN(sizeof(struct cmsghdr)) + _CMSG_ALIGN(len)) macro
/netbsd-src/regress/sys/kern/unfdpass/
H A Dunfdpass.c68 #define MESSAGE_SIZE (CMSG_SPACE(FDCM_DATASIZE) + \
69 CMSG_SPACE(CRCM_DATASIZE))
101 message = malloc(CMSG_SPACE(MESSAGE_SIZE));
104 memset(message, 0, CMSG_SPACE(MESSAGE_SIZE));
356 fdcm = malloc(CMSG_SPACE(FDCM_DATASIZE)); in child()
359 memset(fdcm, 0, CMSG_SPACE(FDCM_DATASIZE)); in child()
/netbsd-src/sys/external/bsd/libnv/dist/
H A Dmsgio.c70 #define PKG_MAX_SIZE ((64U - 1) * CMSG_SPACE(sizeof(int)))
72 #define PKG_MAX_SIZE (MCLBYTES / CMSG_SPACE(sizeof(int)) - 1)
181 unsigned char credbuf[CMSG_SPACE(sizeof(struct cmsgcred))]; in cred_send()
221 unsigned char credbuf[CMSG_SPACE(sizeof(struct cmsgcred))]; in cred_recv()
280 msg.msg_controllen = nfds * CMSG_SPACE(sizeof(int)); in fd_package_send()
329 msg.msg_controllen = nfds * CMSG_SPACE(sizeof(int)); in fd_package_recv()
/netbsd-src/tests/include/sys/
H A Dt_socket.c43 cmp = malloc(CMSG_SPACE(sizeof(int))); in ATF_TC_BODY()
57 msg.msg_controllen = CMSG_SPACE(sizeof(int)); in ATF_TC_BODY()
132 cmp = malloc(CMSG_SPACE(sizeof(int))); in ATF_TC_BODY()
146 msg.msg_controllen = CMSG_SPACE(sizeof(int)); in ATF_TC_BODY()
/netbsd-src/external/bsd/dhcpcd/dist/src/
H A Ddhcpcd.h101 #undef CMSG_SPACE
110 #ifndef CMSG_SPACE
111 #define CMSG_SPACE(len) (ALIGN(sizeof(struct cmsghdr)) + ALIGN(len)) macro
H A Dprivsep.h100 CMSG_SPACE(sizeof(struct in6_pktinfo) + \
/netbsd-src/crypto/external/bsd/openssl/dist/include/internal/
H A Dktls.h91 char buf[CMSG_SPACE(cmsg_len)]; in ktls_send_ctrl_message()
133 char buf[CMSG_SPACE(cmsg_len)]; in ktls_read_record()
306 char buf[CMSG_SPACE(sizeof(unsigned char))]; in ktls_send_ctrl_message()
359 char buf[CMSG_SPACE(sizeof(unsigned char))]; in ktls_read_record()
/netbsd-src/external/bsd/openldap/dist/libraries/liblutil/
H A Dgetpeereid.c103 # ifndef CMSG_SPACE in lutil_getpeereid()
104 # define CMSG_SPACE(len) (_CMSG_ALIGN(sizeof(struct cmsghdr)) + _CMSG_ALIGN(len)) in lutil_getpeereid()
185 crmsgsize = CMSG_SPACE(SOCKCREDSIZE(NGROUPS)); in lutil_getpeereid()
/netbsd-src/dist/pf/sbin/pflogd/
H A Dprivsep_fdpass.c54 char tmp[CMSG_SPACE(sizeof(int))]; in send_fd()
90 char tmp[CMSG_SPACE(sizeof(int))]; in receive_fd()
/netbsd-src/external/bsd/openldap/dist/libraries/libldap/
H A Dos-local.c197 # ifndef CMSG_SPACE in ldap_pvt_connect()
198 # define CMSG_SPACE(len) (_CMSG_ALIGN( sizeof(struct cmsghdr)) + _CMSG_ALIGN(len) ) in ldap_pvt_connect() macro
205 unsigned char control[CMSG_SPACE(sizeof(int))]; in ldap_pvt_connect()
/netbsd-src/external/bsd/tmux/dist/compat/
H A Dimsg.c59 char buf[CMSG_SPACE(sizeof(int) * 1)]; in imsg_read()
74 msg.msg_controllen = CMSG_SPACE(sizeof(int) * 16); in imsg_read()
81 (int)((CMSG_SPACE(sizeof(int))-CMSG_SPACE(0))/sizeof(int)) in imsg_read()
/netbsd-src/usr.sbin/mld6query/
H A Dmld6.c200 cmsglen = CMSG_SPACE(sizeof(struct in6_pktinfo)) + CMSG_SPACE(hbhlen); in make_msg()
203 cmsglen = CMSG_SPACE(sizeof(struct in6_pktinfo)) + in make_msg()
/netbsd-src/tests/lib/libc/sys/
H A Dt_kevent.c91 msg = malloc(CMSG_SPACE(sizeof(int))); in ATF_TC_BODY()
97 m.msg_controllen = CMSG_SPACE(sizeof(int)); in ATF_TC_BODY()
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/bio/
H A Dbss_dgram.c1229 char cmsgbuf[CMSG_SPACE(sizeof(struct sctp_sndinfo)) + in dgram_sctp_write()
1230 CMSG_SPACE(sizeof(struct sctp_prinfo))]; in dgram_sctp_write()
1234 char cmsgbuf[CMSG_SPACE(sizeof(struct sctp_sndrcvinfo))]; in dgram_sctp_write()
1284 msg.msg_controllen += CMSG_SPACE(sizeof(struct sctp_sndinfo)); in dgram_sctp_write()
1287 (struct cmsghdr *)&cmsgbuf[CMSG_SPACE(sizeof(struct sctp_sndinfo))]; in dgram_sctp_write()
1295 msg.msg_controllen += CMSG_SPACE(sizeof(struct sctp_prinfo)); in dgram_sctp_write()
1311 msg.msg_controllen += CMSG_SPACE(sizeof(struct sctp_sndrcvinfo)); in dgram_sctp_write()
/netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/bio/
H A Dbss_dgram.c1247 char cmsgbuf[CMSG_SPACE(sizeof(struct sctp_sndinfo)) + in dgram_sctp_write()
1248 CMSG_SPACE(sizeof(struct sctp_prinfo))]; in dgram_sctp_write()
1252 char cmsgbuf[CMSG_SPACE(sizeof(struct sctp_sndrcvinfo))]; in dgram_sctp_write()
1302 msg.msg_controllen += CMSG_SPACE(sizeof(struct sctp_sndinfo)); in dgram_sctp_write()
1305 (struct cmsghdr *)&cmsgbuf[CMSG_SPACE(sizeof(struct sctp_sndinfo))]; in dgram_sctp_write()
1313 msg.msg_controllen += CMSG_SPACE(sizeof(struct sctp_prinfo)); in dgram_sctp_write()
1329 msg.msg_controllen += CMSG_SPACE(sizeof(struct sctp_sndrcvinfo)); in dgram_sctp_write()
/netbsd-src/sys/compat/common/
H A Duipc_syscalls_43.c316 clen = CMSG_SPACE(accrightslen); in compat43_set_accrights()
324 cmsg->cmsg_len = CMSG_SPACE(accrightslen); in compat43_set_accrights()
/netbsd-src/tests/net/net/
H A Dt_pktinfo.c106 char control[CMSG_SPACE(sizeof(*ipi)) * 2]; in receive()
/netbsd-src/external/mpl/dhcp/dist/common/
H A Dsocket.c785 #ifndef CMSG_SPACE
786 static size_t CMSG_SPACE(size_t len) { in CMSG_SPACE() function
832 control_buf_len = CMSG_SPACE(sizeof(struct in6_pktinfo)); in allocate_cmsg_cbuf()
/netbsd-src/external/gpl3/gdb/dist/gnulib/import/
H A Dsys_socket.in.h145 # ifndef CMSG_SPACE
146 # define CMSG_SPACE(length) _CMSG_SPACE(length)

123