Home
last modified time | relevance | path

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

12

/Linux-v6.6/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()
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()
Dipv6_flowlabel.c81 *(uint32_t *)CMSG_DATA(cm) = htonl(flowlabel); in do_send()
140 flowlabel = ntohl(*(uint32_t *)CMSG_DATA(cm)); in do_recv()
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()
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()
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()
Dtcp_inq.c168 inq = *((int *) CMSG_DATA(cm)); in main()
Dudpgso_bench_rx.c239 *gso_size = *(int *)CMSG_DATA(cmsg); in recv_msg()
/Linux-v6.6/net/handshake/
Dalert.c60 memcpy(CMSG_DATA(cmsg), &record_type, sizeof(record_type)); in tls_alert_send()
83 record_type = *((u8 *)CMSG_DATA(cmsg)); in tls_get_record_type()
/Linux-v6.6/net/ipv6/
Ddatagram.c802 src_info = (struct in6_pktinfo *)CMSG_DATA(cmsg); in ip6_datagram_send_ctl()
856 if ((fl6->flowlabel^*(__be32 *)CMSG_DATA(cmsg))&~IPV6_FLOWINFO_MASK) { in ip6_datagram_send_ctl()
861 fl6->flowlabel = IPV6_FLOWINFO_MASK & *(__be32 *)CMSG_DATA(cmsg); in ip6_datagram_send_ctl()
871 hdr = (struct ipv6_opt_hdr *)CMSG_DATA(cmsg); in ip6_datagram_send_ctl()
891 hdr = (struct ipv6_opt_hdr *)CMSG_DATA(cmsg); in ip6_datagram_send_ctl()
916 hdr = (struct ipv6_opt_hdr *)CMSG_DATA(cmsg); in ip6_datagram_send_ctl()
942 rthdr = (struct ipv6_rt_hdr *)CMSG_DATA(cmsg); in ip6_datagram_send_ctl()
993 ipc6->hlimit = *(int *)CMSG_DATA(cmsg); in ip6_datagram_send_ctl()
1009 tc = *(int *)CMSG_DATA(cmsg); in ip6_datagram_send_ctl()
1027 df = *(int *)CMSG_DATA(cmsg); in ip6_datagram_send_ctl()
/Linux-v6.6/net/core/
Dscm.c67 int *fdp = (int*)CMSG_DATA(cmsg); in scm_fp_copy()
170 memcpy(&creds, CMSG_DATA(cmsg), sizeof(struct ucred)); in __scm_send()
250 memcpy(CMSG_DATA(cm), data, cmlen - sizeof(*cm)); in put_cmsg()
/Linux-v6.6/net/rxrpc/
Dsendmsg.c488 p->call.user_call_ID = *(u32 *)CMSG_DATA(cmsg); in rxrpc_sendmsg_cmsg()
493 CMSG_DATA(cmsg); in rxrpc_sendmsg_cmsg()
504 p->abort_code = *(unsigned int *)CMSG_DATA(cmsg); in rxrpc_sendmsg_cmsg()
532 p->call.tx_total_len = *(__s64 *)CMSG_DATA(cmsg); in rxrpc_sendmsg_cmsg()
540 memcpy(&p->call.timeouts, CMSG_DATA(cmsg), len); in rxrpc_sendmsg_cmsg()
/Linux-v6.6/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()
/Linux-v6.6/samples/seccomp/
Duser-trap.c50 *((int *)CMSG_DATA(cmsg)) = fd; in send_fd()
83 return *((int *)CMSG_DATA(cmsg)); in recv_fd()
/Linux-v6.6/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()
/Linux-v6.6/net/rds/
Drdma.c626 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()
Dsend.c928 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.6/net/ipv4/
Dip_sockglue.c262 src_info = (struct in6_pktinfo *)CMSG_DATA(cmsg); in ip_cmsg_send()
286 KERNEL_SOCKPTR(CMSG_DATA(cmsg)), in ip_cmsg_send()
296 info = (struct in_pktinfo *)CMSG_DATA(cmsg); in ip_cmsg_send()
305 val = *(int *)CMSG_DATA(cmsg); in ip_cmsg_send()
312 val = *(int *)CMSG_DATA(cmsg); in ip_cmsg_send()
314 val = *(u8 *)CMSG_DATA(cmsg); in ip_cmsg_send()
325 val = *(int *)CMSG_DATA(cmsg); in ip_cmsg_send()
/Linux-v6.6/tools/testing/selftests/bpf/prog_tests/
Dlwt_reroute.c130 *(uint64_t *)CMSG_DATA(cmsg) = (now.tv_nsec + 1) * NSEC_PER_SEC + in overflow_fq()
/Linux-v6.6/arch/um/os-Linux/drivers/
Dtuntap_user.c123 *fd_out = ((int *) CMSG_DATA(cmsg))[0]; in tuntap_open_tramp()
/Linux-v6.6/arch/um/os-Linux/
Dfile.c541 new = ((int *) CMSG_DATA(cmsg))[0]; in os_rcv_fd()
673 memcpy(CMSG_DATA(cmsg), fds, fds_size); in os_sendmsg_fds()
/Linux-v6.6/Documentation/networking/
Dtls.rst150 *CMSG_DATA(cmsg) = record_type;
192 int record_type = *((unsigned char *)CMSG_DATA(cmsg));
/Linux-v6.6/net/sunrpc/
Dsvcsock.c162 struct in_pktinfo *pki = CMSG_DATA(cmh); in svc_set_cmsg_data()
174 struct in6_pktinfo *pki = CMSG_DATA(cmh); in svc_set_cmsg_data()
503 struct in_pktinfo *pki = CMSG_DATA(cmh); in svc_udp_get_dest_address4()
520 struct in6_pktinfo *pki = CMSG_DATA(cmh); in svc_udp_get_dest_address6()
/Linux-v6.6/crypto/
Daf_alg.c572 con->iv = (void *)CMSG_DATA(cmsg); in af_alg_cmsg_send()
581 con->op = *(u32 *)CMSG_DATA(cmsg); in af_alg_cmsg_send()
587 con->aead_assoclen = *(u32 *)CMSG_DATA(cmsg); in af_alg_cmsg_send()

12