Home
last modified time | relevance | path

Searched refs:msg_name (Results 1 – 25 of 37) sorted by relevance

12

/net/phonet/
Ddatagram.c81 if (msg->msg_name == NULL) in pn_sendmsg()
87 target = (struct sockaddr_pn *)msg->msg_name; in pn_sendmsg()
148 if (msg->msg_name != NULL) in pn_recvmsg()
149 memcpy(msg->msg_name, &sa, sizeof(struct sockaddr_pn)); in pn_recvmsg()
/net/core/
Diovec.c45 err = move_addr_to_kernel(m->msg_name, m->msg_namelen, in verify_iovec()
50 m->msg_name = address; in verify_iovec()
52 m->msg_name = NULL; in verify_iovec()
/net/rxrpc/
Daf_rxrpc.c452 if (m->msg_name) { in rxrpc_sendmsg()
453 ret = rxrpc_validate_address(rx, m->msg_name, m->msg_namelen); in rxrpc_sendmsg()
463 if (m->msg_name) { in rxrpc_sendmsg()
465 trans = rxrpc_name_to_transport(sock, m->msg_name, in rxrpc_sendmsg()
480 if (!m->msg_name) { in rxrpc_sendmsg()
486 if (!m->msg_name) { in rxrpc_sendmsg()
Dar-output.c152 if (msg->msg_name) { in rxrpc_client_sendmsg()
154 (struct sockaddr_rxrpc *) msg->msg_name; in rxrpc_client_sendmsg()
215 ASSERTCMP(msg->msg_name, ==, NULL); in rxrpc_kernel_send_data()
344 msg.msg_name = &trans->peer->srx.transport.sin; in rxrpc_send_packet()
Dar-connevent.c86 msg.msg_name = &conn->trans->peer->srx.transport.sin; in rxrpc_abort_connection()
355 msg.msg_name = &sa; in rxrpc_reject_packets()
Dar-recvmsg.c145 if (msg->msg_name && msg->msg_namelen > 0) in rxrpc_recvmsg()
146 memcpy(msg->msg_name, in rxrpc_recvmsg()
Dar-accept.c38 msg.msg_name = &srx->transport.sin; in rxrpc_busy()
Drxkad.c587 msg.msg_name = &conn->trans->peer->srx.transport.sin; in rxkad_issue_challenge()
639 msg.msg_name = &conn->trans->peer->srx.transport.sin; in rxkad_send_response()
/net/can/
Draw.c625 if (msg->msg_name) { in raw_sendmsg()
627 (struct sockaddr_can *)msg->msg_name; in raw_sendmsg()
699 if (msg->msg_name) { in raw_recvmsg()
701 memcpy(msg->msg_name, skb->cb, msg->msg_namelen); in raw_recvmsg()
Dbcm.c1249 if (!ifindex && msg->msg_name) { in bcm_sendmsg()
1252 (struct sockaddr_can *)msg->msg_name; in bcm_sendmsg()
1548 if (msg->msg_name) { in bcm_recvmsg()
1550 memcpy(msg->msg_name, skb->cb, msg->msg_namelen); in bcm_recvmsg()
/net/econet/
Daf_econet.c167 if (msg->msg_name) in econet_recvmsg()
168 memcpy(msg->msg_name, skb->cb, msg->msg_namelen); in econet_recvmsg()
267 struct sockaddr_ec *saddr=(struct sockaddr_ec *)msg->msg_name; in econet_sendmsg()
490 udpmsg.msg_name = (void *)&udpdest; in econet_sendmsg()
835 udpmsg.msg_name = (void *)&sin; in aun_send_response()
/net/tipc/
Dsocket.c514 struct sockaddr_tipc *dest = (struct sockaddr_tipc *)m->msg_name; in send_msg()
622 struct sockaddr_tipc *dest = (struct sockaddr_tipc *)m->msg_name; in send_packet()
709 if (unlikely(m->msg_name)) { in send_stream()
727 my_msg.msg_name = NULL; in send_stream()
797 struct sockaddr_tipc *addr = (struct sockaddr_tipc *)m->msg_name; in set_orig_addr()
1417 m.msg_name = dest; in connect()
/net/
Dcompat.c62 __get_user(tmp1, &umsg->msg_name) || in get_compat_msghdr()
70 kmsg->msg_name = compat_ptr(tmp1); in get_compat_msghdr()
84 int err = move_addr_to_kernel(kern_msg->msg_name, in verify_compat_iovec()
90 kern_msg->msg_name = kern_address; in verify_compat_iovec()
92 kern_msg->msg_name = NULL; in verify_compat_iovec()
Dsocket.c752 msg->msg_name = NULL; in do_sock_read()
792 msg->msg_name = NULL; in do_sock_write()
1649 msg.msg_name = NULL; in SYSCALL_DEFINE6()
1659 msg.msg_name = (struct sockaddr *)&address; in SYSCALL_DEFINE6()
1710 msg.msg_name = (struct sockaddr *)&address; in SYSCALL_DEFINE6()
1988 uaddr = (__force void __user *)msg_sys.msg_name; in SYSCALL_DEFINE3()
/net/ipv6/
Dudp.c227 if (msg->msg_name) { in udpv6_recvmsg()
230 sin6 = (struct sockaddr_in6 *) msg->msg_name; in udpv6_recvmsg()
666 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *) msg->msg_name; in udpv6_sendmsg()
696 msg->msg_name = sin6 = NULL; in udpv6_sendmsg()
716 msg->msg_name = &sin; in udpv6_sendmsg()
/net/unix/
Daf_unix.c1346 struct sockaddr_un *sunaddr = msg->msg_name; in unix_dgram_sendmsg()
1500 struct sockaddr_un *sunaddr = msg->msg_name; in unix_stream_sendmsg()
1636 memcpy(msg->msg_name, u->addr->name, u->addr->len); in unix_copy_addr()
1673 if (msg->msg_name) in unix_dgram_recvmsg()
1765 struct sockaddr_un *sunaddr = msg->msg_name; in unix_stream_recvmsg()
/net/sctp/
Dsocket.c1432 struct sockaddr *msg_name = NULL; in sctp_sendmsg() local
1473 if (!sctp_style(sk, UDP_HIGH_BANDWIDTH) && msg->msg_name) { in sctp_sendmsg()
1476 err = sctp_verify_addr(sk, (union sctp_addr *)msg->msg_name, in sctp_sendmsg()
1483 memcpy(&to, msg->msg_name, msg_namelen); in sctp_sendmsg()
1484 msg_name = msg->msg_name; in sctp_sendmsg()
1519 if ((sinfo_flags & SCTP_ADDR_OVER) && (!msg->msg_name)) { in sctp_sendmsg()
1531 if (msg_name) { in sctp_sendmsg()
1746 if ((sctp_style(sk, TCP) && msg_name) || in sctp_sendmsg()
1924 sp->pf->event_msgname(event, msg->msg_name, addr_len); in sctp_recvmsg()
1926 sp->pf->skb_msgname(skb, msg->msg_name, addr_len); in sctp_recvmsg()
/net/packet/
Daf_packet.c356 struct sockaddr_pkt *saddr=(struct sockaddr_pkt *)msg->msg_name; in packet_sendmsg_spkt()
771 struct sockaddr_ll *saddr=(struct sockaddr_ll *)msg->msg_name; in packet_sendmsg()
1170 if (msg->msg_name) in packet_recvmsg()
1171 memcpy(msg->msg_name, &PACKET_SKB_CB(skb)->sa, in packet_recvmsg()
/net/ipv4/
Dudp.c620 if (msg->msg_name) { in udp_sendmsg()
621 struct sockaddr_in * usin = (struct sockaddr_in*)msg->msg_name; in udp_sendmsg()
879 struct sockaddr_in *sin = (struct sockaddr_in *)msg->msg_name; in udp_recvmsg()
Draw.c468 struct sockaddr_in *usin = (struct sockaddr_in *)msg->msg_name; in raw_sendmsg()
651 struct sockaddr_in *sin = (struct sockaddr_in *)msg->msg_name; in raw_recvmsg()
/net/rose/
Daf_rose.c1068 struct sockaddr_rose *usrose = (struct sockaddr_rose *)msg->msg_name; in rose_sendmsg()
1243 struct sockaddr_rose *srose = (struct sockaddr_rose *)msg->msg_name; in rose_recvmsg()
1291 struct full_sockaddr_rose *full_srose = (struct full_sockaddr_rose *)msg->msg_name; in rose_recvmsg()
/net/llc/
Daf_llc.c665 struct sockaddr_llc *uaddr = (struct sockaddr_llc *)msg->msg_name; in llc_ui_recvmsg()
829 struct sockaddr_llc *addr = (struct sockaddr_llc *)msg->msg_name; in llc_ui_sendmsg()
/net/netlink/
Daf_netlink.c1222 struct sockaddr_nl *addr = msg->msg_name; in netlink_sendmsg()
1332 if (msg->msg_name) { in netlink_recvmsg()
1333 struct sockaddr_nl *addr = (struct sockaddr_nl *)msg->msg_name; in netlink_recvmsg()
/net/sunrpc/
Dsvcsock.c182 .msg_name = &rqstp->rq_addr, in svc_sendto()
432 .msg_name = svc_addr(rqstp), in svc_udp_recvfrom()
/net/netrom/
Daf_netrom.c1033 struct sockaddr_ax25 *usax = (struct sockaddr_ax25 *)msg->msg_name; in nr_sendmsg()
1145 struct sockaddr_ax25 *sax = (struct sockaddr_ax25 *)msg->msg_name; in nr_recvmsg()

12