Home
last modified time | relevance | path

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

/tools/testing/selftests/net/
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.c58 *(uint32_t *)CMSG_DATA(cm) = htonl(flowlabel); in do_send()
114 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.c180 memcpy(CMSG_DATA(cm), &cookie, sizeof(cookie)); in add_zcopy_cookie()
381 ck = (struct rds_zcopy_cookies *)CMSG_DATA(cmsg); in do_recvmsg_completion()
424 serr = (void *) CMSG_DATA(cm); in do_recv_completion()
Dudpgso_bench_rx.c239 *gso_size = *(int *)CMSG_DATA(cmsg); in recv_msg()
Dnettest.c848 pi = (struct in_pktinfo *)(CMSG_DATA(cm)); in get_index_from_cmsg()
855 pi6 = (struct in6_pktinfo *)(CMSG_DATA(cm)); in get_index_from_cmsg()
915 pi = (struct in_pktinfo *)(CMSG_DATA(cm)); in send_msg_cmsg()
927 pi6 = (struct in6_pktinfo *)(CMSG_DATA(cm)); in send_msg_cmsg()
Drxtimestamp.c220 ts = (struct scm_timestamping *)CMSG_DATA(cmsg); in do_recv()
Dtls.c1200 *CMSG_DATA(cmsg) = record_type; in TEST_F()
1214 record_type = *((unsigned char *)CMSG_DATA(cmsg)); in TEST_F()
1227 record_type = *((unsigned char *)CMSG_DATA(cmsg)); in TEST_F()
Dudpgso.c476 *((uint16_t *) CMSG_DATA(cm)) = gso_len; in send_one()
/tools/testing/selftests/landlock/
Dbase_test.c306 memcpy(CMSG_DATA(cmsg), &ruleset_fd_tx, sizeof(ruleset_fd_tx)); in TEST()
327 memcpy(&ruleset_fd_rx, CMSG_DATA(cmsg), sizeof(ruleset_fd_tx)); in TEST()
/tools/perf/trace/beauty/include/linux/
Dsocket.h108 #define CMSG_DATA(cmsg) \ macro
/tools/testing/selftests/bpf/
Dtest_sock_addr.c1004 pktinfo4 = (struct in_pktinfo *)CMSG_DATA(cmsg); in init_pktinfo()
1013 pktinfo6 = (struct in6_pktinfo *)CMSG_DATA(cmsg); in init_pktinfo()
/tools/testing/selftests/net/mptcp/
Dmptcp_connect.c372 memcpy(&ts, CMSG_DATA(cmsg), sizeof(ts)); in process_cmsg()
/tools/testing/selftests/bpf/prog_tests/
Dsk_lookup.c394 dst_addr = (struct sockaddr_storage *)CMSG_DATA(cm); in udp_recv_send()