/Linux-v6.1/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 | 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 | 150 tss = (struct scm_timestamping *)CMSG_DATA(cmsg); in flush_cmsg() 164 err = (struct sock_extended_err *)CMSG_DATA(cmsg); in flush_cmsg() 305 valp = (void *)CMSG_DATA(cm); in send_ts_cmsg() 369 valp = (void *)CMSG_DATA(cm); in send_udp_segment_cmsg()
|
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 | msg_zerocopy.c | 180 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()
|
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 | tcp_inq.c | 168 inq = *((int *) CMSG_DATA(cm)); in main()
|
D | udpgso_bench_rx.c | 240 gsosizeptr = (uint16_t *) CMSG_DATA(cmsg); in recv_msg()
|
D | nettest.c | 875 pi = (struct in_pktinfo *)(CMSG_DATA(cm)); in get_index_from_cmsg() 882 pi6 = (struct in6_pktinfo *)(CMSG_DATA(cm)); in get_index_from_cmsg() 942 pi = (struct in_pktinfo *)(CMSG_DATA(cm)); in send_msg_cmsg() 954 pi6 = (struct in6_pktinfo *)(CMSG_DATA(cm)); in send_msg_cmsg()
|
/Linux-v6.1/net/ipv6/ |
D | datagram.c | 795 src_info = (struct in6_pktinfo *)CMSG_DATA(cmsg); in ip6_datagram_send_ctl() 849 if ((fl6->flowlabel^*(__be32 *)CMSG_DATA(cmsg))&~IPV6_FLOWINFO_MASK) { in ip6_datagram_send_ctl() 854 fl6->flowlabel = IPV6_FLOWINFO_MASK & *(__be32 *)CMSG_DATA(cmsg); in ip6_datagram_send_ctl() 864 hdr = (struct ipv6_opt_hdr *)CMSG_DATA(cmsg); in ip6_datagram_send_ctl() 884 hdr = (struct ipv6_opt_hdr *)CMSG_DATA(cmsg); in ip6_datagram_send_ctl() 909 hdr = (struct ipv6_opt_hdr *)CMSG_DATA(cmsg); in ip6_datagram_send_ctl() 935 rthdr = (struct ipv6_rt_hdr *)CMSG_DATA(cmsg); in ip6_datagram_send_ctl() 986 ipc6->hlimit = *(int *)CMSG_DATA(cmsg); in ip6_datagram_send_ctl() 1002 tc = *(int *)CMSG_DATA(cmsg); in ip6_datagram_send_ctl() 1020 df = *(int *)CMSG_DATA(cmsg); in ip6_datagram_send_ctl()
|
/Linux-v6.1/net/core/ |
D | scm.c | 67 int *fdp = (int*)CMSG_DATA(cmsg); in scm_fp_copy() 169 memcpy(&creds, CMSG_DATA(cmsg), sizeof(struct ucred)); in __scm_send() 247 memcpy(CMSG_DATA(cm), data, cmlen - sizeof(*cm)); in put_cmsg()
|
/Linux-v6.1/net/rxrpc/ |
D | sendmsg.c | 522 p->call.user_call_ID = *(u32 *)CMSG_DATA(cmsg); in rxrpc_sendmsg_cmsg() 527 CMSG_DATA(cmsg); in rxrpc_sendmsg_cmsg() 538 p->abort_code = *(unsigned int *)CMSG_DATA(cmsg); in rxrpc_sendmsg_cmsg() 566 p->call.tx_total_len = *(__s64 *)CMSG_DATA(cmsg); in rxrpc_sendmsg_cmsg() 574 memcpy(&p->call.timeouts, CMSG_DATA(cmsg), len); in rxrpc_sendmsg_cmsg()
|
/Linux-v6.1/samples/seccomp/ |
D | user-trap.c | 50 *((int *)CMSG_DATA(cmsg)) = fd; in send_fd() 83 return *((int *)CMSG_DATA(cmsg)); in recv_fd()
|
/Linux-v6.1/tools/testing/selftests/landlock/ |
D | base_test.c | 306 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()
|
/Linux-v6.1/net/rds/ |
D | rdma.c | 626 args = CMSG_DATA(cmsg); in rds_cmsg_rdma_args() 820 memcpy(&rm->m_rdma_cookie, CMSG_DATA(cmsg), sizeof(rm->m_rdma_cookie)); in rds_cmsg_rdma_dest() 858 return __rds_rdma_map(rs, CMSG_DATA(cmsg), &rm->m_rdma_cookie, in rds_cmsg_rdma_map() 876 args = CMSG_DATA(cmsg); in rds_cmsg_atomic()
|
D | send.c | 928 retval = rds_rdma_extra_size(CMSG_DATA(cmsg), iov); in rds_rm_size() 979 cookie = CMSG_DATA(cmsg); in rds_cmsg_zcopy() 1094 args = CMSG_DATA(cmsg); in rds_rdma_bytes()
|
/Linux-v6.1/net/ipv4/ |
D | ip_sockglue.c | 260 src_info = (struct in6_pktinfo *)CMSG_DATA(cmsg); in ip_cmsg_send() 284 KERNEL_SOCKPTR(CMSG_DATA(cmsg)), in ip_cmsg_send() 294 info = (struct in_pktinfo *)CMSG_DATA(cmsg); in ip_cmsg_send() 303 val = *(int *)CMSG_DATA(cmsg); in ip_cmsg_send() 310 val = *(int *)CMSG_DATA(cmsg); in ip_cmsg_send() 312 val = *(u8 *)CMSG_DATA(cmsg); in ip_cmsg_send()
|
/Linux-v6.1/arch/um/os-Linux/drivers/ |
D | tuntap_user.c | 123 *fd_out = ((int *) CMSG_DATA(cmsg))[0]; in tuntap_open_tramp()
|
/Linux-v6.1/arch/um/os-Linux/ |
D | file.c | 541 new = ((int *) CMSG_DATA(cmsg))[0]; in os_rcv_fd() 673 memcpy(CMSG_DATA(cmsg), fds, fds_size); in os_sendmsg_fds()
|
/Linux-v6.1/net/sunrpc/ |
D | svcsock.c | 150 struct in_pktinfo *pki = CMSG_DATA(cmh); in svc_set_cmsg_data() 162 struct in6_pktinfo *pki = CMSG_DATA(cmh); in svc_set_cmsg_data() 361 struct in_pktinfo *pki = CMSG_DATA(cmh); in svc_udp_get_dest_address4() 378 struct in6_pktinfo *pki = CMSG_DATA(cmh); in svc_udp_get_dest_address6()
|
/Linux-v6.1/crypto/ |
D | af_alg.c | 462 con->iv = (void *)CMSG_DATA(cmsg); in af_alg_cmsg_send() 471 con->op = *(u32 *)CMSG_DATA(cmsg); in af_alg_cmsg_send() 477 con->aead_assoclen = *(u32 *)CMSG_DATA(cmsg); in af_alg_cmsg_send()
|
/Linux-v6.1/Documentation/networking/ |
D | tls.rst | 150 *CMSG_DATA(cmsg) = record_type; 192 int record_type = *((unsigned char *)CMSG_DATA(cmsg));
|
D | j1939.rst | 332 dst_addr = *CMSG_DATA(cmsg); 334 memcpy(&dst_name, CMSG_DATA(cmsg), cmsg->cmsg_len - CMSG_LEN(0)); 336 priority = *CMSG_DATA(cmsg);
|
/Linux-v6.1/tools/perf/trace/beauty/include/linux/ |
D | socket.h | 117 #define CMSG_DATA(cmsg) \ macro
|