Home
last modified time | relevance | path

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

1234

/Linux-v6.1/net/
Dcompat.c43 kmsg->msg_namelen = msg->msg_namelen; in __get_compat_msghdr()
46 kmsg->msg_namelen = 0; in __get_compat_msghdr()
48 if (kmsg->msg_namelen < 0) in __get_compat_msghdr()
51 if (kmsg->msg_namelen > sizeof(struct sockaddr_storage)) in __get_compat_msghdr()
52 kmsg->msg_namelen = sizeof(struct sockaddr_storage); in __get_compat_msghdr()
62 if (msg->msg_name && kmsg->msg_namelen) { in __get_compat_msghdr()
65 kmsg->msg_namelen, in __get_compat_msghdr()
72 kmsg->msg_namelen = 0; in __get_compat_msghdr()
Dsocket.c2105 msg.msg_namelen = 0; in __sys_sendto()
2112 msg.msg_namelen = addr_len; in __sys_sendto()
2173 msg.msg_namelen, addr, addr_len); in __sys_recvfrom()
2351 #define COMPAT_NAMELEN(msg) COMPAT_MSG(msg, msg_namelen)
2371 kmsg->msg_namelen = msg->msg_namelen; in __copy_msghdr()
2373 kmsg->msg_namelen = 0; in __copy_msghdr()
2375 if (kmsg->msg_namelen < 0) in __copy_msghdr()
2378 if (kmsg->msg_namelen > sizeof(struct sockaddr_storage)) in __copy_msghdr()
2379 kmsg->msg_namelen = sizeof(struct sockaddr_storage); in __copy_msghdr()
2384 if (msg->msg_name && kmsg->msg_namelen) { in __copy_msghdr()
[all …]
/Linux-v6.1/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-v6.1/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-v6.1/tools/testing/selftests/net/af_unix/
Ddiag_uid.c108 .msg_namelen = sizeof(nladdr), in send_request()
147 .msg_namelen = sizeof(nladdr), in receive_response()
/Linux-v6.1/io_uring/
Dnet.c341 msg.msg_namelen = 0; in io_send()
355 msg.msg_namelen = sr->addr_len; in io_send()
445 iomsg->namelen = msg.msg_namelen; in __io_recvmsg_copy_hdr()
497 iomsg->namelen = msg.msg_namelen; in __io_compat_recvmsg_copy_hdr()
664 kmsg->msg.msg_namelen = 0; in io_recvmsg_multishot()
684 if (kmsg->msg.msg_namelen > kmsg->namelen) in io_recvmsg_multishot()
687 copy_len += kmsg->msg.msg_namelen; in io_recvmsg_multishot()
693 hdr.msg.namelen = kmsg->msg.msg_namelen; in io_recvmsg_multishot()
853 msg.msg_namelen = 0; in io_recv()
1063 msg.msg_namelen = 0; in io_send_zc()
[all …]
/Linux-v6.1/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-v6.1/include/net/
Dcompat.h12 compat_int_t msg_namelen; member
/Linux-v6.1/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()
Dipv6_flowlabel.c73 msg.msg_namelen = sizeof(addr); in do_send()
/Linux-v6.1/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()
759 msghdr.msg_namelen = sizeof(*sq); in qmi_send_message()
/Linux-v6.1/tools/perf/trace/beauty/include/linux/
Dsocket.h54 int msg_namelen; /* size of socket address structure */ member
81 int msg_namelen; /* size of socket address structure */ member
/Linux-v6.1/include/linux/
Dsocket.h54 int msg_namelen; /* size of socket address structure */ member
81 int msg_namelen; /* size of socket address structure */ member
/Linux-v6.1/tools/testing/vsock/
Dvsock_diag_test.c189 .msg_namelen = sizeof(nladdr), in send_req()
218 .msg_namelen = sizeof(nladdr), in recv_resp()
/Linux-v6.1/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-v6.1/net/phonet/
Ddatagram.c86 if (msg->msg_namelen < sizeof(struct sockaddr_pn)) in pn_sendmsg()
/Linux-v6.1/net/can/
Draw.c806 if (msg->msg_namelen < RAW_MIN_NAMELEN) in raw_sendmsg()
911 msg->msg_namelen = RAW_MIN_NAMELEN; in raw_recvmsg()
912 memcpy(msg->msg_name, skb->cb, msg->msg_namelen); in raw_recvmsg()
/Linux-v6.1/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()
2745 if (msg->msg_namelen < sizeof(struct sockaddr_ll)) in tpacket_snd()
2747 if (msg->msg_namelen < (saddr->sll_halen in tpacket_snd()
2754 if (dev && msg->msg_namelen < dev->addr_len + in tpacket_snd()
2959 if (msg->msg_namelen < sizeof(struct sockaddr_ll)) in packet_snd()
2961 if (msg->msg_namelen < (saddr->sll_halen + offsetof(struct sockaddr_ll, sll_addr))) in packet_snd()
2966 if (dev && msg->msg_namelen < dev->addr_len + in packet_snd()
3493 msg->msg_namelen = sizeof(struct sockaddr_pkt); in packet_recvmsg()
3494 copy_len = msg->msg_namelen; in packet_recvmsg()
[all …]
/Linux-v6.1/arch/um/os-Linux/drivers/
Dtuntap_user.c88 msg.msg_namelen = 0; in tuntap_open_tramp()
/Linux-v6.1/fs/afs/
Drxrpc.c361 msg.msg_namelen = 0; in afs_make_call()
824 msg.msg_namelen = 0; in afs_send_empty_reply()
864 msg.msg_namelen = 0; in afs_send_simple_reply()
/Linux-v6.1/arch/um/drivers/
Dmconsole_user.c49 msg.msg_namelen = req->originlen; in mconsole_reply_v0()

1234