/third_party/alsa-lib/src/ |
D | socket.c | 46 size_t cmsg_len = CMSG_LEN(sizeof(int)); in snd_send_fd() local 47 struct cmsghdr *cmsg = alloca(cmsg_len); in snd_send_fd() 55 cmsg->cmsg_len = cmsg_len; in snd_send_fd() 65 msghdr.msg_controllen = cmsg_len; in snd_send_fd() 79 size_t cmsg_len = CMSG_LEN(sizeof(int)); in snd_receive_fd() local 80 struct cmsghdr *cmsg = alloca(cmsg_len); in snd_receive_fd() 88 cmsg->cmsg_len = cmsg_len; in snd_receive_fd() 98 msghdr.msg_controllen = cmsg_len; in snd_receive_fd()
|
/third_party/openssl/include/internal/ |
D | ktls.h | 89 int cmsg_len = sizeof(record_type); in ktls_send_ctrl_message() local 91 char buf[CMSG_SPACE(cmsg_len)]; in ktls_send_ctrl_message() 99 cmsg->cmsg_len = CMSG_LEN(cmsg_len); in ktls_send_ctrl_message() 101 msg.msg_controllen = cmsg->cmsg_len; in ktls_send_ctrl_message() 130 int cmsg_len = sizeof(struct tls_get_record); in ktls_read_record() local 133 char buf[CMSG_SPACE(cmsg_len)]; in ktls_read_record() 168 || cmsg->cmsg_len != CMSG_LEN(cmsg_len)) { in ktls_read_record() 302 int cmsg_len = sizeof(record_type); in ktls_send_ctrl_message() local 316 cmsg->cmsg_len = CMSG_LEN(cmsg_len); in ktls_send_ctrl_message() 318 msg.msg_controllen = cmsg->cmsg_len; in ktls_send_ctrl_message()
|
/third_party/rust/crates/libc/libc-test/test/ |
D | cmsg.rs | 18 pub fn cmsg_len(length: c_uint) -> usize; in cmsg_len() function 49 assert_eq!(libc::CMSG_LEN(l) as usize, cmsg_len(l)); in test_cmsg_len() 68 for cmsg_len in 0..64 { in test_cmsg_nxthdr() 74 (*pcmsghdr).cmsg_len = cmsg_len; in test_cmsg_nxthdr() 80 (*libc_next).cmsg_len = next_cmsg_len; in test_cmsg_nxthdr()
|
/third_party/ltp/utils/sctp/lib/ |
D | sendmsg.c | 56 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in sctp_sendmsg() 58 outmsg.msg_controllen = cmsg->cmsg_len; in sctp_sendmsg() 99 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in sctp_send() 101 outmsg.msg_controllen = cmsg->cmsg_len; in sctp_send()
|
/third_party/ltp/utils/sctp/func_tests/ |
D | test_assoc_abort.c | 132 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main() 133 outmessage.msg_controllen = cmsg->cmsg_len; in main() 195 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main() 196 outmessage.msg_controllen = cmsg->cmsg_len; in main()
|
D | test_assoc_shutdown.c | 132 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main() 133 outmessage.msg_controllen = cmsg->cmsg_len; in main() 196 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main() 197 outmessage.msg_controllen = cmsg->cmsg_len; in main()
|
D | test_inaddr_any.c | 164 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main() 165 outmessage.msg_controllen = cmsg->cmsg_len; in main() 212 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main() 213 outmessage.msg_controllen = cmsg->cmsg_len; in main()
|
D | test_1_to_1_sendmsg.c | 142 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main() 143 outmessage.msg_controllen = cmsg->cmsg_len; in main() 300 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main() 301 outmessage.msg_controllen = cmsg->cmsg_len; in main()
|
D | test_timetolive.c | 206 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main() 207 outmessage.msg_controllen = cmsg->cmsg_len; in main() 280 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main() 281 outmessage.msg_controllen = cmsg->cmsg_len; in main()
|
D | test_basic.c | 181 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main() 182 outmessage.msg_controllen = cmsg->cmsg_len; in main() 296 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main() 297 outmessage.msg_controllen = cmsg->cmsg_len; in main()
|
D | test_1_to_1_threads.c | 110 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in t_send() 111 outmessage.msg_controllen = cmsg->cmsg_len; in t_send()
|
D | test_1_to_1_events.c | 124 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main() 125 outmessage.msg_controllen = cmsg->cmsg_len; in main()
|
D | test_1_to_1_nonblock.c | 173 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main() 174 outmessage.msg_controllen = cmsg->cmsg_len; in main()
|
/third_party/rust/crates/linux-raw-sys/src/ |
D | lib.rs | 117 let cmsg_len = (*cmsg).cmsg_len; in CMSG_NXTHDR() localVariable 118 … let next_cmsg = (cmsg as *mut u8).offset(CMSG_ALIGN(cmsg_len as _) as isize) as *mut cmsghdr; in CMSG_NXTHDR() 121 if cmsg_len < size_of::<cmsghdr>() as _ { in CMSG_NXTHDR() 125 …if next_cmsg.offset(1) as usize > max || next_cmsg as usize + CMSG_ALIGN(cmsg_len as _) as usize >… in CMSG_NXTHDR()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/ |
D | crypto_linux.c | 469 hdr->cmsg_len = CMSG_LEN(sizeof(u32)); in linux_af_alg_skcipher_oper() 571 hdr->cmsg_len = CMSG_LEN(sizeof(u32)); in rc4_skip() 644 hdr->cmsg_len = CMSG_LEN(sizeof(u32)); in des_encrypt() 705 hdr->cmsg_len = CMSG_LEN(sizeof(u32)); in aes_128_cbc_oper() 712 hdr->cmsg_len = CMSG_SPACE(sizeof(*alg_iv) + iv_len); in aes_128_cbc_oper() 814 hdr->cmsg_len = CMSG_LEN(sizeof(u32)); in aes_unwrap() 821 hdr->cmsg_len = CMSG_SPACE(sizeof(*alg_iv) + iv_len); in aes_unwrap() 910 hdr->cmsg_len = CMSG_SPACE(sizeof(*alg_iv) + iv_len); in crypto_cipher_init() 950 hdr->cmsg_len = CMSG_LEN(sizeof(u32)); in crypto_cipher_oper()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/ |
D | crypto_linux.c | 469 hdr->cmsg_len = CMSG_LEN(sizeof(u32)); in linux_af_alg_skcipher_oper() 571 hdr->cmsg_len = CMSG_LEN(sizeof(u32)); in rc4_skip() 644 hdr->cmsg_len = CMSG_LEN(sizeof(u32)); in des_encrypt() 705 hdr->cmsg_len = CMSG_LEN(sizeof(u32)); in aes_128_cbc_oper() 712 hdr->cmsg_len = CMSG_SPACE(sizeof(*alg_iv) + iv_len); in aes_128_cbc_oper() 814 hdr->cmsg_len = CMSG_LEN(sizeof(u32)); in aes_unwrap() 821 hdr->cmsg_len = CMSG_SPACE(sizeof(*alg_iv) + iv_len); in aes_unwrap() 910 hdr->cmsg_len = CMSG_SPACE(sizeof(*alg_iv) + iv_len); in crypto_cipher_init() 950 hdr->cmsg_len = CMSG_LEN(sizeof(u32)); in crypto_cipher_oper()
|
/third_party/ltp/lib/ |
D | tst_af_alg.c | 228 cmsg->cmsg_len = CMSG_LEN(sizeof(uint32_t)); in tst_alg_sendmsg() 236 cmsg->cmsg_len = CMSG_LEN(sizeof(struct af_alg_iv) + in tst_alg_sendmsg() 246 cmsg->cmsg_len = CMSG_LEN(sizeof(uint32_t)); in tst_alg_sendmsg()
|
/third_party/musl/include/sys/ |
D | socket.h | 48 socklen_t cmsg_len; member 352 #define __CMSG_LEN(cmsg) (((cmsg)->cmsg_len + sizeof(long) - 1) & ~(long)(sizeof(long) - 1)) 357 #define CMSG_NXTHDR(mhdr, cmsg) ((cmsg)->cmsg_len < sizeof (struct cmsghdr) || \
|
/third_party/musl/porting/linux/user/include/sys/ |
D | socket.h | 52 socklen_t cmsg_len; member 356 #define __CMSG_LEN(cmsg) (((cmsg)->cmsg_len + sizeof(long) - 1) & ~(long)(sizeof(long) - 1)) 361 #define CMSG_NXTHDR(mhdr, cmsg) ((cmsg)->cmsg_len < sizeof (struct cmsghdr) || \
|
/third_party/musl/porting/liteos_a_newlib/kernel/include/sys/ |
D | socket.h | 37 socklen_t cmsg_len; member 341 #define __CMSG_LEN(cmsg) (((cmsg)->cmsg_len + sizeof(long) - 1) & ~(long)(sizeof(long) - 1)) 346 #define CMSG_NXTHDR(mhdr, cmsg) ((cmsg)->cmsg_len < sizeof (struct cmsghdr) || \
|
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/ |
D | socket.h | 48 socklen_t cmsg_len; member 350 #define __CMSG_LEN(cmsg) (((cmsg)->cmsg_len + sizeof(long) - 1) & ~(long)(sizeof(long) - 1)) 355 #define CMSG_NXTHDR(mhdr, cmsg) ((cmsg)->cmsg_len < sizeof (struct cmsghdr) || \
|
/third_party/musl/porting/uniproton/kernel/include/sys/ |
D | socket.h | 48 socklen_t cmsg_len; member 350 #define __CMSG_LEN(cmsg) (((cmsg)->cmsg_len + sizeof(long) - 1) & ~(long)(sizeof(long) - 1)) 355 #define CMSG_NXTHDR(mhdr, cmsg) ((cmsg)->cmsg_len < sizeof (struct cmsghdr) || \
|
/third_party/musl/porting/liteos_a/kernel/include/sys/ |
D | socket.h | 48 socklen_t cmsg_len; member 352 #define __CMSG_LEN(cmsg) (((cmsg)->cmsg_len + sizeof(long) - 1) & ~(long)(sizeof(long) - 1)) 357 #define CMSG_NXTHDR(mhdr, cmsg) ((cmsg)->cmsg_len < sizeof (struct cmsghdr) || \
|
/third_party/musl/porting/liteos_m/kernel/include/sys/ |
D | socket.h | 48 socklen_t cmsg_len; member 350 #define __CMSG_LEN(cmsg) (((cmsg)->cmsg_len + sizeof(long) - 1) & ~(long)(sizeof(long) - 1)) 355 #define CMSG_NXTHDR(mhdr, cmsg) ((cmsg)->cmsg_len < sizeof (struct cmsghdr) || \
|
/third_party/musl/ndk_musl_include/sys/ |
D | socket.h | 52 socklen_t cmsg_len; member 354 #define __CMSG_LEN(cmsg) (((cmsg)->cmsg_len + sizeof(long) - 1) & ~(long)(sizeof(long) - 1)) 359 #define CMSG_NXTHDR(mhdr, cmsg) ((cmsg)->cmsg_len < sizeof (struct cmsghdr) || \
|