| /netbsd-src/crypto/external/bsd/openssh/dist/ |
| H A D | monitor_fdpass.c | 57 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 D | fdpass.c | 60 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 D | sctp_sys_calls.c | 771 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 D | ip6opt.c | 83 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 D | unix_recv_fd.c | 70 #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 D | unix_send_fd.c | 77 #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 D | sys_defs.h | 90 #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 D | unfdpass.c | 68 #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 D | msgio.c | 70 #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 D | t_socket.c | 43 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 D | dhcpcd.h | 101 #undef CMSG_SPACE 110 #ifndef CMSG_SPACE 111 #define CMSG_SPACE(len) (ALIGN(sizeof(struct cmsghdr)) + ALIGN(len)) macro
|
| H A D | privsep.h | 100 CMSG_SPACE(sizeof(struct in6_pktinfo) + \
|
| /netbsd-src/crypto/external/bsd/openssl/dist/include/internal/ |
| H A D | ktls.h | 91 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 D | getpeereid.c | 103 # 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 D | privsep_fdpass.c | 54 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 D | os-local.c | 197 # 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 D | imsg.c | 59 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 D | mld6.c | 200 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 D | t_kevent.c | 91 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 D | bss_dgram.c | 1229 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 D | bss_dgram.c | 1247 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 D | uipc_syscalls_43.c | 316 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 D | t_pktinfo.c | 106 char control[CMSG_SPACE(sizeof(*ipi)) * 2]; in receive()
|
| /netbsd-src/external/mpl/dhcp/dist/common/ |
| H A D | socket.c | 785 #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 D | sys_socket.in.h | 145 # ifndef CMSG_SPACE 146 # define CMSG_SPACE(length) _CMSG_SPACE(length)
|