Home
last modified time | relevance | path

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

12

/xnu-12377.81.4/bsd/netinet/
H A Din.c574 SOCKADDR_COPY(&ia->ia_addr, &ifr->ifr_addr, sizeof(addr)); in inctl_ifaddr()
580 SOCKADDR_COPY(&ifr->ifr_addr, &addr, sizeof(addr)); in inctl_ifaddr()
597 SOCKADDR_COPY(&ifra->ifra_addr, &addr, sizeof(addr)); in inctl_ifaddr()
598 SOCKADDR_COPY(&ifra->ifra_broadaddr, &broadaddr, sizeof(broadaddr)); in inctl_ifaddr()
599 SOCKADDR_COPY(&ifra->ifra_mask, &mask, sizeof(mask)); in inctl_ifaddr()
855 SOCKADDR_COPY(&ia->ia_dstaddr, &ifr->ifr_dstaddr, sizeof(dstaddr)); in inctl_ifdstaddr()
977 SOCKADDR_COPY(&ia->ia_broadaddr, &ifr->ifr_broadaddr, in inctl_ifbrdaddr()
1056 SOCKADDR_COPY(&ia->ia_sockmask, &ifr->ifr_addr, sizeof(mask)); in inctl_ifnetmask()
1063 SOCKADDR_COPY(&ifr->ifr_addr, &mask, sizeof(mask)); in inctl_ifnetmask()
1239 SOCKADDR_COPY(&((struct in_aliasreq *)(void *)data)->ifra_addr, in in_control()
[all …]
H A Dip_encap.c368 SOCKADDR_COPY(sp, &new_ep->src, sp->sa_len); in encap_attach()
369 SOCKADDR_COPY(sm, &new_ep->srcmask, sp->sa_len); in encap_attach()
370 SOCKADDR_COPY(dp, &new_ep->dst, dp->sa_len); in encap_attach()
371 SOCKADDR_COPY(dm, &new_ep->dstmask, dp->sa_len); in encap_attach()
H A Dmptcp_usrreq.c348 SOCKADDR_COPY(dst, &mpte->mpte_dst, dst->sa_len); in mptcp_usr_connectx()
351 SOCKADDR_COPY(dst, &mpte->mpte_sub_dst_v4, dst->sa_len); in mptcp_usr_connectx()
353 SOCKADDR_COPY(dst, &mpte->mpte_sub_dst_v6, dst->sa_len); in mptcp_usr_connectx()
380 SOCKADDR_COPY(src, &mpte->mpte_src, src->sa_len); in mptcp_usr_connectx()
H A Dip_dummynet.c1759 SOCKADDR_COPY(fwa->fwa_dst, &pkt->dn_dst, sizeof(pkt->dn_dst)); in dummynet_io()
1775 SOCKADDR_COPY(fwa->fwa_dst6, &pkt->dn_dst6, sizeof(pkt->dn_dst6)); in dummynet_io()
/xnu-12377.81.4/bsd/kern/
H A Dsocket_info.c192 SOCKADDR_COPY(unp->unp_addr, &unsi->unsi_addr.ua_sun, in fill_socketinfo()
201 SOCKADDR_COPY(unp->unp_conn->unp_addr, &unsi->unsi_caddr.ua_sun, in fill_socketinfo()
H A Dkpi_socket.c194 SOCKADDR_COPY(sa, from, MIN(fromlen, sa->sa_len)); in sock_accept_common()
245 SOCKADDR_COPY(to, sa, to->sa_len); in sock_bind()
277 SOCKADDR_COPY(to, sa, to->sa_len); in sock_connect()
436 SOCKADDR_COPY(sa, peername, MIN(peernamelen, sa->sa_len)); in sock_getpeername()
456 SOCKADDR_COPY(sa, sockname, MIN(socknamelen, sa->sa_len)); in sock_getsockname()
771 SOCKADDR_COPY(fromsa, msg->msg_name, in sock_receive_internal()
H A Duipc_usrreq.c1873 SOCKADDR_COPY(unp->unp_addr, dst,
1878 SOCKADDR_COPY(unp->unp_conn->unp_addr, dst,
2031 SOCKADDR_COPY(unp->unp_addr, dst,
2036 SOCKADDR_COPY(unp->unp_conn->unp_addr,
2171 SOCKADDR_COPY(unp->unp_addr, dst,
2176 SOCKADDR_COPY(unp->unp_conn->unp_addr, dst,
H A Duipc_domain.c1156 SOCKADDR_COPY(SIN6(p_laddr), dst, p_laddr->sa_len); in protoctl_event_enqueue_nwk_wq_entry()
1162 SOCKADDR_COPY(SIN6(p_raddr), dst, p_raddr->sa_len); in protoctl_event_enqueue_nwk_wq_entry()
H A Dkpi_socketfilter.c1036 SOCKADDR_COPY(nam, buf, nam->sa_len); in sflt_connectout()
1048 SOCKADDR_COPY(sa, __DECONST_SA(nam), nam->sa_len); in sflt_connectout()
H A Duipc_socket2.c1260 SOCKADDR_COPY(asa, mtod(m, caddr_t), asa->sa_len); in sbconcat_mbufs()
2794 SOCKADDR_COPY(sa, sa2, sa->sa_len); in dup_sockaddr()
/xnu-12377.81.4/bsd/net/
H A Dif_gif.c870 SOCKADDR_COPY(src, sa, src->sa_len); in gif_ioctl()
881 SOCKADDR_COPY(dst, sa, dst->sa_len); in gif_ioctl()
940 SOCKADDR_COPY(src, dst, src->sa_len); in gif_ioctl()
977 SOCKADDR_COPY(src, dst, src->sa_len); in gif_ioctl()
H A Dndrv.c337 SOCKADDR_COPY(nam, np->nd_faddr, in ndrv_connect()
386 SOCKADDR_COPY(sa, np->nd_laddr, in ndrv_bind()
530 SOCKADDR_COPY(np->nd_laddr, *nam, len); in ndrv_sockaddr()
553 SOCKADDR_COPY(np->nd_faddr, *nam, len); in ndrv_peeraddr()
H A Droute.c647 SOCKADDR_COPY(src, dst, sizeof(struct sockaddr_in)); in sa_copy()
653 SOCKADDR_COPY(src, dst, sizeof(struct sockaddr_in6)); in sa_copy()
826 SOCKADDR_COPY(sa, ss, sa->sa_len); in rtm_scrub()
873 SOCKADDR_COPY(sa, sdl, sa->sa_len); in rtm_scrub()
2342 SOCKADDR_COPY(dst, ndst, dst->sa_len); in rtrequest_common_locked()
2946 SOCKADDR_COPY(dst, new, dst->sa_len); in rt_setgate()
2955 SOCKADDR_COPY(gate, rt->rt_gateway, gate->sa_len); in rt_setgate()
4277 SOCKADDR_COPY(rt->rt_gateway, gw, MIN(sizeof(ss), in route_to_gwroute()
4295 SOCKADDR_COPY(rt->rt_gateway, gw, MIN(sizeof(ss), in route_to_gwroute()
4670 SOCKADDR_COPY(p_gw_saddr, &(p_rt_ev->rt_ev_arg.rtev_ipaddr), p_gw_saddr->sa_len); in route_event_enqueue_nwk_wq_entry()
H A Dsockaddr_utils.h350 #define SOCKADDR_COPY(SRC, DST, LEN) do { \ macro
H A Dkpi_interface.c2333 SOCKADDR_COPY(ifa->ifa_addr, sdl, SA(ifa->ifa_addr)->sa_len); in ifnet_lladdr_copy_bytes_internal()
2784 SOCKADDR_COPY(ifa->ifa_addr, out_addr, copylen); in ifaddr_address()
2812 SOCKADDR_COPY(ifa->ifa_dstaddr, out_addr, copylen); in ifaddr_dstaddress()
2840 SOCKADDR_COPY(ifa->ifa_netmask, out_addr, copylen); in ifaddr_netmask()
2980 SOCKADDR_COPY(ifma->ifma_addr, out_addr, copylen); in ifmaddr_address()
H A Dnecp.c5025SOCKADDR_COPY(cond_local_start, &new_kernel_policy->cond_local_start, cond_local_start->sa.sa_len); in necp_kernel_socket_policy_add()
5028 SOCKADDR_COPY(cond_local_end, &new_kernel_policy->cond_local_end, cond_local_end->sa.sa_len); in necp_kernel_socket_policy_add()
5034SOCKADDR_COPY(cond_remote_start, &new_kernel_policy->cond_remote_start, cond_remote_start->sa.sa_l… in necp_kernel_socket_policy_add()
5037 SOCKADDR_COPY(cond_remote_end, &new_kernel_policy->cond_remote_end, cond_remote_end->sa.sa_len); in necp_kernel_socket_policy_add()
7066SOCKADDR_COPY(cond_local_start, &new_kernel_policy->cond_local_start, cond_local_start->sa.sa_len); in necp_kernel_ip_output_policy_add()
7069 SOCKADDR_COPY(cond_local_end, &new_kernel_policy->cond_local_end, cond_local_end->sa.sa_len); in necp_kernel_ip_output_policy_add()
7075SOCKADDR_COPY(cond_remote_start, &new_kernel_policy->cond_remote_start, cond_remote_start->sa.sa_l… in necp_kernel_ip_output_policy_add()
7078 SOCKADDR_COPY(cond_remote_end, &new_kernel_policy->cond_remote_end, cond_remote_end->sa.sa_len); in necp_kernel_ip_output_policy_add()
7874 SOCKADDR_COPY(local_addr, &info->local_addr, local_addr->sa.sa_len); in necp_application_fillout_info_locked()
7891 SOCKADDR_COPY(remote_addr, &info->remote_addr, remote_addr->sa.sa_len); in necp_application_fillout_info_locked()
[all …]
H A Drtsock.c1273 SOCKADDR_COPY(cp, sa, next_sa_len); in rt_xaddrs()
1470 SOCKADDR_COPY(sa, cp, dlen); in rt_msg2()
H A Ddlil.c4126 SOCKADDR_COPY(target_proto, &target_proto_sinarp, sizeof(struct sockaddr_in)); in dlil_send_arp()
4176 SOCKADDR_COPY(SIN(source_ip->ifa_addr), &source_ip_copy, sizeof(source_ip_copy)); in dlil_send_arp()
6701 SOCKADDR_COPY(sa, kev_sin6, sa->sa_len); in dlil_node_absent()
6738 SOCKADDR_COPY(sdl, kev_sdl, sdl->sdl_len); in dlil_node_present_v2()
6743 SOCKADDR_COPY(sa, kev_sin6, sa->sa_len); in dlil_node_present_v2()
/xnu-12377.81.4/bsd/netinet6/
H A Din6.c879 SOCKADDR_COPY(&ia->ia_addr, &addr, sizeof(addr)); in in6ctl_gifaddr()
884 SOCKADDR_COPY(&addr, &ifr->ifr_addr, sizeof(addr)); in in6ctl_gifaddr()
897 SOCKADDR_COPY(&ia->ia_dstaddr, &addr, sizeof(addr)); in in6ctl_gifaddr()
902 SOCKADDR_COPY(&addr, &ifr->ifr_dstaddr, sizeof(addr)); in in6ctl_gifaddr()
1495 SOCKADDR_COPY(&ifra->ifra_addr, &sin6, sizeof(sin6)); in in6_control()
1512 SOCKADDR_COPY(&ifr->ifr_addr, &sin6, sizeof(sin6)); in in6_control()
1632 SOCKADDR_COPY(&ia->ia_prefixmask, &ifr->ifr_addr, in in6_control()
H A Dnd6_nbr.c1545 SOCKADDR_COPY(&dst_sa, &ro.ro_dst, sizeof(dst_sa)); in nd6_na_output()
2525 SOCKADDR_COPY(sa, sdl, sa->sa_len); in nd6_alt_node_addr_decompose()
2690 SOCKADDR_COPY(rt->rt_gateway, sdl, SDL(rt->rt_gateway)->sdl_len); in nd6_alt_node_absent()
H A Din6_ifattach.c850 SOCKADDR_COPY(&ifra0->ifra_addr, sin6, sizeof(struct sockaddr_in6)); in in6_ifattach_aliasreq()
H A Dip6_output.c398 SOCKADDR_COPY(&dn_tag->dn_dst6, &dst_buf, sizeof(dst_buf)); in ip6_output_list()
3497 SOCKADDR_COPY(src->ip6po_nexthop, dst->ip6po_nexthop, in copypktopts()
3949 SOCKADDR_COPY(buf, opt->ip6po_nexthop, *buf); in ip6_setpktopt()
H A Dnd6.c1932 SOCKADDR_COPY(&itr->pr.ndpr_prefix, &nd6_ra_msg_data.prefix.prefix, in nd6_post_msg()
2980 SOCKADDR_COPY(macp, LLADDR(SDL(gate)), ifp->if_addrlen); in nd6_rtrequest()
4549 SOCKADDR_COPY(sdl, ll_dest, copy_len); in nd6_lookup_ipv6()
/xnu-12377.81.4/bsd/skywalk/nexus/netif/
H A Dnx_netif_netagent.c769 SOCKADDR_COPY(&nfr.nfr_saddr.sin6, &local_endpoint.u.sin6, in nx_netif_netagent_handle_ipv6_ula_flow_add()
782 SOCKADDR_COPY(&nfr.nfr_daddr.sin6, &remote_endpoint.u.sin6, in nx_netif_netagent_handle_ipv6_ula_flow_add()
/xnu-12377.81.4/bsd/netkey/
H A Dkey.c375 if (s) { SOCKADDR_COPY((s), &(idx)->src, (SA(s))->sa_len); } \
376 if (d) { SOCKADDR_COPY((d), &(idx)->dst, (SA(d))->sa_len); } \
377 if (s_s) { SOCKADDR_COPY((s_s), &(idx)->src_range.start, (SA(s_s))->sa_len); } \
378 if (s_e) { SOCKADDR_COPY((s_e), &(idx)->src_range.end, (SA(s_e))->sa_len); } \
379 if (d_s) { SOCKADDR_COPY((d_s), &(idx)->dst_range.start, (SA(d_s))->sa_len); } \
380 if (d_e) { SOCKADDR_COPY((d_e), &(idx)->dst_range.end, (SA(d_e))->sa_len); } \
393 SOCKADDR_COPY((s), &(idx)->src, (SA(s))->sa_len); \
394 SOCKADDR_COPY((d), &(idx)->dst, (SA(d))->sa_len); \
845 SOCKADDR_COPY(isrc, &spidx.src, isrc->sa_len); in key_gettunnel()
846 SOCKADDR_COPY(idst, &spidx.dst, idst->sa_len); in key_gettunnel()
[all …]

12