Home
last modified time | relevance | path

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

12

/Linux-v5.10/tools/testing/selftests/android/ion/
Dipcsocket.c139 msgh.msg_controllen = CMSG_LEN(len); in sendtosocket()
147 cmsg->cmsg_len = CMSG_LEN(len); in sendtosocket()
192 msgh.msg_controllen = CMSG_LEN(len); in receivefromsocket()
200 cmsg->cmsg_len = CMSG_LEN(len); in receivefromsocket()
/Linux-v5.10/net/ipv6/
Ddatagram.c790 if (cmsg->cmsg_len < CMSG_LEN(sizeof(struct in6_pktinfo))) { in ip6_datagram_send_ctl()
843 if (cmsg->cmsg_len < CMSG_LEN(4)) { in ip6_datagram_send_ctl()
859 if (opt->hopopt || cmsg->cmsg_len < CMSG_LEN(sizeof(struct ipv6_opt_hdr))) { in ip6_datagram_send_ctl()
866 if (cmsg->cmsg_len < CMSG_LEN(len)) { in ip6_datagram_send_ctl()
879 if (cmsg->cmsg_len < CMSG_LEN(sizeof(struct ipv6_opt_hdr))) { in ip6_datagram_send_ctl()
886 if (cmsg->cmsg_len < CMSG_LEN(len)) { in ip6_datagram_send_ctl()
904 if (cmsg->cmsg_len < CMSG_LEN(sizeof(struct ipv6_opt_hdr))) { in ip6_datagram_send_ctl()
911 if (cmsg->cmsg_len < CMSG_LEN(len)) { in ip6_datagram_send_ctl()
930 if (cmsg->cmsg_len < CMSG_LEN(sizeof(struct ipv6_rt_hdr))) { in ip6_datagram_send_ctl()
954 if (cmsg->cmsg_len < CMSG_LEN(len)) { in ip6_datagram_send_ctl()
[all …]
/Linux-v5.10/net/core/
Dscm.c167 if (cmsg->cmsg_len != CMSG_LEN(sizeof(struct ucred))) in __scm_send()
215 int cmlen = CMSG_LEN(len); in put_cmsg()
315 int cmlen = CMSG_LEN(i * sizeof(int)); in scm_detach_fds()
Dsock.c2359 if (cmsg->cmsg_len != CMSG_LEN(sizeof(u32))) in __sock_cmsg_send()
2364 if (cmsg->cmsg_len != CMSG_LEN(sizeof(u32))) in __sock_cmsg_send()
2377 if (cmsg->cmsg_len != CMSG_LEN(sizeof(u64))) in __sock_cmsg_send()
/Linux-v5.10/net/rds/
Drdma.c619 if (cmsg->cmsg_len < CMSG_LEN(sizeof(struct rds_rdma_args)) in rds_cmsg_rdma_args()
813 if (cmsg->cmsg_len < CMSG_LEN(sizeof(rds_rdma_cookie_t)) || in rds_cmsg_rdma_dest()
851 if (cmsg->cmsg_len < CMSG_LEN(sizeof(struct rds_get_mr_args)) || in rds_cmsg_rdma_map()
869 if (cmsg->cmsg_len < CMSG_LEN(sizeof(struct rds_atomic_args)) in rds_cmsg_atomic()
Dsend.c976 if (cmsg->cmsg_len < CMSG_LEN(sizeof(*cookie)) || in rds_cmsg_zcopy()
1092 CMSG_LEN(sizeof(struct rds_rdma_args))) in rds_rdma_bytes()
/Linux-v5.10/crypto/
Daf_alg.c459 if (cmsg->cmsg_len < CMSG_LEN(sizeof(*con->iv))) in af_alg_cmsg_send()
462 if (cmsg->cmsg_len < CMSG_LEN(con->iv->ivlen + in af_alg_cmsg_send()
468 if (cmsg->cmsg_len < CMSG_LEN(sizeof(u32))) in af_alg_cmsg_send()
474 if (cmsg->cmsg_len < CMSG_LEN(sizeof(u32))) in af_alg_cmsg_send()
/Linux-v5.10/tools/testing/selftests/net/
Dipv6_flowlabel.c55 cm->cmsg_len = CMSG_LEN(sizeof(flowlabel)); in do_send()
Dudpgso_bench_tx.c304 cm->cmsg_len = CMSG_LEN(sizeof(cfg_tx_ts)); in send_ts_cmsg()
368 cm->cmsg_len = CMSG_LEN(sizeof(cfg_gso_size)); in send_udp_segment_cmsg()
Dso_txtime.c89 cm->cmsg_len = CMSG_LEN(sizeof(tdeliver)); in do_send_one()
Dudpgso.c475 cm->cmsg_len = CMSG_LEN(sizeof(uint16_t)); in send_one()
Dnettest.c682 cm->cmsg_len = CMSG_LEN(sizeof(struct in_pktinfo)); in send_msg_cmsg()
693 cm->cmsg_len = CMSG_LEN(sizeof(struct in6_pktinfo)); in send_msg_cmsg()
Dmsg_zerocopy.c177 cm->cmsg_len = CMSG_LEN(sizeof(cookie)); in add_zcopy_cookie()
Dtxtimestamp.c631 cmsg->cmsg_len = CMSG_LEN(sizeof(uint32_t)); in do_test()
/Linux-v5.10/net/ipv4/
Dip_sockglue.c258 if (cmsg->cmsg_len < CMSG_LEN(sizeof(*src_info))) in ip_cmsg_send()
292 if (cmsg->cmsg_len != CMSG_LEN(sizeof(struct in_pktinfo))) in ip_cmsg_send()
301 if (cmsg->cmsg_len != CMSG_LEN(sizeof(int))) in ip_cmsg_send()
309 if (cmsg->cmsg_len == CMSG_LEN(sizeof(int))) in ip_cmsg_send()
311 else if (cmsg->cmsg_len == CMSG_LEN(sizeof(u8))) in ip_cmsg_send()
/Linux-v5.10/samples/seccomp/
Duser-trap.c49 cmsg->cmsg_len = CMSG_LEN(sizeof(int)); in send_fd()
/Linux-v5.10/include/linux/
Dsocket.h113 #define CMSG_LEN(len) (sizeof(struct cmsghdr) + (len)) macro
/Linux-v5.10/tools/perf/trace/beauty/include/linux/
Dsocket.h113 #define CMSG_LEN(len) (sizeof(struct cmsghdr) + (len)) macro
/Linux-v5.10/Documentation/networking/
Ddccp.rst64 cmsg->cmsg_len = CMSG_LEN(sizeof(uint32_t)); /* or CMSG_LEN(4) */
Dtls.rst149 cmsg->cmsg_len = CMSG_LEN(cmsg_len);
/Linux-v5.10/arch/um/os-Linux/
Dfile.c663 cmsg->cmsg_len = CMSG_LEN(fds_size); in os_sendmsg_fds()
/Linux-v5.10/tools/testing/selftests/bpf/
Dtest_sock_addr.c1237 cmsg->cmsg_len = CMSG_LEN(sizeof(struct in_pktinfo)); in init_pktinfo()
1246 cmsg->cmsg_len = CMSG_LEN(sizeof(struct in6_pktinfo)); in init_pktinfo()
/Linux-v5.10/net/sunrpc/
Dsvcsock.c166 cmh->cmsg_len = CMSG_LEN(sizeof(*pki)); in svc_set_cmsg_data()
178 cmh->cmsg_len = CMSG_LEN(sizeof(*pki)); in svc_set_cmsg_data()
/Linux-v5.10/net/tls/
Dtls_main.c179 if (cmsg->cmsg_len < CMSG_LEN(sizeof(*record_type))) in tls_proccess_cmsg()
/Linux-v5.10/net/dccp/
Dproto.c723 if (cmsg->cmsg_len != CMSG_LEN(sizeof(__u32))) in dccp_msghdr_parse()

12