Searched refs:dst6 (Results 1 – 11 of 11) sorted by relevance
| /xnu-12377.61.12/tests/ |
| H A D | ipsec.m | 134 struct sockaddr_in6 *dst6 = (struct sockaddr_in6 *)(void *)(payload + tlen); 135 T_QUIET; T_ASSERT_EQ_INT(inet_pton(AF_INET6, dst, &dst6->sin6_addr), 1, "dst address fail"); 136 dst6->sin6_family = AF_INET6; 137 dst6->sin6_len = sizeof(*dst6); 138 uint16_t len = sizeof(*dst_address_payload) + PFKEY_ALIGN8(dst6->sin6_len); 140 tlen += PFKEY_ALIGN8(dst6->sin6_len);
|
| H A D | pfkey.c | 613 struct sockaddr_in6 *dst6 = (struct sockaddr_in6 *)(void *)(payload + tlen); in send_pkey_add_sa() local 614 T_QUIET; T_ASSERT_EQ_INT(inet_pton(AF_INET6, dst, &dst6->sin6_addr), 1, "dst address fail"); in send_pkey_add_sa() 615 dst6->sin6_family = AF_INET6; in send_pkey_add_sa() 616 dst6->sin6_len = sizeof(*dst6); in send_pkey_add_sa() 617 uint16_t len = sizeof(*dst_address_payload) + PFKEY_ALIGN8(dst6->sin6_len); in send_pkey_add_sa() 619 tlen += PFKEY_ALIGN8(dst6->sin6_len); in send_pkey_add_sa() 849 struct sockaddr_in6 *dst6 = (struct sockaddr_in6 *)(void *)(payload + tlen); in send_pkey_migrate_sa() local 850 T_QUIET; T_ASSERT_EQ_INT(inet_pton(AF_INET6, dst, &dst6->sin6_addr), 1, "dst address fail"); in send_pkey_migrate_sa() 851 dst6->sin6_family = AF_INET6; in send_pkey_migrate_sa() 852 dst6->sin6_len = sizeof(*dst6); in send_pkey_migrate_sa() [all …]
|
| /xnu-12377.61.12/bsd/net/ |
| H A D | if_stf.c | 509 const struct sockaddr_in6 *__single dst6; in stf_pre_output() local 526 dst6 = SIN6(dst); in stf_pre_output() 562 } else if (IN6_IS_ADDR_6TO4(&dst6->sin6_addr)) { in stf_pre_output() 563 in4 = GET_V4(&dst6->sin6_addr); in stf_pre_output()
|
| H A D | pf.c | 4331 struct sockaddr_in6 *dst6; in pf_calc_mss() local 4353 dst6 = (struct sockaddr_in6 *)(void *)&ro6.ro_dst; in pf_calc_mss() 4354 dst6->sin6_family = AF_INET6; in pf_calc_mss() 4355 dst6->sin6_len = sizeof(*dst6); in pf_calc_mss() 4356 dst6->sin6_addr = addr->v6addr; in pf_calc_mss() 9146 struct sockaddr_in6 *dst6; in pf_routable() local 9158 dst6 = (struct sockaddr_in6 *)&ro.ro_dst; in pf_routable() 9159 dst6->sin6_family = AF_INET6; in pf_routable() 9160 dst6->sin6_len = sizeof(*dst6); in pf_routable() 9161 dst6->sin6_addr = addr->v6addr; in pf_routable() [all …]
|
| H A D | necp.c | 13763 struct sockaddr_in6 *dst6 = SIN6(SA(&new_route->ro_dst)); in necp_packet_can_rebind_to_ifnet() local 13764 dst6->sin6_family = AF_INET6; in necp_packet_can_rebind_to_ifnet() 13765 dst6->sin6_len = sizeof(struct sockaddr_in6); in necp_packet_can_rebind_to_ifnet() 13766 dst6->sin6_addr = ip6->ip6_dst; in necp_packet_can_rebind_to_ifnet()
|
| /xnu-12377.61.12/bsd/netinet6/ |
| H A D | ipsec.c | 2539 struct sockaddr_in6* dst6; in ipsec6_update_routecache_and_output() local 2557 dst6 = SIN6(&ro6->ro_dst); in ipsec6_update_routecache_and_output() 2562 !IN6_ARE_ADDR_EQUAL(&dst6->sin6_addr, &ip6->ip6_dst)) { in ipsec6_update_routecache_and_output() 2569 SOCKADDR_ZERO(dst6, sizeof(*dst6)); in ipsec6_update_routecache_and_output() 2570 dst6->sin6_family = AF_INET6; in ipsec6_update_routecache_and_output() 2571 dst6->sin6_len = sizeof(*dst6); in ipsec6_update_routecache_and_output() 2572 dst6->sin6_addr = ip6->ip6_dst; in ipsec6_update_routecache_and_output() 2597 dst6 = SIN6(ro6->ro_rt->rt_gateway); in ipsec6_update_routecache_and_output() 2602 state->dst = SA(dst6); in ipsec6_update_routecache_and_output() 4028 struct sockaddr_in6* dst6; in ipsec6_output_tunnel_internal() local [all …]
|
| H A D | nd6_prproxy.c | 561 struct in6_addr *__single dst6 = &ro6->ro_dst.sin6_addr; in nd6_proxy_find_fwdroute() local 572 ip6_sprintf(dst6), in nd6_proxy_find_fwdroute() 606 dst6, dst_ifscope, &pr->ndpr_mask)) { in nd6_proxy_find_fwdroute() 656 ip6_sprintf(dst6)); in nd6_proxy_find_fwdroute() 678 ip6_sprintf(dst6)); in nd6_proxy_find_fwdroute() 688 ip6_sprintf(dst6)); in nd6_proxy_find_fwdroute()
|
| H A D | ip6_input.c | 668 struct sockaddr_in6 *__single dst6; in ip6_input_check_interface() local 670 dst6 = SIN6(&rin6->ro_dst); in ip6_input_check_interface() 671 dst6->sin6_len = sizeof(struct sockaddr_in6); in ip6_input_check_interface() 672 dst6->sin6_family = AF_INET6; in ip6_input_check_interface() 673 dst6->sin6_addr = ip6->ip6_dst; in ip6_input_check_interface() 675 dst6->sin6_scope_id = dst_ifscope; in ip6_input_check_interface()
|
| H A D | icmp6.c | 2508 struct in6_addr *dst6, in icmp6_redirect_diag() argument 2513 ip6_sprintf(src6), ip6_sprintf(dst6), ip6_sprintf(tgt6)); in icmp6_redirect_diag()
|
| /xnu-12377.61.12/bsd/netinet/ |
| H A D | tcp_timer.c | 2499 struct sockaddr_in6 dst6; in tcp_report_stats() local 2536 SOCKADDR_ZERO(&dst6, sizeof(dst6)); in tcp_report_stats() 2537 dst6.sin6_len = sizeof(dst6); in tcp_report_stats() 2538 dst6.sin6_family = AF_INET6; in tcp_report_stats() 2541 rt = rt_lookup(TRUE, SA(&dst6), NULL, in tcp_report_stats()
|
| H A D | tcp_subr.c | 3368 struct sockaddr_in6 *dst6; in tcp_rtlookup6() local 3371 dst6 = SIN6(&ro6->ro_dst); in tcp_rtlookup6() 3372 dst6->sin6_family = AF_INET6; in tcp_rtlookup6() 3373 dst6->sin6_len = sizeof(*dst6); in tcp_rtlookup6() 3374 dst6->sin6_addr = inp->in6p_faddr; in tcp_rtlookup6()
|