Home
last modified time | relevance | path

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

123

/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.c731 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/
Dns.c128 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()
Daf_qrtr.c918 if (msg->msg_namelen < sizeof(*addr)) { in qrtr_sendmsg()
1070 msg->msg_namelen = sizeof(*addr); in qrtr_recvmsg()
/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.c64 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()
Daf_rxrpc.c513 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/
Daf_mctp.c84 int rc, addrlen = msg->msg_namelen; in mctp_sendmsg()
193 msg->msg_namelen = sizeof(*addr); in mctp_recvmsg()
/net/packet/
Daf_packet.c1935 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/
Draw.c792 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()
Dbcm.c1320 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/
Ddatagram.c86 if (msg->msg_namelen < sizeof(struct sockaddr_pn)) in pn_sendmsg()
/net/rose/
Daf_rose.c1120 …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/
Dsocket.c852 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/
Dping.c71 if (msg->msg_namelen < sizeof(*u)) in ping_v6_sendmsg()
Dudp.c1337 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/
Drecv.c730 msg->msg_namelen = sizeof(*sin); in rds_recvmsg()
737 msg->msg_namelen = sizeof(*sin6); in rds_recvmsg()
/net/unix/
Daf_unix.c1780 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/
Drawsock.c211 if (msg->msg_namelen) in rawsock_sendmsg()
Dllcp_sock.c804 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/
Dsocket.c628 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/
Dcaif_socket.c538 if (msg->msg_namelen) in caif_seqpkt_sendmsg()
608 if (unlikely(msg->msg_namelen)) in caif_stream_sendmsg()
/net/ipv4/
Draw.c537 if (msg->msg_namelen) { in raw_sendmsg()
540 if (msg->msg_namelen < sizeof(*usin)) in raw_sendmsg()
/net/llc/
Daf_llc.c906 msg->msg_namelen = sizeof(*uaddr); in llc_ui_recvmsg()
945 if (msg->msg_namelen < sizeof(*addr)) in llc_ui_sendmsg()

123