Home
last modified time | relevance | path

Searched refs:msg_namelen (Results 1 – 25 of 85) sorted by relevance

1234

/linux-5.19.10/net/
Dcompat.c48 kmsg->msg_namelen = msg.msg_namelen; in __get_compat_msghdr()
51 kmsg->msg_namelen = 0; in __get_compat_msghdr()
53 if (kmsg->msg_namelen < 0) in __get_compat_msghdr()
56 if (kmsg->msg_namelen > sizeof(struct sockaddr_storage)) in __get_compat_msghdr()
57 kmsg->msg_namelen = sizeof(struct sockaddr_storage); in __get_compat_msghdr()
66 if (msg.msg_name && kmsg->msg_namelen) { in __get_compat_msghdr()
69 kmsg->msg_namelen, in __get_compat_msghdr()
76 kmsg->msg_namelen = 0; in __get_compat_msghdr()
Dsocket.c2108 msg.msg_namelen = 0; in __sys_sendto()
2114 msg.msg_namelen = addr_len; in __sys_sendto()
2175 msg.msg_namelen, addr, addr_len); in __sys_recvfrom()
2353 #define COMPAT_NAMELEN(msg) COMPAT_MSG(msg, msg_namelen)
2378 kmsg->msg_namelen = msg.msg_namelen; in __copy_msghdr_from_user()
2380 kmsg->msg_namelen = 0; in __copy_msghdr_from_user()
2382 if (kmsg->msg_namelen < 0) in __copy_msghdr_from_user()
2385 if (kmsg->msg_namelen > sizeof(struct sockaddr_storage)) in __copy_msghdr_from_user()
2386 kmsg->msg_namelen = sizeof(struct sockaddr_storage); in __copy_msghdr_from_user()
2391 if (msg.msg_name && kmsg->msg_namelen) { in __copy_msghdr_from_user()
[all …]
/linux-5.19.10/arch/arm/kernel/
Dsys_oabi-compat.c463 int msg_namelen; in sys_oabi_sendmsg() local
466 get_user(msg_namelen, &msg->msg_namelen) == 0 && in sys_oabi_sendmsg()
467 msg_namelen == 112 && in sys_oabi_sendmsg()
481 put_user(110, &msg->msg_namelen); in sys_oabi_sendmsg()
/linux-5.19.10/net/qrtr/
Dns.c125 msg.msg_namelen = sizeof(*dest); in service_announce_new()
152 msg.msg_namelen = sizeof(*dest); in service_announce_del()
183 msg.msg_namelen = sizeof(*to); in lookup_notify()
319 msg.msg_namelen = sizeof(*dest); in say_hello()
403 msg.msg_namelen = sizeof(sq); in ctrl_cmd_bye()
490 msg.msg_namelen = sizeof(sq); in ctrl_cmd_del_client()
674 msg.msg_namelen = sizeof(sq); in qrtr_ns_worker()
/linux-5.19.10/net/rxrpc/
Doutput.c202 msg.msg_namelen = call->peer->srx.transport_len; in rxrpc_send_ack_packet()
311 msg.msg_namelen = call->peer->srx.transport_len; in rxrpc_send_abort_packet()
396 msg.msg_namelen = call->peer->srx.transport_len; in rxrpc_send_data_packet()
603 msg.msg_namelen = srx.transport_len; in rxrpc_reject_packets()
643 msg.msg_namelen = peer->srx.transport_len; in rxrpc_send_keepalive()
Dlocal_event.c42 msg.msg_namelen = srx.transport_len; in rxrpc_send_version_request()
Dconn_event.c56 msg.msg_namelen = conn->params.peer->srx.transport_len; in rxrpc_conn_retransmit_call()
217 msg.msg_namelen = conn->params.peer->srx.transport_len; in rxrpc_abort_connection()
/linux-5.19.10/include/net/
Dcompat.h12 compat_int_t msg_namelen; member
/linux-5.19.10/drivers/soc/qcom/
Dqmi_interface.c182 msg.msg_namelen = sizeof(sq); in qmi_send_new_lookup()
247 msg.msg_namelen = sizeof(sq); in qmi_send_new_server()
527 struct msghdr msg = { .msg_name = &sq, .msg_namelen = sizeof(sq) }; in qmi_data_ready_work()
758 msghdr.msg_namelen = sizeof(*sq); in qmi_send_message()
/linux-5.19.10/tools/testing/selftests/net/
Dtxtimestamp.c383 msg.msg_namelen = 0; in recv_errmsg()
609 msg.msg_namelen = sizeof(laddr); in do_test()
612 msg.msg_namelen = sizeof(daddr); in do_test()
615 msg.msg_namelen = sizeof(daddr6); in do_test()
Dtcp_inq.c150 msg.msg_namelen = 0; in main()
Dudpgso_bench_tx.c344 mmsgs[i].msg_hdr.msg_namelen = cfg_alen; in send_udp_sendmmsg()
402 msg.msg_namelen = cfg_alen; in send_udp_segment()
/linux-5.19.10/tools/perf/trace/beauty/include/linux/
Dsocket.h52 int msg_namelen; /* size of socket address structure */ member
76 int msg_namelen; /* size of socket address structure */ member
/linux-5.19.10/tools/testing/vsock/
Dvsock_diag_test.c189 .msg_namelen = sizeof(nladdr), in send_req()
218 .msg_namelen = sizeof(nladdr), in recv_resp()
/linux-5.19.10/include/linux/
Dsocket.h52 int msg_namelen; /* size of socket address structure */ member
76 int msg_namelen; /* size of socket address structure */ member
/linux-5.19.10/net/mctp/
Daf_mctp.c96 int rc, addrlen = msg->msg_namelen; in mctp_sendmsg()
257 msg->msg_namelen = sizeof(*addr); in mctp_recvmsg()
262 msg->msg_namelen = sizeof(*ae); in mctp_recvmsg()
/linux-5.19.10/samples/bpf/
Dxdpsock_ctrl_proc.c77 msg.msg_namelen = 0; in send_xsks_map_fd()
/linux-5.19.10/net/phonet/
Ddatagram.c86 if (msg->msg_namelen < sizeof(struct sockaddr_pn)) in pn_sendmsg()
/linux-5.19.10/net/can/
Draw.c784 if (msg->msg_namelen < RAW_MIN_NAMELEN) in raw_sendmsg()
881 msg->msg_namelen = RAW_MIN_NAMELEN; in raw_recvmsg()
882 memcpy(msg->msg_name, skb->cb, msg->msg_namelen); in raw_recvmsg()
/linux-5.19.10/net/packet/
Daf_packet.c1968 if (msg->msg_namelen < sizeof(struct sockaddr)) in packet_sendmsg_spkt()
1970 if (msg->msg_namelen == sizeof(struct sockaddr_pkt)) in packet_sendmsg_spkt()
2746 if (msg->msg_namelen < sizeof(struct sockaddr_ll)) in tpacket_snd()
2748 if (msg->msg_namelen < (saddr->sll_halen in tpacket_snd()
2755 if (dev && msg->msg_namelen < dev->addr_len + in tpacket_snd()
2960 if (msg->msg_namelen < sizeof(struct sockaddr_ll)) in packet_snd()
2962 if (msg->msg_namelen < (saddr->sll_halen + offsetof(struct sockaddr_ll, sll_addr))) in packet_snd()
2967 if (dev && msg->msg_namelen < dev->addr_len + in packet_snd()
3494 msg->msg_namelen = sizeof(struct sockaddr_pkt); in packet_recvmsg()
3495 copy_len = msg->msg_namelen; in packet_recvmsg()
[all …]
/linux-5.19.10/arch/um/os-Linux/drivers/
Dtuntap_user.c88 msg.msg_namelen = 0; in tuntap_open_tramp()
/linux-5.19.10/fs/afs/
Drxrpc.c357 msg.msg_namelen = 0; in afs_make_call()
821 msg.msg_namelen = 0; in afs_send_empty_reply()
861 msg.msg_namelen = 0; in afs_send_simple_reply()
/linux-5.19.10/arch/um/drivers/
Dmconsole_user.c49 msg.msg_namelen = req->originlen; in mconsole_reply_v0()
/linux-5.19.10/security/tomoyo/
Dnetwork.c773 msg->msg_namelen, &address); in tomoyo_socket_sendmsg_permission()
775 msg->msg_namelen, in tomoyo_socket_sendmsg_permission()
/linux-5.19.10/net/rose/
Daf_rose.c1084 …if (msg->msg_namelen != sizeof(struct sockaddr_rose) && msg->msg_namelen != sizeof(struct full_soc… in rose_sendmsg()
1087 memcpy(&srose, usrose, msg->msg_namelen); in rose_sendmsg()
1276 msg->msg_namelen = sizeof(struct full_sockaddr_rose); in rose_recvmsg()

1234