| /freebsd-13.1/tests/sys/kern/ |
| H A D | unix_passfd_test.c | 147 char message[CMSG_SPACE(sizeof(int))]; in sendfd_payload() 251 CMSG_SPACE(sizeof(int)), flags); in recvfd() 457 CMSG_SPACE(SOCKCREDSIZE(CMGROUP_MAX)) + CMSG_SPACE(sizeof(int)), 0); in ATF_TC_BODY() 534 message = malloc(CMSG_SPACE(sizeof(int))); in ATF_TC_BODY() 547 message = malloc(CMSG_SPACE(sizeof(int)) * 2); in ATF_TC_BODY() 562 message = malloc(CMSG_SPACE(sizeof(int)) * 2); in ATF_TC_BODY() 576 message = malloc(CMSG_SPACE(sizeof(int)) * 2); in ATF_TC_BODY() 581 recv_cmsg(fd[1], message, CMSG_SPACE(sizeof(int)) + CMSG_SPACE(0), in ATF_TC_BODY() 656 char *cm, message[CMSG_SPACE(0) + CMSG_SPACE(sizeof(int))]; in ATF_TC_BODY() 668 cm += CMSG_SPACE(0); in ATF_TC_BODY() [all …]
|
| /freebsd-13.1/contrib/netbsd-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()
|
| /freebsd-13.1/lib/libc/net/ |
| H A D | sctp_sys_calls.c | 536 char cmsgbuf[CMSG_SPACE(sizeof(struct sctp_sndrcvinfo))]; in sctp_sendmsg() 597 msg.msg_controllen = CMSG_SPACE(sizeof(struct sctp_sndrcvinfo)); in sctp_sendmsg() 649 char cmsgbuf[CMSG_SPACE(sizeof(struct sctp_sndrcvinfo))]; in sctp_send() 998 cmsgbuf = malloc(CMSG_SPACE(sizeof(struct sctp_sndinfo)) + in sctp_sendv() 999 CMSG_SPACE(sizeof(struct sctp_prinfo)) + in sctp_sendv() 1000 CMSG_SPACE(sizeof(struct sctp_authinfo)) + in sctp_sendv() 1001 (size_t)addrcnt * CMSG_SPACE(sizeof(struct in6_addr))); in sctp_sendv() 1028 msg.msg_controllen += CMSG_SPACE(sizeof(struct sctp_sndinfo)); in sctp_sendv() 1042 msg.msg_controllen += CMSG_SPACE(sizeof(struct sctp_prinfo)); in sctp_sendv() 1118 msg.msg_controllen += CMSG_SPACE(sizeof(struct in_addr)); in sctp_sendv() [all …]
|
| H A D | ip6opt.c | 74 return(CMSG_SPACE((nbytes + 7) & ~7)); in inet6_option_space() 253 if (cmsg->cmsg_len < CMSG_SPACE(sizeof(struct ip6_ext))) in inet6_option_next() 257 if (cmsg->cmsg_len < CMSG_SPACE(hdrlen)) in inet6_option_next() 309 if (cmsg->cmsg_len < CMSG_SPACE(sizeof(struct ip6_ext))) in inet6_option_find() 313 if (cmsg->cmsg_len < CMSG_SPACE(hdrlen)) in inet6_option_find()
|
| /freebsd-13.1/contrib/wpa/src/crypto/ |
| H A D | crypto_linux.c | 451 char buf[CMSG_SPACE(sizeof(u32))]; in linux_af_alg_skcipher_oper() 463 msg.msg_controllen = CMSG_SPACE(sizeof(u32)); in linux_af_alg_skcipher_oper() 542 char buf[CMSG_SPACE(sizeof(u32))]; in rc4_skip() 565 msg.msg_controllen = CMSG_SPACE(sizeof(u32)); in rc4_skip() 612 char buf[CMSG_SPACE(sizeof(u32))]; in des_encrypt() 638 msg.msg_controllen = CMSG_SPACE(sizeof(u32)); in des_encrypt() 697 msg.msg_controllen = CMSG_SPACE(sizeof(u32)) + in aes_128_cbc_oper() 698 CMSG_SPACE(sizeof(*alg_iv) + iv_len); in aes_128_cbc_oper() 807 CMSG_SPACE(sizeof(*alg_iv) + iv_len); in aes_unwrap() 932 char buf[CMSG_SPACE(sizeof(u32))]; in crypto_cipher_oper() [all …]
|
| /freebsd-13.1/contrib/netbsd-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()
|
| /freebsd-13.1/lib/libnv/ |
| H A D | msgio.c | 64 #define PKG_MAX_SIZE ((64U - 1) * CMSG_SPACE(sizeof(int))) 151 unsigned char credbuf[CMSG_SPACE(sizeof(struct cmsgcred))]; in cred_send() 191 unsigned char credbuf[CMSG_SPACE(sizeof(struct cmsgcred))]; in cred_recv() 250 msg.msg_controllen = nfds * CMSG_SPACE(sizeof(int)); in fd_package_send() 299 msg.msg_controllen = nfds * CMSG_SPACE(sizeof(int)); in fd_package_recv()
|
| /freebsd-13.1/sys/compat/cloudabi/ |
| H A D | cloudabi_sock.c | 158 if (fdslen > MCLBYTES || CMSG_SPACE(fdslen * sizeof(int)) > MCLBYTES) { in cloudabi_sock_send() 163 control = m_get2(CMSG_SPACE(fdslen * sizeof(int)), in cloudabi_sock_send() 165 control->m_len = CMSG_SPACE(fdslen * sizeof(int)); in cloudabi_sock_send()
|
| /freebsd-13.1/crypto/openssl/include/internal/ |
| H A D | ktls.h | 94 char buf[CMSG_SPACE(cmsg_len)]; in ktls_send_ctrl_message() 136 char buf[CMSG_SPACE(cmsg_len)]; in ktls_read_record() 309 char buf[CMSG_SPACE(sizeof(unsigned char))]; in ktls_send_ctrl_message() 362 char buf[CMSG_SPACE(sizeof(unsigned char))]; in ktls_read_record()
|
| /freebsd-13.1/tools/regression/netinet/ipbroadcast/ |
| H A D | ipbroadcast.c | 72 CMSG_SPACE(sizeof(struct in_addr)) + \ 73 CMSG_SPACE(sizeof(struct sockaddr_dl)) 312 msg.msg_controllen += CMSG_SPACE(sizeof(struct in_addr)); in main() 323 msg.msg_controllen += CMSG_SPACE(sizeof(struct sockaddr_dl)); in main()
|
| /freebsd-13.1/tools/regression/sockets/unix_cmsg/ |
| H A D | t_cmsgcred.c | 56 cmsg_size = CMSG_SPACE(sizeof(struct cmsgcred)); in t_cmsgcred_client() 94 cmsg_size = CMSG_SPACE(sizeof(struct cmsgcred)); in t_cmsgcred_server()
|
| H A D | t_cmsgcred_sockcred.c | 57 cmsg1_size = CMSG_SPACE(SOCKCREDSIZE(uc_cfg.proc_cred.gid_num)); in t_cmsgcred_sockcred_server() 58 cmsg2_size = CMSG_SPACE(sizeof(struct cmsgcred)); in t_cmsgcred_sockcred_server()
|
| /freebsd-13.1/contrib/pf/pflogd/ |
| H A D | privsep_fdpass.c | 55 char buf[CMSG_SPACE(sizeof(int))]; in send_fd() 94 char buf[CMSG_SPACE(sizeof(int))]; in receive_fd()
|
| /freebsd-13.1/tools/regression/capsicum/syscalls/ |
| H A D | misc.c | 58 unsigned char ctrl[CMSG_SPACE(sizeof(fd))]; in descriptor_send() 88 unsigned char ctrl[CMSG_SPACE(sizeof(*fdp))]; in descriptor_recv()
|
| /freebsd-13.1/tools/regression/netinet6/inet6_rth/ |
| H A D | inet6_rth-segments.c | 239 mh.msg_controllen = CMSG_SPACE(0) * 2; /* 2 cmsghdr with no data */ in test_cmsg_nexthdr() 249 (void *)((caddr_t)ancbuf + CMSG_SPACE(0)), in test_cmsg_nexthdr() 261 mh.msg_controllen = CMSG_SPACE(0); in test_cmsg_nexthdr()
|
| /freebsd-13.1/crypto/openssh/ |
| H A D | monitor_fdpass.c | 59 char buf[CMSG_SPACE(sizeof(int))]; in mm_send_fd() 119 char buf[CMSG_SPACE(sizeof(int))]; in mm_receive_fd()
|
| /freebsd-13.1/contrib/bsnmp/snmpd/ |
| H A D | trans_inet.c | 187 MAX(CMSG_SPACE(SOCKCREDSIZE(CMGROUP_MAX)) + 188 CMSG_SPACE(sizeof(struct in_addr)), 189 CMSG_SPACE(SOCKCREDSIZE(CMGROUP_MAX)) + 190 CMSG_SPACE(sizeof(struct in6_pktinfo))); 194 MAX(CMSG_SPACE(sizeof(struct in_addr)), 195 CMSG_SPACE(sizeof(struct in6_pktinfo))); 645 msg->msg_controllen = CMSG_SPACE(sizeof(struct in_addr)); in ipv4_setsrc() 887 msg->msg_controllen = CMSG_SPACE(sizeof(struct in6_pktinfo)); in ipv6_setsrc()
|
| H A D | trans_udp.c | 226 char cbuf[CMSG_SPACE(sizeof(struct in_addr))]; in udp_send() 274 char cbuf[CMSG_SPACE(SOCKCREDSIZE(CMGROUP_MAX)) + in udp_recv() 275 CMSG_SPACE(sizeof(struct in_addr))]; in udp_recv()
|
| /freebsd-13.1/contrib/netbsd-tests/lib/libc/sys/ |
| H A D | t_kevent.c | 95 msg = malloc(CMSG_SPACE(sizeof(int))); in ATF_TC_BODY() 101 m.msg_controllen = CMSG_SPACE(sizeof(int)); in ATF_TC_BODY()
|
| /freebsd-13.1/sbin/hastd/ |
| H A D | proto_common.c | 67 unsigned char ctrl[CMSG_SPACE(sizeof(fd))]; in proto_descriptor_send() 167 unsigned char ctrl[CMSG_SPACE(sizeof(*fdp))]; in proto_descriptor_recv()
|
| /freebsd-13.1/contrib/openbsm/bin/auditdistd/ |
| H A D | proto_common.c | 64 unsigned char ctrl[CMSG_SPACE(sizeof(fd))]; in proto_descriptor_send() 164 unsigned char ctrl[CMSG_SPACE(sizeof(*fdp))]; in proto_descriptor_recv()
|
| /freebsd-13.1/lib/libopenbsd/ |
| H A D | imsg.c | 55 char buf[CMSG_SPACE(sizeof(int) * 1)]; in imsg_read() 77 (int)((CMSG_SPACE(sizeof(int))-CMSG_SPACE(0))/sizeof(int)) in imsg_read()
|
| /freebsd-13.1/usr.sbin/rrenumd/ |
| H A D | rrenumd.c | 199 rcvcmsglen = CMSG_SPACE(sizeof(struct in6_pktinfo)) + in init_globals() 200 CMSG_SPACE(sizeof(int)); in init_globals() 212 sndcmsglen = CMSG_SPACE(sizeof(struct in6_pktinfo)) + in init_globals() 213 CMSG_SPACE(sizeof(int)); in init_globals()
|
| /freebsd-13.1/contrib/blacklist/lib/ |
| H A D | bl.c | 363 char ctrl[CMSG_SPACE(sizeof(int))]; in bl_send() 425 char ctrl[CMSG_SPACE(sizeof(int)) + CMSG_SPACE(CRED_SIZE)]; in bl_recv()
|
| /freebsd-13.1/usr.sbin/nscd/ |
| H A D | nscdcli.c | 135 char pad[CMSG_SPACE(sizeof(struct cmsgcred))]; in send_credentials() 154 mhdr.msg_controllen = CMSG_SPACE(sizeof(struct cmsgcred)); in send_credentials()
|