Home
last modified time | relevance | path

Searched refs:cmsg_type (Results 1 – 25 of 47) sorted by relevance

12

/linux-5.19.10/tools/testing/selftests/net/
Dcmsg_sender.c231 cmsg->cmsg_type = optname; in ca_write_cmsg_u32()
274 cmsg->cmsg_type = SCM_TXTIME; in cs_write_cmsg()
292 cmsg->cmsg_type = SO_TIMESTAMPING; in cs_write_cmsg()
304 cmsg->cmsg_type = opt.v6.exthdr.val; in cs_write_cmsg()
356 cmsg->cmsg_type == SO_TIMESTAMPING_OLD) { in cs_read_cmsg()
363 cmsg->cmsg_type == IP_RECVERR) || in cs_read_cmsg()
365 cmsg->cmsg_type == IPV6_RECVERR)) { in cs_read_cmsg()
Dtxtimestamp.c319 cm->cmsg_type == SCM_TIMESTAMPING) { in __recv_errmsg_cmsg()
322 cm->cmsg_type == IP_RECVERR) || in __recv_errmsg_cmsg()
324 cm->cmsg_type == IPV6_RECVERR) || in __recv_errmsg_cmsg()
326 cm->cmsg_type == PACKET_TX_TIMESTAMP)) { in __recv_errmsg_cmsg()
336 cm->cmsg_type == IP_PKTINFO) { in __recv_errmsg_cmsg()
341 cm->cmsg_type == IPV6_PKTINFO) { in __recv_errmsg_cmsg()
347 cm->cmsg_level, cm->cmsg_type); in __recv_errmsg_cmsg()
630 cmsg->cmsg_type = SO_TIMESTAMPING; in do_test()
Dtimestamping.c179 switch (cmsg->cmsg_type) { in printpacket()
212 printf("type %d", cmsg->cmsg_type); in printpacket()
218 switch (cmsg->cmsg_type) { in printpacket()
246 printf("type %d", cmsg->cmsg_type); in printpacket()
253 cmsg->cmsg_type); in printpacket()
Dudpgso_bench_tx.c148 if (cmsg->cmsg_type == SO_TIMESTAMPING) { in flush_cmsg()
155 cmsg->cmsg_type); in flush_cmsg()
160 switch (cmsg->cmsg_type) { in flush_cmsg()
199 cmsg->cmsg_type); in flush_cmsg()
303 cm->cmsg_type = SO_TIMESTAMPING; in send_ts_cmsg()
367 cm->cmsg_type = UDP_SEGMENT; in send_udp_segment_cmsg()
Dmsg_zerocopy.c179 cm->cmsg_type = RDS_CMSG_ZCOPY_COOKIE; in add_zcopy_cookie()
379 cmsg->cmsg_type == RDS_CMSG_ZCOPY_COMPLETION) { in do_recvmsg_completion()
387 cmsg->cmsg_level, cmsg->cmsg_type); in do_recvmsg_completion()
418 if (!((cm->cmsg_level == SOL_IP && cm->cmsg_type == IP_RECVERR) || in do_recv_completion()
419 (cm->cmsg_level == SOL_IPV6 && cm->cmsg_type == IPV6_RECVERR) || in do_recv_completion()
420 (cm->cmsg_level == SOL_PACKET && cm->cmsg_type == PACKET_TX_TIMESTAMP))) in do_recv_completion()
422 cm->cmsg_level, cm->cmsg_type); in do_recv_completion()
Dipv6_flowlabel.c57 cm->cmsg_type = IPV6_FLOWINFO; in do_send()
111 cm->cmsg_type != IPV6_FLOWINFO) in do_recv()
Dso_txtime.c101 cm->cmsg_type = SCM_TXTIME; in do_send_one()
186 cm->cmsg_type != cfg_errq_type) in do_recv_errqueue_timeout()
188 cm->cmsg_level, cm->cmsg_type); in do_recv_errqueue_timeout()
Drxtimestamp.c212 switch (cmsg->cmsg_type) { in do_recv()
227 error(1, 0, "Unexpected cmsg_type %d", cmsg->cmsg_type); in do_recv()
Dtcp_inq.c167 if (cm->cmsg_level == SOL_TCP && cm->cmsg_type == TCP_CM_INQ) in main()
Dudpgso_bench_rx.c239 && cmsg->cmsg_type == UDP_GRO) { in recv_msg()
Dnettest.c869 cm->cmsg_type == IP_PKTINFO) { in get_index_from_cmsg()
876 cm->cmsg_type == IPV6_PKTINFO) { in get_index_from_cmsg()
937 cm->cmsg_type = IP_PKTINFO; in send_msg_cmsg()
948 cm->cmsg_type = IPV6_PKTINFO; in send_msg_cmsg()
/linux-5.19.10/net/core/
Dscm.c153 switch (cmsg->cmsg_type) in __scm_send()
237 unsafe_put_user(type, &cm->cmsg_type, efault_end); in put_cmsg()
245 cm->cmsg_type = type; in put_cmsg()
326 err = put_user(SCM_RIGHTS, &cm->cmsg_type); in scm_detach_fds()
/linux-5.19.10/net/
Dcompat.c196 kcmsg->cmsg_type = cmsg.cmsg_type; in cmsghdr_from_user_compat_to_kern()
269 cmhdr.cmsg_type = type; in put_cmsg_compat()
311 err = put_user(SCM_RIGHTS, &cm->cmsg_type); in scm_detach_fds_compat()
/linux-5.19.10/include/net/
Dcompat.h28 compat_int_t cmsg_type; member
/linux-5.19.10/samples/bpf/
Dxdpsock_ctrl_proc.c87 cmsg->cmsg_type = SCM_RIGHTS; in send_xsks_map_fd()
/linux-5.19.10/net/ipv6/
Ddatagram.c783 switch (cmsg->cmsg_type) { in ip6_datagram_send_ctl()
919 if (cmsg->cmsg_type == IPV6_DSTOPTS) { in ip6_datagram_send_ctl()
968 if (cmsg->cmsg_type == IPV6_2292RTHDR && opt->dst1opt) { in ip6_datagram_send_ctl()
1031 cmsg->cmsg_type); in ip6_datagram_send_ctl()
/linux-5.19.10/net/sunrpc/
Dsvcsock.c153 cmh->cmsg_type = IP_PKTINFO; in svc_set_cmsg_data()
166 cmh->cmsg_type = IPV6_PKTINFO; in svc_set_cmsg_data()
364 if (cmh->cmsg_type != IP_PKTINFO) in svc_udp_get_dest_address4()
381 if (cmh->cmsg_type != IPV6_PKTINFO) in svc_udp_get_dest_address6()
523 cmh->cmsg_level, cmh->cmsg_type); in svc_udp_recvfrom()
/linux-5.19.10/arch/um/os-Linux/drivers/
Dtuntap_user.c118 (cmsg->cmsg_type != SCM_RIGHTS)) { in tuntap_open_tramp()
/linux-5.19.10/arch/um/os-Linux/
Dfile.c536 (cmsg->cmsg_type != SCM_RIGHTS)) { in os_rcv_fd()
671 cmsg->cmsg_type = SCM_RIGHTS; in os_sendmsg_fds()
/linux-5.19.10/Documentation/networking/
Dj1939.rst319 with ``cmsg_level == SOL_J1939 && cmsg_type == SCM_J1939_DEST_ADDR``,
331 if (cmsg->cmsg_type == SCM_J1939_DEST_ADDR)
333 else if (cmsg->cmsg_type == SCM_J1939_DEST_NAME)
335 else if (cmsg->cmsg_type == SCM_J1939_PRIO)
Dtls.rst148 cmsg->cmsg_type = TLS_SET_RECORD_TYPE;
191 cmsg->cmsg_type == TLS_GET_RECORD_TYPE) {
/linux-5.19.10/samples/seccomp/
Duser-trap.c48 cmsg->cmsg_type = SCM_RIGHTS; in send_fd()
/linux-5.19.10/net/dccp/
Dproto.c706 if (cmsg->cmsg_type <= DCCP_SCM_QPOLICY_MAX && in dccp_msghdr_parse()
707 !dccp_qpolicy_param_ok(skb->sk, cmsg->cmsg_type)) in dccp_msghdr_parse()
710 switch (cmsg->cmsg_type) { in dccp_msghdr_parse()
/linux-5.19.10/tools/testing/selftests/landlock/
Dbase_test.c305 cmsg->cmsg_type = SCM_RIGHTS; in TEST()
/linux-5.19.10/net/rxrpc/
Dsendmsg.c512 cmsg->cmsg_level, cmsg->cmsg_type, len); in rxrpc_sendmsg_cmsg()
517 switch (cmsg->cmsg_type) { in rxrpc_sendmsg_cmsg()

12