/tools/testing/selftests/net/ |
D | cmsg_sender.c | 233 *(__u32 *)CMSG_DATA(cmsg) = uopt->val; in ca_write_cmsg_u32() 276 memcpy(CMSG_DATA(cmsg), &txtime, sizeof(txtime)); in cs_write_cmsg() 294 *(__u32 *)CMSG_DATA(cmsg) = SOF_TIMESTAMPING_TX_SCHED | in cs_write_cmsg() 306 *(__u64 *)CMSG_DATA(cmsg) = 0; in cs_write_cmsg() 360 ts = (void *)CMSG_DATA(cmsg); in cs_read_cmsg() 369 see = (void *)CMSG_DATA(cmsg); in cs_read_cmsg()
|
D | timestamping.c | 182 (struct timeval *)CMSG_DATA(cmsg); in printpacket() 190 (struct timespec *)CMSG_DATA(cmsg); in printpacket() 198 (struct timespec *)CMSG_DATA(cmsg); in printpacket() 221 (struct sock_extended_err *)CMSG_DATA(cmsg); in printpacket() 240 (struct in_pktinfo *)CMSG_DATA(cmsg); in printpacket()
|
D | ipv6_flowlabel.c | 81 *(uint32_t *)CMSG_DATA(cm) = htonl(flowlabel); in do_send() 140 flowlabel = ntohl(*(uint32_t *)CMSG_DATA(cm)); in do_recv()
|
D | txtimestamp.c | 320 tss = (void *) CMSG_DATA(cm); in __recv_errmsg_cmsg() 327 serr = (void *) CMSG_DATA(cm); in __recv_errmsg_cmsg() 337 struct in_pktinfo *info = (void *) CMSG_DATA(cm); in __recv_errmsg_cmsg() 342 struct in6_pktinfo *info6 = (void *) CMSG_DATA(cm); in __recv_errmsg_cmsg() 633 *((uint32_t *) CMSG_DATA(cmsg)) = report_opt; in do_test()
|
D | udpgso_bench_tx.c | 151 tss = (struct scm_timestamping *)CMSG_DATA(cmsg); in flush_cmsg() 165 err = (struct sock_extended_err *)CMSG_DATA(cmsg); in flush_cmsg() 321 valp = (void *)CMSG_DATA(cm); in send_ts_cmsg() 385 valp = (void *)CMSG_DATA(cm); in send_udp_segment_cmsg()
|
D | tcp_inq.c | 168 inq = *((int *) CMSG_DATA(cm)); in main()
|
D | so_txtime.c | 103 memcpy(CMSG_DATA(cm), &tdeliver, sizeof(tdeliver)); in do_send_one() 190 err = (struct sock_extended_err *)CMSG_DATA(cm); in do_recv_errqueue_timeout()
|
D | msg_zerocopy.c | 182 memcpy(CMSG_DATA(cm), &cookie, sizeof(cookie)); in add_zcopy_cookie() 384 ck = (struct rds_zcopy_cookies *)CMSG_DATA(cmsg); in do_recvmsg_completion() 427 serr = (void *) CMSG_DATA(cm); in do_recv_completion()
|
D | udpgso_bench_rx.c | 239 *gso_size = *(int *)CMSG_DATA(cmsg); in recv_msg()
|
D | rxtimestamp.c | 220 ts = (struct scm_timestamping *)CMSG_DATA(cmsg); in do_recv()
|
D | nettest.c | 920 pi = (struct in_pktinfo *)(CMSG_DATA(cm)); in get_index_from_cmsg() 927 pi6 = (struct in6_pktinfo *)(CMSG_DATA(cm)); in get_index_from_cmsg() 987 pi = (struct in_pktinfo *)(CMSG_DATA(cm)); in send_msg_cmsg() 999 pi6 = (struct in6_pktinfo *)(CMSG_DATA(cm)); in send_msg_cmsg()
|
D | udpgso.c | 476 *((uint16_t *) CMSG_DATA(cm)) = gso_len; in send_one()
|
D | csum.c | 703 aux = (void *)CMSG_DATA(cm); in recv_verify_packet_csum()
|
D | tls.c | 176 *CMSG_DATA(cmsg) = record_type; in tls_send_cmsg() 207 ctype = *((unsigned char *)CMSG_DATA(cmsg)); in tls_recv_cmsg()
|
/tools/testing/selftests/landlock/ |
D | common.h | 225 memcpy(&fd_rx, CMSG_DATA(cmsg), sizeof(fd_rx)); in recv_fd() 253 memcpy(CMSG_DATA(cmsg), &fd_tx, sizeof(fd_tx)); in send_fd()
|
/tools/testing/selftests/net/af_unix/ |
D | scm_pidfd.c | 170 pidfd = (void *)CMSG_DATA(cmsg); in cmsg_check() 180 ucred = (void *)CMSG_DATA(cmsg); in cmsg_check()
|
/tools/testing/selftests/bpf/prog_tests/ |
D | lwt_reroute.c | 130 *(uint64_t *)CMSG_DATA(cmsg) = (now.tv_nsec + 1) * NSEC_PER_SEC + in overflow_fq()
|
D | tc_redirect.c | 449 memcpy(&pkt_ts, CMSG_DATA(cmsg), sizeof(pkt_ts)); in __rcv_tstamp() 549 *(__u64 *)CMSG_DATA(cmsg) = now_ns; in snd_tstamp()
|
D | sk_lookup.c | 393 dst_addr = (struct sockaddr_storage *)CMSG_DATA(cm); in udp_recv_send()
|
/tools/perf/trace/beauty/include/linux/ |
D | socket.h | 120 #define CMSG_DATA(cmsg) \ macro
|
/tools/testing/selftests/net/mptcp/ |
D | mptcp_inq.c | 318 memcpy(inqv, CMSG_DATA(cmsg), sizeof(*inqv)); in get_tcp_inq()
|
D | mptcp_connect.c | 478 memcpy(&ts, CMSG_DATA(cmsg), sizeof(ts)); in process_cmsg() 483 memcpy(&inq, CMSG_DATA(cmsg), sizeof(inq)); in process_cmsg()
|
/tools/testing/selftests/bpf/ |
D | xdp_hw_metadata.c | 216 ts = (struct scm_timestamping *)CMSG_DATA(cmsg); in verify_skb_metadata()
|
D | test_sock_addr.c | 1013 pktinfo4 = (struct in_pktinfo *)CMSG_DATA(cmsg); in init_pktinfo() 1022 pktinfo6 = (struct in6_pktinfo *)CMSG_DATA(cmsg); in init_pktinfo()
|