Home
last modified time | relevance | path

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

12

/dragonfly/contrib/wpa_supplicant/src/crypto/
H A Dcrypto_linux.c451 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 …]
/dragonfly/lib/libc/sysvipc/
H A Dsockets.c138 char buf[CMSG_SPACE(sizeof(int))]; in send_fd()
191 char buf[CMSG_SPACE(sizeof(int))]; in receive_fd()
256 char cred[CMSG_SPACE(sizeof(struct cmsgcred))]; in send_msg_with_cred()
268 msg.msg_controllen = CMSG_SPACE(sizeof(struct cmsgcred)); in send_msg_with_cred()
293 char cred[CMSG_SPACE(sizeof(struct cmsgcred))]; in receive_msg_with_cred()
/dragonfly/lib/libc/net/
H A Dip6opt.c60 return(CMSG_SPACE((nbytes + 7) & ~7)); in inet6_option_space()
239 if (cmsg->cmsg_len < CMSG_SPACE(sizeof(struct ip6_ext))) in inet6_option_next()
243 if (cmsg->cmsg_len < CMSG_SPACE(hdrlen)) in inet6_option_next()
295 if (cmsg->cmsg_len < CMSG_SPACE(sizeof(struct ip6_ext))) in inet6_option_find()
299 if (cmsg->cmsg_len < CMSG_SPACE(hdrlen)) in inet6_option_find()
H A Dnscachedcli.c155 char cred[CMSG_SPACE(sizeof(struct cmsgcred))]; in send_credentials()
167 cred_hdr.msg_controllen = CMSG_SPACE(sizeof(struct cmsgcred)); in send_credentials()
/dragonfly/contrib/dhcpcd/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) + \
/dragonfly/usr.sbin/pflogd/
H A Dprivsep_fdpass.c53 char tmp[CMSG_SPACE(sizeof(int))]; in send_fd()
89 char tmp[CMSG_SPACE(sizeof(int))]; in receive_fd()
/dragonfly/test/testcases/io/sendfd_1/
H A Dsendfd_1.c39 char cms[CMSG_SPACE(sizeof(int))]; in sendfd()
71 char cms[CMSG_SPACE(sizeof(int))]; in recvfd()
/dragonfly/usr.sbin/rrenumd/
H A Drrenumd.c171 rcvcmsglen = CMSG_SPACE(sizeof(struct in6_pktinfo)) + in init_globals()
172 CMSG_SPACE(sizeof(int)); in init_globals()
184 sndcmsglen = CMSG_SPACE(sizeof(struct in6_pktinfo)) + in init_globals()
185 CMSG_SPACE(sizeof(int)); in init_globals()
/dragonfly/test/socket/recvmsg/cloexec/
H A Drecvmsg_cloexec.c75 char cms[CMSG_SPACE(sizeof(int))]; in sendfd()
107 char cms[CMSG_SPACE(sizeof(int))]; in recvfd()
/dragonfly/crypto/openssh/
H A Dmonitor_fdpass.c59 char buf[CMSG_SPACE(sizeof(int))]; in mm_send_fd()
119 char buf[CMSG_SPACE(sizeof(int))]; in mm_receive_fd()
H A Ddefines.h609 #ifndef CMSG_SPACE
610 #define CMSG_SPACE(len) (__CMSG_ALIGN(sizeof(struct cmsghdr)) + __CMSG_ALIGN(len)) macro
/dragonfly/usr.sbin/rtsold/
H A Dprobe.c71 int scmsglen = CMSG_SPACE(sizeof(struct in6_pktinfo)) + in probe_init()
72 CMSG_SPACE(sizeof(int)); in probe_init()
H A Drtsol.c90 sndcmsglen = rcvcmsglen = CMSG_SPACE(sizeof(struct in6_pktinfo)) + in sockopen()
91 CMSG_SPACE(sizeof(int)); in sockopen()
/dragonfly/test/unix/passdesc/
H A Dpassdesc.c26 uint8_t data[CMSG_SPACE(sizeof(int))]; in test_send_desc()
62 uint8_t data[CMSG_SPACE(sizeof(int))]; in test_recv_desc()
/dragonfly/sys/kern/
H A Duipc_sockbuf.c590 if (CMSG_SPACE(size) > MCLBYTES) in sbcreatecontrol()
592 m = m_getl(CMSG_SPACE(size), M_NOWAIT, MT_CONTROL, 0, NULL); in sbcreatecontrol()
595 m->m_len = CMSG_SPACE(size); in sbcreatecontrol()
/dragonfly/lib/libc/rpc/
H A Dclnt_vc.c762 char control[CMSG_SPACE(sizeof(struct cmsgcred))]; in __msgread()
774 msg.msg_controllen = CMSG_SPACE(sizeof(struct cmsgcred)); in __msgread()
787 char control[CMSG_SPACE(sizeof(struct cmsgcred))]; in __msgwrite()
803 msg.msg_controllen = CMSG_SPACE(sizeof(struct cmsgcred)); in __msgwrite()
/dragonfly/test/unix/loopdesc/
H A Dloopdesc.c18 uint8_t data[CMSG_SPACE(sizeof(int))]; in test_sendto_self()
/dragonfly/test/udp/tos/
H A Dudp_tos.c32 uint8_t data[CMSG_SPACE(sizeof(u_char))]; in main()
/dragonfly/test/udp/sendsrcaddr/
H A Dudp_sendsrcaddr.c22 uint8_t data[CMSG_SPACE(sizeof(struct in_addr))]; in test_sendsrcaddr()
/dragonfly/contrib/mdocml/
H A Dmandocd.c69 uint8_t controlbuf[CMSG_SPACE(NUM_FDS * sizeof(int))]; in read_fds()
/dragonfly/usr.sbin/mld6query/
H A Dmld6query.c187 cmsglen = CMSG_SPACE(sizeof(struct in6_pktinfo)) + in make_msg()
/dragonfly/usr.sbin/rtadvd/
H A Drtadvd.c1543 rcvcmsgbuflen = CMSG_SPACE(sizeof(struct in6_pktinfo)) + in sock_open()
1544 CMSG_SPACE(sizeof(int)); in sock_open()
1551 sndcmsgbuflen = CMSG_SPACE(sizeof(struct in6_pktinfo)) + in sock_open()
1552 CMSG_SPACE(sizeof(int)); in sock_open()
/dragonfly/sys/sys/
H A Dsocket.h513 #define CMSG_SPACE(l) (_CMSG_ALIGN(sizeof(struct cmsghdr)) + _CMSG_ALIGN(l)) macro
/dragonfly/sbin/ping6/
H A Dping6.c729 ip6optlen += CMSG_SPACE(sizeof(struct in6_pktinfo)); in main()
732 ip6optlen += CMSG_SPACE(sizeof(int)); in main()
1627 if (bufsize < (extlen + CMSG_SPACE(0))) { in pr_ip6opt()
1628 extlen = bufsize - CMSG_SPACE(0); in pr_ip6opt()

12