Home
last modified time | relevance | path

Searched refs:CMSG_DATA (Results 1 – 24 of 24) sorted by relevance

/tools/testing/selftests/net/
Dcmsg_sender.c233 *(__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()
Dtimestamping.c182 (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()
Dipv6_flowlabel.c81 *(uint32_t *)CMSG_DATA(cm) = htonl(flowlabel); in do_send()
140 flowlabel = ntohl(*(uint32_t *)CMSG_DATA(cm)); in do_recv()
Dtxtimestamp.c320 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()
Dudpgso_bench_tx.c151 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()
Dtcp_inq.c168 inq = *((int *) CMSG_DATA(cm)); in main()
Dso_txtime.c103 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()
Dmsg_zerocopy.c182 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()
Dudpgso_bench_rx.c239 *gso_size = *(int *)CMSG_DATA(cmsg); in recv_msg()
Drxtimestamp.c220 ts = (struct scm_timestamping *)CMSG_DATA(cmsg); in do_recv()
Dnettest.c920 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()
Dudpgso.c476 *((uint16_t *) CMSG_DATA(cm)) = gso_len; in send_one()
Dcsum.c703 aux = (void *)CMSG_DATA(cm); in recv_verify_packet_csum()
Dtls.c176 *CMSG_DATA(cmsg) = record_type; in tls_send_cmsg()
207 ctype = *((unsigned char *)CMSG_DATA(cmsg)); in tls_recv_cmsg()
/tools/testing/selftests/landlock/
Dcommon.h225 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/
Dscm_pidfd.c170 pidfd = (void *)CMSG_DATA(cmsg); in cmsg_check()
180 ucred = (void *)CMSG_DATA(cmsg); in cmsg_check()
/tools/testing/selftests/bpf/prog_tests/
Dlwt_reroute.c130 *(uint64_t *)CMSG_DATA(cmsg) = (now.tv_nsec + 1) * NSEC_PER_SEC + in overflow_fq()
Dtc_redirect.c449 memcpy(&pkt_ts, CMSG_DATA(cmsg), sizeof(pkt_ts)); in __rcv_tstamp()
549 *(__u64 *)CMSG_DATA(cmsg) = now_ns; in snd_tstamp()
Dsk_lookup.c393 dst_addr = (struct sockaddr_storage *)CMSG_DATA(cm); in udp_recv_send()
/tools/perf/trace/beauty/include/linux/
Dsocket.h120 #define CMSG_DATA(cmsg) \ macro
/tools/testing/selftests/net/mptcp/
Dmptcp_inq.c318 memcpy(inqv, CMSG_DATA(cmsg), sizeof(*inqv)); in get_tcp_inq()
Dmptcp_connect.c478 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/
Dxdp_hw_metadata.c216 ts = (struct scm_timestamping *)CMSG_DATA(cmsg); in verify_skb_metadata()
Dtest_sock_addr.c1013 pktinfo4 = (struct in_pktinfo *)CMSG_DATA(cmsg); in init_pktinfo()
1022 pktinfo6 = (struct in6_pktinfo *)CMSG_DATA(cmsg); in init_pktinfo()