| /xnu-11417.140.69/bsd/netinet/ |
| H A D | in.c | 574 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() 860 SOCKADDR_COPY(&ia->ia_dstaddr, &ifr->ifr_dstaddr, sizeof(dstaddr)); in inctl_ifdstaddr() 982 SOCKADDR_COPY(&ia->ia_broadaddr, &ifr->ifr_broadaddr, in inctl_ifbrdaddr() 1061 SOCKADDR_COPY(&ia->ia_sockmask, &ifr->ifr_addr, sizeof(mask)); in inctl_ifnetmask() 1068 SOCKADDR_COPY(&ifr->ifr_addr, &mask, sizeof(mask)); in inctl_ifnetmask() 1244 SOCKADDR_COPY(&((struct in_aliasreq *)(void *)data)->ifra_addr, in in_control() [all …]
|
| H A D | ip_encap.c | 368 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 D | mptcp_usrreq.c | 348 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 D | ip_dummynet.c | 1759 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-11417.140.69/bsd/kern/ |
| H A D | socket_info.c | 192 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 D | kpi_socket.c | 194 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 D | uipc_usrreq.c | 1873 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 D | uipc_domain.c | 1190 SOCKADDR_COPY(SIN6(p_laddr), dst, p_laddr->sa_len); in protoctl_event_enqueue_nwk_wq_entry() 1196 SOCKADDR_COPY(SIN6(p_raddr), dst, p_raddr->sa_len); in protoctl_event_enqueue_nwk_wq_entry()
|
| H A D | kpi_socketfilter.c | 1036 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 D | uipc_socket2.c | 1297 SOCKADDR_COPY(asa, mtod(m, caddr_t), asa->sa_len); in sbconcat_mbufs() 2811 SOCKADDR_COPY(sa, sa2, sa->sa_len); in dup_sockaddr()
|
| /xnu-11417.140.69/bsd/net/ |
| H A D | if_gif.c | 870 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 D | ndrv.c | 337 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 D | route.c | 646 SOCKADDR_COPY(src, dst, sizeof(struct sockaddr_in)); in sa_copy() 652 SOCKADDR_COPY(src, dst, sizeof(struct sockaddr_in6)); in sa_copy() 825 SOCKADDR_COPY(sa, ss, sa->sa_len); in rtm_scrub() 872 SOCKADDR_COPY(sa, sdl, sa->sa_len); in rtm_scrub() 2339 SOCKADDR_COPY(dst, ndst, dst->sa_len); in rtrequest_common_locked() 2943 SOCKADDR_COPY(dst, new, dst->sa_len); in rt_setgate() 2952 SOCKADDR_COPY(gate, rt->rt_gateway, gate->sa_len); in rt_setgate() 4274 SOCKADDR_COPY(rt->rt_gateway, gw, MIN(sizeof(ss), in route_to_gwroute() 4292 SOCKADDR_COPY(rt->rt_gateway, gw, MIN(sizeof(ss), in route_to_gwroute() 4667 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 D | sockaddr_utils.h | 350 #define SOCKADDR_COPY(SRC, DST, LEN) do { \ macro
|
| H A D | kpi_interface.c | 2342 SOCKADDR_COPY(ifa->ifa_addr, sdl, SA(ifa->ifa_addr)->sa_len); in ifnet_lladdr_copy_bytes_internal() 2793 SOCKADDR_COPY(ifa->ifa_addr, out_addr, copylen); in ifaddr_address() 2821 SOCKADDR_COPY(ifa->ifa_dstaddr, out_addr, copylen); in ifaddr_dstaddress() 2849 SOCKADDR_COPY(ifa->ifa_netmask, out_addr, copylen); in ifaddr_netmask() 2989 SOCKADDR_COPY(ifma->ifma_addr, out_addr, copylen); in ifmaddr_address()
|
| H A D | necp.c | 5084 …SOCKADDR_COPY(cond_local_start, &new_kernel_policy->cond_local_start, cond_local_start->sa.sa_len); in necp_kernel_socket_policy_add() 5087 SOCKADDR_COPY(cond_local_end, &new_kernel_policy->cond_local_end, cond_local_end->sa.sa_len); in necp_kernel_socket_policy_add() 5093 …SOCKADDR_COPY(cond_remote_start, &new_kernel_policy->cond_remote_start, cond_remote_start->sa.sa_l… in necp_kernel_socket_policy_add() 5096 SOCKADDR_COPY(cond_remote_end, &new_kernel_policy->cond_remote_end, cond_remote_end->sa.sa_len); in necp_kernel_socket_policy_add() 6990 …SOCKADDR_COPY(cond_local_start, &new_kernel_policy->cond_local_start, cond_local_start->sa.sa_len); in necp_kernel_ip_output_policy_add() 6993 SOCKADDR_COPY(cond_local_end, &new_kernel_policy->cond_local_end, cond_local_end->sa.sa_len); in necp_kernel_ip_output_policy_add() 6999 …SOCKADDR_COPY(cond_remote_start, &new_kernel_policy->cond_remote_start, cond_remote_start->sa.sa_l… in necp_kernel_ip_output_policy_add() 7002 SOCKADDR_COPY(cond_remote_end, &new_kernel_policy->cond_remote_end, cond_remote_end->sa.sa_len); in necp_kernel_ip_output_policy_add() 7798 SOCKADDR_COPY(local_addr, &info->local_addr, local_addr->sa.sa_len); in necp_application_fillout_info_locked() 7815 SOCKADDR_COPY(remote_addr, &info->remote_addr, remote_addr->sa.sa_len); in necp_application_fillout_info_locked() [all …]
|
| H A D | rtsock.c | 1268 SOCKADDR_COPY(cp, sa, next_sa_len); in rt_xaddrs() 1465 SOCKADDR_COPY(sa, cp, dlen); in rt_msg2()
|
| H A D | dlil.c | 4195 SOCKADDR_COPY(target_proto, &target_proto_sinarp, sizeof(struct sockaddr_in)); in dlil_send_arp() 4245 SOCKADDR_COPY(SIN(source_ip->ifa_addr), &source_ip_copy, sizeof(source_ip_copy)); in dlil_send_arp() 6785 SOCKADDR_COPY(sa, kev_sin6, sa->sa_len); in dlil_node_absent() 6822 SOCKADDR_COPY(sdl, kev_sdl, sdl->sdl_len); in dlil_node_present_v2() 6827 SOCKADDR_COPY(sa, kev_sin6, sa->sa_len); in dlil_node_present_v2()
|
| /xnu-11417.140.69/bsd/netinet6/ |
| H A D | in6.c | 877 SOCKADDR_COPY(&ia->ia_addr, &addr, sizeof(addr)); in in6ctl_gifaddr() 882 SOCKADDR_COPY(&addr, &ifr->ifr_addr, sizeof(addr)); in in6ctl_gifaddr() 895 SOCKADDR_COPY(&ia->ia_dstaddr, &addr, sizeof(addr)); in in6ctl_gifaddr() 900 SOCKADDR_COPY(&addr, &ifr->ifr_dstaddr, sizeof(addr)); in in6ctl_gifaddr() 1493 SOCKADDR_COPY(&ifra->ifra_addr, &sin6, sizeof(sin6)); in in6_control() 1510 SOCKADDR_COPY(&ifr->ifr_addr, &sin6, sizeof(sin6)); in in6_control() 1630 SOCKADDR_COPY(&ia->ia_prefixmask, &ifr->ifr_addr, in in6_control()
|
| H A D | nd6_nbr.c | 1541 SOCKADDR_COPY(&dst_sa, &ro.ro_dst, sizeof(dst_sa)); in nd6_na_output() 2520 SOCKADDR_COPY(sa, sdl, sa->sa_len); in nd6_alt_node_addr_decompose() 2685 SOCKADDR_COPY(rt->rt_gateway, sdl, SDL(rt->rt_gateway)->sdl_len); in nd6_alt_node_absent()
|
| H A D | in6_ifattach.c | 850 SOCKADDR_COPY(&ifra0->ifra_addr, sin6, sizeof(struct sockaddr_in6)); in in6_ifattach_aliasreq()
|
| H A D | ip6_output.c | 398 SOCKADDR_COPY(&dn_tag->dn_dst6, &dst_buf, sizeof(dst_buf)); in ip6_output_list() 3485 SOCKADDR_COPY(src->ip6po_nexthop, dst->ip6po_nexthop, in copypktopts() 3937 SOCKADDR_COPY(buf, opt->ip6po_nexthop, *buf); in ip6_setpktopt()
|
| H A D | nd6.c | 1922 SOCKADDR_COPY(&itr->pr.ndpr_prefix, &nd6_ra_msg_data.prefix.prefix, in nd6_post_msg() 2968 SOCKADDR_COPY(macp, LLADDR(SDL(gate)), ifp->if_addrlen); in nd6_rtrequest() 4522 SOCKADDR_COPY(sdl, ll_dest, copy_len); in nd6_lookup_ipv6()
|
| /xnu-11417.140.69/bsd/skywalk/nexus/netif/ |
| H A D | nx_netif_netagent.c | 769 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-11417.140.69/bsd/netkey/ |
| H A D | key.c | 375 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); \ 846 SOCKADDR_COPY(isrc, &spidx.src, isrc->sa_len); in key_gettunnel() 847 SOCKADDR_COPY(idst, &spidx.dst, idst->sa_len); in key_gettunnel() [all …]
|