/net/ |
D | compat.c | 48 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()
|
D | socket.c | 731 int save_len = msg->msg_namelen; in sock_sendmsg() 735 memcpy(&address, msg->msg_name, msg->msg_namelen); in sock_sendmsg() 741 msg->msg_namelen = save_len; in sock_sendmsg() 2059 msg.msg_namelen = 0; in __sys_sendto() 2065 msg.msg_namelen = addr_len; in __sys_sendto() 2122 msg.msg_namelen = 0; in __sys_recvfrom() 2131 msg.msg_namelen, addr, addr_len); in __sys_recvfrom() 2309 #define COMPAT_NAMELEN(msg) COMPAT_MSG(msg, msg_namelen) 2333 kmsg->msg_namelen = msg.msg_namelen; in __copy_msghdr_from_user() 2335 kmsg->msg_namelen = 0; in __copy_msghdr_from_user() [all …]
|
/net/qrtr/ |
D | ns.c | 128 msg.msg_namelen = sizeof(*dest); in service_announce_new() 155 msg.msg_namelen = sizeof(*dest); in service_announce_del() 186 msg.msg_namelen = sizeof(*to); in lookup_notify() 322 msg.msg_namelen = sizeof(*dest); in say_hello() 406 msg.msg_namelen = sizeof(sq); in ctrl_cmd_bye() 496 msg.msg_namelen = sizeof(sq); in ctrl_cmd_del_client() 682 msg.msg_namelen = sizeof(sq); in qrtr_ns_worker()
|
D | af_qrtr.c | 918 if (msg->msg_namelen < sizeof(*addr)) { in qrtr_sendmsg() 1070 msg->msg_namelen = sizeof(*addr); in qrtr_recvmsg()
|
/net/rxrpc/ |
D | output.c | 202 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()
|
D | local_event.c | 42 msg.msg_namelen = srx.transport_len; in rxrpc_send_version_request()
|
D | conn_event.c | 64 msg.msg_namelen = conn->params.peer->srx.transport_len; in rxrpc_conn_retransmit_call() 225 msg.msg_namelen = conn->params.peer->srx.transport_len; in rxrpc_abort_connection()
|
D | af_rxrpc.c | 513 ret = rxrpc_validate_address(rx, m->msg_name, m->msg_namelen); in rxrpc_sendmsg() 556 m->msg_namelen = sizeof(rx->connect_srx); in rxrpc_sendmsg()
|
/net/mctp/ |
D | af_mctp.c | 84 int rc, addrlen = msg->msg_namelen; in mctp_sendmsg() 193 msg->msg_namelen = sizeof(*addr); in mctp_recvmsg()
|
/net/packet/ |
D | af_packet.c | 1935 if (msg->msg_namelen < sizeof(struct sockaddr)) in packet_sendmsg_spkt() 1937 if (msg->msg_namelen == sizeof(struct sockaddr_pkt)) in packet_sendmsg_spkt() 2710 if (msg->msg_namelen < sizeof(struct sockaddr_ll)) in tpacket_snd() 2712 if (msg->msg_namelen < (saddr->sll_halen in tpacket_snd() 2719 if (dev && msg->msg_namelen < dev->addr_len + in tpacket_snd() 2925 if (msg->msg_namelen < sizeof(struct sockaddr_ll)) in packet_snd() 2927 if (msg->msg_namelen < (saddr->sll_halen + offsetof(struct sockaddr_ll, sll_addr))) in packet_snd() 2932 if (dev && msg->msg_namelen < dev->addr_len + in packet_snd() 3470 msg->msg_namelen = sizeof(struct sockaddr_pkt); in packet_recvmsg() 3471 copy_len = msg->msg_namelen; in packet_recvmsg() [all …]
|
/net/can/ |
D | raw.c | 792 if (msg->msg_namelen < RAW_MIN_NAMELEN) in raw_sendmsg() 895 msg->msg_namelen = RAW_MIN_NAMELEN; in raw_recvmsg() 896 memcpy(msg->msg_name, skb->cb, msg->msg_namelen); in raw_recvmsg()
|
D | bcm.c | 1320 if (msg->msg_namelen < BCM_MIN_NAMELEN) in bcm_sendmsg() 1672 msg->msg_namelen = BCM_MIN_NAMELEN; in bcm_recvmsg() 1673 memcpy(msg->msg_name, skb->cb, msg->msg_namelen); in bcm_recvmsg()
|
/net/phonet/ |
D | datagram.c | 86 if (msg->msg_namelen < sizeof(struct sockaddr_pn)) in pn_sendmsg()
|
/net/rose/ |
D | af_rose.c | 1120 …if (msg->msg_namelen != sizeof(struct sockaddr_rose) && msg->msg_namelen != sizeof(struct full_soc… in rose_sendmsg() 1123 memcpy(&srose, usrose, msg->msg_namelen); in rose_sendmsg() 1311 msg->msg_namelen = sizeof(struct full_sockaddr_rose); in rose_recvmsg()
|
/net/can/j1939/ |
D | socket.c | 852 msg->msg_namelen = J1939_MIN_NAMELEN; in j1939_sk_recvmsg() 853 memset(msg->msg_name, 0, msg->msg_namelen); in j1939_sk_recvmsg() 1238 if (msg->msg_namelen < J1939_MIN_NAMELEN) { in j1939_sk_sendmsg()
|
/net/ipv6/ |
D | ping.c | 71 if (msg->msg_namelen < sizeof(*u)) in ping_v6_sendmsg()
|
D | udp.c | 1337 int addr_len = msg->msg_namelen; in udpv6_sendmsg() 1369 msg->msg_namelen = addr_len = 0; in udpv6_sendmsg() 1389 msg->msg_namelen = sizeof(sin); in udpv6_sendmsg() 1394 msg->msg_namelen = addr_len; in udpv6_sendmsg()
|
/net/rds/ |
D | recv.c | 730 msg->msg_namelen = sizeof(*sin); in rds_recvmsg() 737 msg->msg_namelen = sizeof(*sin6); in rds_recvmsg()
|
/net/unix/ |
D | af_unix.c | 1780 if (msg->msg_namelen) { in unix_dgram_sendmsg() 1781 err = unix_mkname(sunaddr, msg->msg_namelen, &hash); in unix_dgram_sendmsg() 2050 if (msg->msg_namelen) { in unix_stream_sendmsg() 2266 if (msg->msg_namelen) in unix_seqpacket_sendmsg() 2267 msg->msg_namelen = 0; in unix_seqpacket_sendmsg() 2288 msg->msg_namelen = addr->len; in unix_copy_addr()
|
/net/nfc/ |
D | rawsock.c | 211 if (msg->msg_namelen) in rawsock_sendmsg()
|
D | llcp_sock.c | 804 if (msg->msg_namelen < sizeof(*addr)) { in llcp_sock_sendmsg() 877 msg->msg_namelen = sizeof(struct sockaddr_nfc_llcp); in llcp_sock_recvmsg()
|
/net/ieee802154/ |
D | socket.c | 628 if (msg->msg_namelen < IEEE802154_MIN_NAMELEN) in dgram_sendmsg() 630 err = ieee802154_sockaddr_check_size(daddr, msg->msg_namelen); in dgram_sendmsg()
|
/net/caif/ |
D | caif_socket.c | 538 if (msg->msg_namelen) in caif_seqpkt_sendmsg() 608 if (unlikely(msg->msg_namelen)) in caif_stream_sendmsg()
|
/net/ipv4/ |
D | raw.c | 537 if (msg->msg_namelen) { in raw_sendmsg() 540 if (msg->msg_namelen < sizeof(*usin)) in raw_sendmsg()
|
/net/llc/ |
D | af_llc.c | 906 msg->msg_namelen = sizeof(*uaddr); in llc_ui_recvmsg() 945 if (msg->msg_namelen < sizeof(*addr)) in llc_ui_sendmsg()
|