Home
last modified time | relevance | path

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

12

/Linux-v4.19/tools/testing/selftests/networking/timestamping/
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()
241 (struct in_pktinfo *)CMSG_DATA(cmsg); in printpacket()
Dtxtimestamp.c193 tss = (void *) CMSG_DATA(cm); in __recv_errmsg_cmsg()
198 serr = (void *) CMSG_DATA(cm); in __recv_errmsg_cmsg()
208 struct in_pktinfo *info = (void *) CMSG_DATA(cm); in __recv_errmsg_cmsg()
213 struct in6_pktinfo *info6 = (void *) CMSG_DATA(cm); in __recv_errmsg_cmsg()
Drxtimestamp.c214 ts = (struct scm_timestamping *)CMSG_DATA(cmsg); in do_recv()
/Linux-v4.19/net/core/
Dscm.c70 int *fdp = (int*)CMSG_DATA(cmsg); in scm_fp_copy()
172 memcpy(&creds, CMSG_DATA(cmsg), sizeof(struct ucred)); in __scm_send()
242 if (copy_to_user(CMSG_DATA(cm), data, cmlen - sizeof(struct cmsghdr))) in put_cmsg()
278 for (i=0, cmfptr=(__force int __user *)CMSG_DATA(cm); i<fdmax; in scm_detach_fds()
Dsock.c2114 sockc->mark = *(u32 *)CMSG_DATA(cmsg); in __sock_cmsg_send()
2120 tsflags = *(u32 *)CMSG_DATA(cmsg); in __sock_cmsg_send()
2132 sockc->transmit_time = get_unaligned((u64 *)CMSG_DATA(cmsg)); in __sock_cmsg_send()
/Linux-v4.19/net/ipv6/
Ddatagram.c781 src_info = (struct in6_pktinfo *)CMSG_DATA(cmsg); in ip6_datagram_send_ctl()
832 if ((fl6->flowlabel^*(__be32 *)CMSG_DATA(cmsg))&~IPV6_FLOWINFO_MASK) { in ip6_datagram_send_ctl()
837 fl6->flowlabel = IPV6_FLOWINFO_MASK & *(__be32 *)CMSG_DATA(cmsg); in ip6_datagram_send_ctl()
847 hdr = (struct ipv6_opt_hdr *)CMSG_DATA(cmsg); in ip6_datagram_send_ctl()
867 hdr = (struct ipv6_opt_hdr *)CMSG_DATA(cmsg); in ip6_datagram_send_ctl()
892 hdr = (struct ipv6_opt_hdr *)CMSG_DATA(cmsg); in ip6_datagram_send_ctl()
918 rthdr = (struct ipv6_rt_hdr *)CMSG_DATA(cmsg); in ip6_datagram_send_ctl()
969 ipc6->hlimit = *(int *)CMSG_DATA(cmsg); in ip6_datagram_send_ctl()
985 tc = *(int *)CMSG_DATA(cmsg); in ip6_datagram_send_ctl()
1003 df = *(int *)CMSG_DATA(cmsg); in ip6_datagram_send_ctl()
/Linux-v4.19/tools/testing/selftests/android/ion/
Dipcsocket.c148 memcpy(CMSG_DATA(cmsg), &buffd, len); in sendtosocket()
209 memcpy(&buffd, CMSG_DATA(cmsg), len); in receivefromsocket()
/Linux-v4.19/net/rxrpc/
Dsendmsg.c485 p->call.user_call_ID = *(u32 *)CMSG_DATA(cmsg); in rxrpc_sendmsg_cmsg()
490 CMSG_DATA(cmsg); in rxrpc_sendmsg_cmsg()
501 p->abort_code = *(unsigned int *)CMSG_DATA(cmsg); in rxrpc_sendmsg_cmsg()
529 p->call.tx_total_len = *(__s64 *)CMSG_DATA(cmsg); in rxrpc_sendmsg_cmsg()
537 memcpy(&p->call.timeouts, CMSG_DATA(cmsg), len); in rxrpc_sendmsg_cmsg()
/Linux-v4.19/net/rds/
Drdma.c577 args = CMSG_DATA(cmsg); in rds_cmsg_rdma_args()
750 memcpy(&rm->m_rdma_cookie, CMSG_DATA(cmsg), sizeof(rm->m_rdma_cookie)); in rds_cmsg_rdma_dest()
787 return __rds_rdma_map(rs, CMSG_DATA(cmsg), &rm->m_rdma_cookie, in rds_cmsg_rdma_map()
805 args = CMSG_DATA(cmsg); in rds_cmsg_atomic()
Dsend.c897 retval = rds_rdma_extra_size(CMSG_DATA(cmsg)); in rds_rm_size()
948 cookie = CMSG_DATA(cmsg); in rds_cmsg_zcopy()
1059 args = CMSG_DATA(cmsg); in rds_rdma_bytes()
/Linux-v4.19/tools/testing/selftests/net/
Dmsg_zerocopy.c181 memcpy(CMSG_DATA(cm), &cookie, sizeof(cookie)); in add_zcopy_cookie()
382 ck = (struct rds_zcopy_cookies *)CMSG_DATA(cmsg); in do_recvmsg_completion()
425 serr = (void *) CMSG_DATA(cm); in do_recv_completion()
Dtcp_inq.c178 inq = *((int *) CMSG_DATA(cm)); in main()
Dudpgso_bench_tx.c209 valp = (void *)CMSG_DATA(cm); in send_udp_segment_cmsg()
Dtls.c723 *CMSG_DATA(cmsg) = record_type; in TEST_F()
736 record_type = *((unsigned char *)CMSG_DATA(cmsg)); in TEST_F()
Dudpgso.c484 *((uint16_t *) CMSG_DATA(cm)) = gso_len; in send_one()
/Linux-v4.19/net/ipv4/
Dip_sockglue.c262 src_info = (struct in6_pktinfo *)CMSG_DATA(cmsg); in ip_cmsg_send()
285 err = ip_options_get(net, &ipc->opt, CMSG_DATA(cmsg), in ip_cmsg_send()
295 info = (struct in_pktinfo *)CMSG_DATA(cmsg); in ip_cmsg_send()
304 val = *(int *)CMSG_DATA(cmsg); in ip_cmsg_send()
311 val = *(int *)CMSG_DATA(cmsg); in ip_cmsg_send()
313 val = *(u8 *)CMSG_DATA(cmsg); in ip_cmsg_send()
/Linux-v4.19/arch/um/os-Linux/drivers/
Dtuntap_user.c123 *fd_out = ((int *) CMSG_DATA(cmsg))[0]; in tuntap_open_tramp()
/Linux-v4.19/Documentation/networking/
Dtls.txt132 *CMSG_DATA(cmsg) = record_type;
172 int record_type = *((unsigned char *)CMSG_DATA(cmsg));
Dmsg_zerocopy.rst197 serr = (void *) CMSG_DATA(cm);
/Linux-v4.19/crypto/
Daf_alg.c458 con->iv = (void *)CMSG_DATA(cmsg); in af_alg_cmsg_send()
467 con->op = *(u32 *)CMSG_DATA(cmsg); in af_alg_cmsg_send()
473 con->aead_assoclen = *(u32 *)CMSG_DATA(cmsg); in af_alg_cmsg_send()
/Linux-v4.19/net/sunrpc/
Dsvcsock.c158 struct in_pktinfo *pki = CMSG_DATA(cmh); in svc_set_cmsg_data()
170 struct in6_pktinfo *pki = CMSG_DATA(cmh); in svc_set_cmsg_data()
470 struct in_pktinfo *pki = CMSG_DATA(cmh); in svc_udp_get_dest_address4()
487 struct in6_pktinfo *pki = CMSG_DATA(cmh); in svc_udp_get_dest_address6()
/Linux-v4.19/include/linux/
Dsocket.h96 #define CMSG_DATA(cmsg) ((void *)((char *)(cmsg) + sizeof(struct cmsghdr))) macro
/Linux-v4.19/tools/testing/selftests/bpf/
Dtest_sock_addr.c977 pktinfo4 = (struct in_pktinfo *)CMSG_DATA(cmsg); in init_pktinfo()
986 pktinfo6 = (struct in6_pktinfo *)CMSG_DATA(cmsg); in init_pktinfo()
/Linux-v4.19/arch/um/os-Linux/
Dfile.c536 new = ((int *) CMSG_DATA(cmsg))[0]; in os_rcv_fd()
/Linux-v4.19/net/tls/
Dtls_main.c185 *record_type = *(unsigned char *)CMSG_DATA(cmsg); in tls_proccess_cmsg()

12