Home
last modified time | relevance | path

Searched refs:CMSG_LEN (Results 1 – 25 of 66) sorted by relevance

123

/third_party/glib/gio/
Dgnetworking.h57 #ifndef CMSG_LEN
61 #define CMSG_LEN(len) ((size_t)CMSG_DATA((struct cmsghdr *)NULL) + (len)) macro
67 #define CMSG_SPACE(len) GLIB_ALIGN_TO_SIZEOF (CMSG_LEN (len), struct cmsghdr)
Dgnetworking.h.in57 #ifndef CMSG_LEN
58 /* CMSG_LEN and CMSG_SPACE are defined by RFC 2292, but missing on
61 #define CMSG_LEN(len) ((size_t)CMSG_DATA((struct cmsghdr *)NULL) + (len)) macro
67 #define CMSG_SPACE(len) GLIB_ALIGN_TO_SIZEOF (CMSG_LEN (len), struct cmsghdr)
/third_party/alsa-lib/src/
Dsocket.c46 size_t cmsg_len = CMSG_LEN(sizeof(int)); in snd_send_fd()
79 size_t cmsg_len = CMSG_LEN(sizeof(int)); in snd_receive_fd()
/third_party/ltp/utils/sctp/lib/
Dsendmsg.c56 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in sctp_sendmsg()
99 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in sctp_send()
/third_party/ltp/lib/
Dtst_af_alg.c228 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/pulseaudio/src/pulsecore/
Diochannel.c320 cmsg.hdr.cmsg_len = CMSG_LEN(sizeof(struct ucred)); in pa_iochannel_write_with_creds()
379 cmsg.hdr.cmsg_len = CMSG_LEN(sizeof(int) * nfd); in pa_iochannel_write_with_fds()
443 pa_assert(cmh->cmsg_len == CMSG_LEN(sizeof(struct ucred))); in pa_iochannel_read_with_ancil_data()
451 int nfd = (cmh->cmsg_len - CMSG_LEN(0)) / sizeof(int); in pa_iochannel_read_with_ancil_data()
/third_party/ltp/utils/sctp/func_tests/
Dtest_assoc_abort.c132 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main()
195 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main()
Dtest_assoc_shutdown.c132 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main()
196 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main()
Dtest_inaddr_any.c164 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main()
212 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main()
Dtest_1_to_1_sendmsg.c142 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main()
300 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main()
Dtest_timetolive.c206 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main()
280 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main()
Dtest_basic.c181 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main()
296 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main()
Dtest_1_to_1_threads.c110 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in t_send()
Dtest_1_to_1_events.c124 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main()
Dtest_1_to_1_nonblock.c173 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main()
Dtest_1_to_1_addrs.c163 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); in main()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/
Dcrypto_linux.c469 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()
814 hdr->cmsg_len = CMSG_LEN(sizeof(u32)); in aes_unwrap()
950 hdr->cmsg_len = CMSG_LEN(sizeof(u32)); in crypto_cipher_oper()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/
Dcrypto_linux.c469 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()
814 hdr->cmsg_len = CMSG_LEN(sizeof(u32)); in aes_unwrap()
950 hdr->cmsg_len = CMSG_LEN(sizeof(u32)); in crypto_cipher_oper()
/third_party/musl/src/network/
Drecvmsg.c46 cmsg->cmsg_len = CMSG_LEN(sizeof tvts); in __convert_scm_timestamps()
/third_party/musl/porting/liteos_a/user/src/network/
Drecvmsg.c47 cmsg->cmsg_len = CMSG_LEN(sizeof tvts); in __convert_scm_timestamps()
/third_party/wayland_standard/src/
Dwayland-os.c113 end = (int *)(data + cmsg->cmsg_len - CMSG_LEN(0)); in recvmsg_cloexec_fallback()
/third_party/python/Modules/
Dsocketmodule.h63 # undef CMSG_LEN
/third_party/libcoap/src/
Dcoap_io.c710 cmsg->cmsg_len = CMSG_LEN(sizeof(struct in_pktinfo));
725 cmsg->cmsg_len = CMSG_LEN(sizeof(struct in_addr));
739 cmsg->cmsg_len = CMSG_LEN(sizeof(struct in6_pktinfo));
762 cmsg->cmsg_len = CMSG_LEN(sizeof(struct in_pktinfo));
778 cmsg->cmsg_len = CMSG_LEN(sizeof(struct in_addr));
901 cmsg->cmsg_len = CMSG_LEN(sizeof(buf));
/third_party/libuv/test/
Dtest-pipe-sendmsg.c132 msg.msg_controllen = CMSG_LEN(sizeof(send_fds)); in TEST_IMPL()
/third_party/openssl/engines/
De_afalg.c331 cmsg->cmsg_len = CMSG_LEN(ALG_OP_LEN); in afalg_set_op_sk()
342 cmsg->cmsg_len = CMSG_LEN(ALG_IV_LEN(len)); in afalg_set_iv_sk()

123