Home
last modified time | relevance | path

Searched refs:cmsg_level (Results 1 – 25 of 45) sorted by relevance

12

/linux-6.1.9/tools/testing/selftests/net/
Dcmsg_sender.c230 cmsg->cmsg_level = level; in ca_write_cmsg_u32()
273 cmsg->cmsg_level = SOL_SOCKET; in cs_write_cmsg()
291 cmsg->cmsg_level = SOL_SOCKET; in cs_write_cmsg()
303 cmsg->cmsg_level = SOL_IPV6; in cs_write_cmsg()
355 if (cmsg->cmsg_level == SOL_SOCKET && in cs_read_cmsg()
362 if ((cmsg->cmsg_level == SOL_IP && in cs_read_cmsg()
364 (cmsg->cmsg_level == SOL_IPV6 && in cs_read_cmsg()
Dtxtimestamp.c318 if (cm->cmsg_level == SOL_SOCKET && in __recv_errmsg_cmsg()
321 } else if ((cm->cmsg_level == SOL_IP && in __recv_errmsg_cmsg()
323 (cm->cmsg_level == SOL_IPV6 && in __recv_errmsg_cmsg()
325 (cm->cmsg_level == SOL_PACKET && in __recv_errmsg_cmsg()
335 } else if (cm->cmsg_level == SOL_IP && in __recv_errmsg_cmsg()
340 } else if (cm->cmsg_level == SOL_IPV6 && in __recv_errmsg_cmsg()
347 cm->cmsg_level, cm->cmsg_type); in __recv_errmsg_cmsg()
629 cmsg->cmsg_level = SOL_SOCKET; in do_test()
Dmsg_zerocopy.c178 cm->cmsg_level = SOL_RDS; in add_zcopy_cookie()
378 if (cmsg->cmsg_level == SOL_RDS && 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()
Dudpgso_bench_tx.c146 switch (cmsg->cmsg_level) { in flush_cmsg()
205 cmsg->cmsg_level); in flush_cmsg()
302 cm->cmsg_level = SOL_SOCKET; in send_ts_cmsg()
366 cm->cmsg_level = SOL_UDP; in send_udp_segment_cmsg()
Dipv6_flowlabel.c79 cm->cmsg_level = SOL_IPV6; in do_send()
136 if (cm->cmsg_level != SOL_IPV6 || in do_recv()
Dso_txtime.c100 cm->cmsg_level = SOL_SOCKET; in do_send_one()
185 if (cm->cmsg_level != cfg_errq_level || in do_recv_errqueue_timeout()
188 cm->cmsg_level, cm->cmsg_type); in do_recv_errqueue_timeout()
Drxtimestamp.c209 if (cmsg->cmsg_level != SOL_SOCKET) in do_recv()
211 cmsg->cmsg_level); in do_recv()
Dtimestamping.c176 switch (cmsg->cmsg_level) { in printpacket()
252 cmsg->cmsg_level, in printpacket()
Dtcp_inq.c167 if (cm->cmsg_level == SOL_TCP && cm->cmsg_type == TCP_CM_INQ) in main()
Dudpgso_bench_rx.c238 if (cmsg->cmsg_level == SOL_UDP in recv_msg()
Dnettest.c871 if (cm->cmsg_level == SOL_IP && in get_index_from_cmsg()
878 } else if (cm->cmsg_level == SOL_IPV6 && in get_index_from_cmsg()
939 cm->cmsg_level = SOL_IP; in send_msg_cmsg()
950 cm->cmsg_level = SOL_IPV6; in send_msg_cmsg()
/linux-6.1.9/net/core/
Dscm.c150 if (cmsg->cmsg_level != SOL_SOCKET) in __scm_send()
236 unsafe_put_user(level, &cm->cmsg_level, efault_end); in put_cmsg()
244 cm->cmsg_level = level; in put_cmsg()
324 err = put_user(SOL_SOCKET, &cm->cmsg_level); in scm_detach_fds()
/linux-6.1.9/net/
Dcompat.c192 kcmsg->cmsg_level = cmsg.cmsg_level; in cmsghdr_from_user_compat_to_kern()
265 cmhdr.cmsg_level = level; in put_cmsg_compat()
306 err = put_user(SOL_SOCKET, &cm->cmsg_level); in scm_detach_fds_compat()
/linux-6.1.9/include/net/
Dcompat.h27 compat_int_t cmsg_level; member
/linux-6.1.9/arch/um/os-Linux/drivers/
Dtuntap_user.c117 if ((cmsg->cmsg_level != SOL_SOCKET) || in tuntap_open_tramp()
/linux-6.1.9/arch/um/os-Linux/
Dfile.c535 if ((cmsg->cmsg_level != SOL_SOCKET) || in os_rcv_fd()
670 cmsg->cmsg_level = SOL_SOCKET; in os_sendmsg_fds()
/linux-6.1.9/samples/seccomp/
Duser-trap.c47 cmsg->cmsg_level = SOL_SOCKET; in send_fd()
/linux-6.1.9/net/sunrpc/
Dsvcsock.c152 cmh->cmsg_level = SOL_IP; in svc_set_cmsg_data()
165 cmh->cmsg_level = SOL_IPV6; in svc_set_cmsg_data()
400 switch (cmh->cmsg_level) { in svc_udp_get_dest_address()
523 cmh->cmsg_level, cmh->cmsg_type); in svc_udp_recvfrom()
/linux-6.1.9/Documentation/networking/
Dtls.rst147 cmsg->cmsg_level = SOL_TLS;
190 if (cmsg->cmsg_level == SOL_TLS &&
/linux-6.1.9/tools/testing/selftests/landlock/
Dbase_test.c304 cmsg->cmsg_level = SOL_SOCKET; in TEST()
/linux-6.1.9/net/rxrpc/
Dsendmsg.c512 cmsg->cmsg_level, cmsg->cmsg_type, len); in rxrpc_sendmsg_cmsg()
514 if (cmsg->cmsg_level != SOL_RXRPC) in rxrpc_sendmsg_cmsg()
/linux-6.1.9/net/rds/
Dsend.c906 if (cmsg->cmsg_level != SOL_RDS) in rds_rm_size()
995 if (cmsg->cmsg_level != SOL_RDS) in rds_cmsg_send()
1087 if (cmsg->cmsg_level != SOL_RDS) in rds_rdma_bytes()
/linux-6.1.9/tools/perf/trace/beauty/include/linux/
Dsocket.h103 int cmsg_level; /* originating protocol */ member
/linux-6.1.9/include/linux/
Dsocket.h103 int cmsg_level; /* originating protocol */ member
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
Dsk_lookup.c389 if ((cm->cmsg_level == SOL_IP && in udp_recv_send()
391 (cm->cmsg_level == SOL_IPV6 && in udp_recv_send()
397 cm->cmsg_level, cm->cmsg_type); in udp_recv_send()

12