Home
last modified time | relevance | path

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

12

/net/core/
Diovec.c43 if (m->msg_namelen) { in verify_iovec()
45 err = move_addr_to_kernel(m->msg_name, m->msg_namelen, in verify_iovec()
/net/rxrpc/
Dar-connevent.c87 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()
Daf_rxrpc.c453 ret = rxrpc_validate_address(rx, m->msg_name, m->msg_namelen); in rxrpc_sendmsg()
466 m->msg_namelen, 0, GFP_KERNEL); in rxrpc_sendmsg()
Dar-recvmsg.c145 if (msg->msg_name && msg->msg_namelen > 0) in rxrpc_recvmsg()
Dar-accept.c39 msg.msg_namelen = sizeof(srx->transport.sin); in rxrpc_busy()
Drxkad.c588 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/
Daf_econet.c125 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/
Daf_unix.c1366 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/
Dsocket.c753 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()
Dcompat.c63 __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/
Daf_rose.c1094 …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/
Daf_packet.c368 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/
Ddatagram.c84 if (msg->msg_namelen < sizeof(struct sockaddr_pn)) in pn_sendmsg()
/net/can/
Draw.c700 msg->msg_namelen = sizeof(struct sockaddr_can); in raw_recvmsg()
701 memcpy(msg->msg_name, skb->cb, msg->msg_namelen); in raw_recvmsg()
Dbcm.c1549 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/
Dudp.c672 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/
Dsocket.c520 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/
Daf_bluetooth.c287 msg->msg_namelen = 0; in bt_sock_recvmsg()
Dhci_sock.c373 msg->msg_namelen = 0; in hci_sock_recvmsg()
/net/llc/
Daf_llc.c810 msg->msg_namelen = sizeof(*uaddr); in llc_ui_recvmsg()
840 if (msg->msg_namelen < sizeof(*addr)) in llc_ui_sendmsg()
/net/ipv4/
Draw.c467 if (msg->msg_namelen) { in raw_sendmsg()
470 if (msg->msg_namelen < sizeof(*usin)) in raw_sendmsg()
/net/ax25/
Daf_ax25.c1436 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/
Daf_netlink.c1238 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/
Daf_netrom.c1061 if (msg->msg_namelen < sizeof(sax)) { in nr_sendmsg()
1183 msg->msg_namelen = sizeof(*sax); in nr_recvmsg()
/net/x25/
Daf_x25.c1017 if (msg->msg_namelen < sizeof(sx25)) in x25_sendmsg()
1235 msg->msg_namelen = sizeof(struct sockaddr_x25); in x25_recvmsg()

12