/linux-5.19.10/tools/testing/selftests/net/ |
D | cmsg_sender.c | 231 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()
|
D | txtimestamp.c | 319 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()
|
D | timestamping.c | 179 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()
|
D | udpgso_bench_tx.c | 148 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()
|
D | msg_zerocopy.c | 179 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()
|
D | ipv6_flowlabel.c | 57 cm->cmsg_type = IPV6_FLOWINFO; in do_send() 111 cm->cmsg_type != IPV6_FLOWINFO) in do_recv()
|
D | so_txtime.c | 101 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()
|
D | rxtimestamp.c | 212 switch (cmsg->cmsg_type) { in do_recv() 227 error(1, 0, "Unexpected cmsg_type %d", cmsg->cmsg_type); in do_recv()
|
D | tcp_inq.c | 167 if (cm->cmsg_level == SOL_TCP && cm->cmsg_type == TCP_CM_INQ) in main()
|
D | udpgso_bench_rx.c | 239 && cmsg->cmsg_type == UDP_GRO) { in recv_msg()
|
D | nettest.c | 869 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/ |
D | scm.c | 153 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/ |
D | compat.c | 196 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/ |
D | compat.h | 28 compat_int_t cmsg_type; member
|
/linux-5.19.10/samples/bpf/ |
D | xdpsock_ctrl_proc.c | 87 cmsg->cmsg_type = SCM_RIGHTS; in send_xsks_map_fd()
|
/linux-5.19.10/net/ipv6/ |
D | datagram.c | 783 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/ |
D | svcsock.c | 153 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/ |
D | tuntap_user.c | 118 (cmsg->cmsg_type != SCM_RIGHTS)) { in tuntap_open_tramp()
|
/linux-5.19.10/arch/um/os-Linux/ |
D | file.c | 536 (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/ |
D | j1939.rst | 319 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)
|
D | tls.rst | 148 cmsg->cmsg_type = TLS_SET_RECORD_TYPE; 191 cmsg->cmsg_type == TLS_GET_RECORD_TYPE) {
|
/linux-5.19.10/samples/seccomp/ |
D | user-trap.c | 48 cmsg->cmsg_type = SCM_RIGHTS; in send_fd()
|
/linux-5.19.10/net/dccp/ |
D | proto.c | 706 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/ |
D | base_test.c | 305 cmsg->cmsg_type = SCM_RIGHTS; in TEST()
|
/linux-5.19.10/net/rxrpc/ |
D | sendmsg.c | 512 cmsg->cmsg_level, cmsg->cmsg_type, len); in rxrpc_sendmsg_cmsg() 517 switch (cmsg->cmsg_type) { in rxrpc_sendmsg_cmsg()
|