/net/core/ |
D | iovec.c | 43 if (m->msg_namelen) { in verify_iovec() 45 err = move_addr_to_kernel(m->msg_name, m->msg_namelen, in verify_iovec()
|
/net/rxrpc/ |
D | ar-connevent.c | 87 msg.msg_namelen = sizeof(conn->trans->peer->srx.transport.sin); in rxrpc_abort_connection() 364 msg.msg_namelen = sizeof(sa.sin); in rxrpc_reject_packets() 367 msg.msg_namelen = 0; in rxrpc_reject_packets()
|
D | af_rxrpc.c | 453 ret = rxrpc_validate_address(rx, m->msg_name, m->msg_namelen); in rxrpc_sendmsg() 466 m->msg_namelen, 0, GFP_KERNEL); in rxrpc_sendmsg()
|
D | ar-recvmsg.c | 145 if (msg->msg_name && msg->msg_namelen > 0) in rxrpc_recvmsg()
|
D | ar-accept.c | 39 msg.msg_namelen = sizeof(srx->transport.sin); in rxrpc_busy()
|
D | rxkad.c | 588 msg.msg_namelen = sizeof(conn->trans->peer->srx.transport.sin); in rxkad_issue_challenge() 640 msg.msg_namelen = sizeof(conn->trans->peer->srx.transport.sin); in rxkad_send_response()
|
/net/econet/ |
D | af_econet.c | 125 msg->msg_namelen = sizeof(struct sockaddr_ec); in econet_recvmsg() 168 memcpy(msg->msg_name, skb->cb, msg->msg_namelen); in econet_recvmsg() 307 if (msg->msg_namelen < sizeof(struct sockaddr_ec)) { in econet_sendmsg() 491 udpmsg.msg_namelen = sizeof(udpdest); in econet_sendmsg() 836 udpmsg.msg_namelen = sizeof(sin); in aun_send_response()
|
/net/unix/ |
D | af_unix.c | 1366 if (msg->msg_namelen) { in unix_dgram_sendmsg() 1367 err = unix_mkname(sunaddr, msg->msg_namelen, &hash); in unix_dgram_sendmsg() 1517 if (msg->msg_namelen) { in unix_stream_sendmsg() 1623 if (msg->msg_namelen) in unix_seqpacket_sendmsg() 1624 msg->msg_namelen = 0; in unix_seqpacket_sendmsg() 1633 msg->msg_namelen = 0; in unix_copy_addr() 1635 msg->msg_namelen = u->addr->len; in unix_copy_addr() 1656 msg->msg_namelen = 0; in unix_dgram_recvmsg() 1783 msg->msg_namelen = 0; in unix_stream_recvmsg()
|
/net/ |
D | socket.c | 753 msg->msg_namelen = 0; in do_sock_read() 793 msg->msg_namelen = 0; in do_sock_write() 1654 msg.msg_namelen = 0; in SYSCALL_DEFINE6() 1660 msg.msg_namelen = addr_len; in SYSCALL_DEFINE6() 1711 msg.msg_namelen = sizeof(address); in SYSCALL_DEFINE6() 1718 msg.msg_namelen, addr, addr_len); in SYSCALL_DEFINE6() 1826 #define COMPAT_NAMELEN(msg) COMPAT_MSG(msg, msg_namelen) 2014 msg_sys.msg_namelen, uaddr, in SYSCALL_DEFINE3()
|
D | compat.c | 63 __get_user(kmsg->msg_namelen, &umsg->msg_namelen) || in get_compat_msghdr() 82 if (kern_msg->msg_namelen) { in verify_compat_iovec() 85 kern_msg->msg_namelen, in verify_compat_iovec()
|
/net/rose/ |
D | af_rose.c | 1094 …if (msg->msg_namelen != sizeof(struct sockaddr_rose) && msg->msg_namelen != sizeof(struct full_soc… in rose_sendmsg() 1097 memcpy(&srose, usrose, msg->msg_namelen); in rose_sendmsg() 1290 if (msg->msg_namelen >= sizeof(struct full_sockaddr_rose)) { in rose_recvmsg() 1294 msg->msg_namelen = sizeof(struct full_sockaddr_rose); in rose_recvmsg() 1300 msg->msg_namelen = sizeof(struct sockaddr_rose); in rose_recvmsg()
|
/net/packet/ |
D | af_packet.c | 368 if (msg->msg_namelen < sizeof(struct sockaddr)) in packet_sendmsg_spkt() 370 if (msg->msg_namelen==sizeof(struct sockaddr_pkt)) in packet_sendmsg_spkt() 790 if (msg->msg_namelen < sizeof(struct sockaddr_ll)) in packet_sendmsg() 792 if (msg->msg_namelen < (saddr->sll_halen + offsetof(struct sockaddr_ll, sll_addr))) in packet_sendmsg() 1148 msg->msg_namelen = sizeof(struct sockaddr_pkt); in packet_recvmsg() 1150 msg->msg_namelen = sll->sll_halen + offsetof(struct sockaddr_ll, sll_addr); in packet_recvmsg() 1172 msg->msg_namelen); in packet_recvmsg()
|
/net/phonet/ |
D | datagram.c | 84 if (msg->msg_namelen < sizeof(struct sockaddr_pn)) in pn_sendmsg()
|
/net/can/ |
D | raw.c | 700 msg->msg_namelen = sizeof(struct sockaddr_can); in raw_recvmsg() 701 memcpy(msg->msg_name, skb->cb, msg->msg_namelen); in raw_recvmsg()
|
D | bcm.c | 1549 msg->msg_namelen = sizeof(struct sockaddr_can); in bcm_recvmsg() 1550 memcpy(msg->msg_name, skb->cb, msg->msg_namelen); in bcm_recvmsg()
|
/net/ipv6/ |
D | udp.c | 672 int addr_len = msg->msg_namelen; in udpv6_sendmsg() 697 msg->msg_namelen = addr_len = 0; in udpv6_sendmsg() 717 msg->msg_namelen = sizeof(sin); in udpv6_sendmsg()
|
/net/tipc/ |
D | socket.c | 520 if (unlikely((m->msg_namelen < sizeof(*dest)) || in send_msg() 806 m->msg_namelen = sizeof(struct sockaddr_tipc); in set_orig_addr() 1418 m.msg_namelen = destlen; in connect()
|
/net/bluetooth/ |
D | af_bluetooth.c | 287 msg->msg_namelen = 0; in bt_sock_recvmsg()
|
D | hci_sock.c | 373 msg->msg_namelen = 0; in hci_sock_recvmsg()
|
/net/llc/ |
D | af_llc.c | 810 msg->msg_namelen = sizeof(*uaddr); in llc_ui_recvmsg() 840 if (msg->msg_namelen < sizeof(*addr)) in llc_ui_sendmsg()
|
/net/ipv4/ |
D | raw.c | 467 if (msg->msg_namelen) { in raw_sendmsg() 470 if (msg->msg_namelen < sizeof(*usin)) in raw_sendmsg()
|
/net/ax25/ |
D | af_ax25.c | 1436 int lv, err, addr_len = msg->msg_namelen; in ax25_sendmsg() 1646 if (msg->msg_namelen != 0) { in ax25_recvmsg() 1668 msg->msg_namelen = sizeof(struct full_sockaddr_ax25); in ax25_recvmsg()
|
/net/netlink/ |
D | af_netlink.c | 1238 if (msg->msg_namelen) { in netlink_sendmsg() 1321 msg->msg_namelen = 0; in netlink_recvmsg() 1338 msg->msg_namelen = sizeof(*addr); in netlink_recvmsg()
|
/net/netrom/ |
D | af_netrom.c | 1061 if (msg->msg_namelen < sizeof(sax)) { in nr_sendmsg() 1183 msg->msg_namelen = sizeof(*sax); in nr_recvmsg()
|
/net/x25/ |
D | af_x25.c | 1017 if (msg->msg_namelen < sizeof(sx25)) in x25_sendmsg() 1235 msg->msg_namelen = sizeof(struct sockaddr_x25); in x25_recvmsg()
|