| /xnu-11417.121.6/bsd/netinet/ |
| H A D | ip_icmp.c | 465 inet_ntop(AF_INET, &ip->ip_dst, dst_str, sizeof(dst_str)); in icmp_input() 601 if (IN_MULTICAST(ntohl(icp->icmp_ip.ip_dst.s_addr))) { in icmp_input() 610 icmpsrc.sin_addr = icp->icmp_ip.ip_dst; in icmp_input() 653 if ((IN_LOCAL_GROUP(ntohl(ip->ip_dst.s_addr)) || in icmp_input() 654 in_broadcast(ip->ip_dst, m->m_pkthdr.rcvif)) && in icmp_input() 663 inet_ntop(AF_INET, &ip->ip_dst, dst_str, sizeof(dst_str)); in icmp_input() 704 switch (ip->ip_dst.s_addr) { in icmp_input() 711 icmpdst.sin_addr = ip->ip_dst; in icmp_input() 777 inet_ntop(AF_INET, &icp->icmp_ip.ip_dst, dst_str, sizeof(dst_str)); in icmp_input() 782 icmpsrc.sin_addr = icp->icmp_ip.ip_dst; in icmp_input() [all …]
|
| H A D | ip_input.c | 737 tbl[pkttbl_idx].pkte_daddr.s_addr = ip->ip_dst.s_addr; in ip_chain_insert() 740 if ((ip->ip_dst.s_addr == tbl[pkttbl_idx].pkte_daddr.s_addr) && in ip_chain_insert() 1055 KERNEL_DEBUG(DBG_LAYER_BEG, ip->ip_dst.s_addr, ip->ip_src.s_addr, in ip_input_first_pass() 1093 if ((ntohl(ip->ip_dst.s_addr) >> IN_CLASSA_NSHIFT) == IN_LOOPBACKNET || in ip_input_first_pass() 1120 if ((IN_LINKLOCAL(ntohl(ip->ip_dst.s_addr)) || in ip_input_first_pass() 1302 if (ip->ip_dst.s_addr == (u_int32_t)INADDR_BROADCAST || in ip_input_check_interface() 1303 ip->ip_dst.s_addr == INADDR_ANY) { in ip_input_check_interface() 1312 TAILQ_FOREACH(ia, INADDR_HASH(ip->ip_dst.s_addr), ia_hash) { in ip_input_check_interface() 1313 if (IA_SIN(ia)->sin_addr.s_addr == ip->ip_dst.s_addr) { in ip_input_check_interface() 1367 if (satosin(&ia->ia_broadaddr)->sin_addr.s_addr == ip->ip_dst.s_addr || in ip_input_check_interface() [all …]
|
| H A D | udp_usrreq.c | 369 ip->ip_src.s_addr, ip->ip_dst.s_addr, uh->uh_ulen); in udp_input() 400 isbroadcast = in_broadcast(ip->ip_dst, ifp); in udp_input() 402 if (IN_MULTICAST(ntohl(ip->ip_dst.s_addr)) || isbroadcast) { in udp_input() 453 (ntohl(ip->ip_dst.s_addr) != in udp_input() 484 ip->ip_dst.s_addr) { in udp_input() 498 if (isbroadcast == 0 && (ntohl(ip->ip_dst.s_addr) != in udp_input() 512 group.sin_addr = ip->ip_dst; in udp_input() 538 uh->uh_dport, uh->uh_sport, &ip->ip_dst, in udp_input() 634 ipsec_fill_ip_sockaddr_4_6(&dst, ip->ip_dst, uh->uh_dport); in udp_input() 684 ip->ip_dst, uh->uh_dport, 1, ifp); in udp_input() [all …]
|
| H A D | udp_log.c | 499 ntohl(ip->ip_dst.s_addr) == INADDR_LOOPBACK) { in udp_log_pkt_addresses() 510 inet_ntop(AF_INET, (void *)&ip->ip_dst.s_addr, fbuf, fbuflen); in udp_log_pkt_addresses() 512 inet_ntop(AF_INET, (void *)&ip->ip_dst.s_addr, lbuf, lbuflen); in udp_log_pkt_addresses()
|
| H A D | ip.h | 114 struct in_addr ip_src, ip_dst; /* source and dest address */ member
|
| H A D | in_gif.c | 172 iphdr.ip_dst = sin_dst->sin_addr; in in_gif_output() 364 if (src->sin_addr.s_addr == ip.ip_dst.s_addr) { in gif_encapcheck4()
|
| H A D | raw_ip.c | 205 &ip->ip_dst, &ip->ip_src, ifp, 0, NULL, NULL, NULL, NULL)) { in rip_inp_input() 285 inp->inp_laddr.s_addr != ip->ip_dst.s_addr) { in rip_input_inner() 554 ip->ip_dst.s_addr = dst; in rip_output() 615 to.sin_addr.s_addr = ip->ip_dst.s_addr; in rip_output() 631 … &ip->ip_src, &ip->ip_dst, NULL, 0, &policy_id, &route_rule_id, &skip_policy_id, &pass_flags)) { in rip_output()
|
| H A D | ip_output.c | 512 pkt_dst = ip->ip_dst; in ip_output_list() 556 pkt_dst = ip->ip_dst; in ip_output_list() 599 KERNEL_DEBUG(DBG_LAYER_BEG, ip->ip_dst.s_addr, ip->ip_src.s_addr, in ip_output_list() 772 !(IN_LINKLOCAL(ntohl(ip->ip_dst.s_addr)))); in ip_output_list() 1155 pkt_dst = ip->ip_dst; in ip_output_list() 1163 IN_LINKLOCAL(ntohl(ip->ip_dst.s_addr))) { in ip_output_list() 1614 (ntohl(ip->ip_dst.s_addr) >> IN_CLASSA_NSHIFT) == IN_LOOPBACKNET)) { in ip_output_list() 1809 KERNEL_DEBUG(DBG_LAYER_END, ip->ip_dst.s_addr, in ip_output_list() 2239 ip->ip_dst = p->ipopt_dst; in ip_insertoptions() 3135 struct in_addr dst = ip->ip_dst; in in_selectsrcif()
|
| H A D | in_cksum.c | 259 sum += in_pseudo(ip->ip_src.s_addr, ip->ip_dst.s_addr, in inet_cksum() 305 sum += in_pseudo(ip->ip_src.s_addr, ip->ip_dst.s_addr, in inet_cksum_buffer()
|
| H A D | igmp.c | 868 if (!in_allhosts(ip->ip_dst) || !in_nullhost(igmp->igmp_group)) { in igmp_input_v1_query() 963 if (!in_allhosts(ip->ip_dst)) { in igmp_input_v2_query() 1169 if (!in_allhosts(ip->ip_dst) || nsrc > 0) { in igmp_input_v3_query() 1412 !in_hosteq(igmp->igmp_group, ip->ip_dst))) { in igmp_input_v1_report() 1556 !in_hosteq(igmp->igmp_group, ip->ip_dst)) { in igmp_input_v2_report() 2715 ip->ip_dst.s_addr = htonl(INADDR_ALLRTRS_GROUP); in igmp_v1v2_queue_report() 2717 ip->ip_dst = inm->inm_addr; in igmp_v1v2_queue_report() 4181 ip->ip_dst.s_addr = htonl(INADDR_ALLRPTS_GROUP); in igmp_v3_encap_report()
|
| H A D | tcp_input.c | 2175 (((ip->ip_src.s_addr & 0xffff) << 16) | (ip->ip_dst.s_addr & 0xffff)), in tcp_input() 2298 ip->ip_dst, th->th_dport, 1, m->m_pkthdr.rcvif); in tcp_input() 2325 inet_ntop(AF_INET, &ip->ip_dst, dbuf, sizeof(dbuf)); in tcp_input() 2349 (!isipv6 && ip->ip_dst.s_addr != ip->ip_src.s_addr))) { in tcp_input() 2416 inp->inp_laddr.s_addr != ip->ip_dst.s_addr || in tcp_input() 2506 th->th_dport, th->th_sport, &ip->ip_dst, &ip->ip_src, in tcp_input() 2617 } else if (ip->ip_dst.s_addr == ip->ip_src.s_addr) { in tcp_input() 2643 } else if (IN_MULTICAST(ntohl(ip->ip_dst.s_addr)) || in tcp_input() 2646 in_broadcast(ip->ip_dst, m->m_pkthdr.rcvif)) { in tcp_input() 2714 sin->sin_addr = ip->ip_dst; in tcp_input() [all …]
|
| H A D | tcp_log.c | 731 ntohl(ip->ip_dst.s_addr) == INADDR_LOOPBACK) { in tcp_log_pkt_addresses() 742 inet_ntop(AF_INET, (void *)&ip->ip_dst.s_addr, fbuf, fbuflen); in tcp_log_pkt_addresses() 744 inet_ntop(AF_INET, (void *)&ip->ip_dst.s_addr, lbuf, lbuflen); in tcp_log_pkt_addresses()
|
| H A D | in.h | 408 struct in_addr ip_dst; /* first hop, 0 w/o src rt */ member
|
| /xnu-11417.121.6/bsd/net/ |
| H A D | if_stf.c | 418 if (bcmp(GET_V4(&ia6->ia_addr.sin6_addr), &ip.ip_dst, in stf_encapcheck() 419 sizeof(ip.ip_dst)) != 0) { in stf_encapcheck() 595 bcopy(in4, &ip->ip_dst, sizeof(ip->ip_dst)); in stf_pre_output() 608 bcmp(&dst4->sin_addr, &ip->ip_dst, sizeof(ip->ip_dst)) != 0) { in stf_pre_output() 613 bcopy(&ip->ip_dst, &dst4->sin_addr, sizeof(dst4->sin_addr)); in stf_pre_output() 776 if (stf_checkaddr4(sc, &ip->ip_dst, NULL) < 0 || in in_stf_input()
|
| H A D | nat464_utils.c | 340 ptr = PTR_IP(ip_dst); in nat464_translate_icmp() 448 ptr < PTR_IP(ip_dst)) { in nat464_translate_icmp() 450 } else if (ptr >= PTR_IP(ip_dst) && in nat464_translate_icmp() 536 ip4->ip_dst = dst->natv4addr; in nat464_translate_icmp_ip() 545 inet_ntop(AF_INET, (void *)&ip4->ip_dst, buf, sizeof(buf)))); in nat464_translate_icmp_ip() 690 ip4->ip_dst = dst_v4; in nat464_translate_64() 721 inet_ntop(AF_INET, (void *)&ip4->ip_dst, buf2, sizeof(buf2)))); in nat464_translate_64() 818 ndst = &iph->ip_dst; in nat464_translate_proto()
|
| H A D | packet_mangler.c | 739 if (ip.ip_dst.s_addr != raddr.sin_addr.s_addr) { in pktmnglr_ipfilter_output() 816 if (ip.ip_dst.s_addr != laddr.sin_addr.s_addr) { in pktmnglr_ipfilter_input()
|
| /xnu-11417.121.6/bsd/dev/dtrace/scripts/ |
| H A D | ip.d | 83 ip_daddr = (ip != NULL) ? inet_ntoa((uint32_t *)&ip->ip_dst.s_addr) : "<null>"; 112 inet_ntoa((uint32_t *)&((struct ip*)i)->ip_dst.s_addr) : ((((*(uint8_t *)i) >> 4) == 6) ? 180 ipv4_dst = (ip != NULL) ? ip->ip_dst.s_addr : 0; 182 ipv4_daddr = (ip != NULL) ? inet_ntoa((uint32_t *)&ip->ip_dst.s_addr) : "<null>";
|
| /xnu-11417.121.6/bsd/netinet6/ |
| H A D | ah_output.c | 205 (u_int32_t)ntohl(ip->ip_dst.s_addr), in ah4_output() 341 dst.s_addr = ip->ip_dst.s_addr; in ah4_output() 342 ip->ip_dst.s_addr = finaldst->s_addr; in ah4_output() 361 ip->ip_dst.s_addr = dst.s_addr; in ah4_output()
|
| H A D | ipsec.c | 1305 bcopy(&ip->ip_dst, &sin->sin_addr, sizeof(ip->ip_dst)); in ipsec4_setspidx_ipaddr() 2367 &ip->ip_dst, sizeof(ip->ip_dst)); in ipsec4_encapsulate() 2529 &ip->ip_dst, sizeof(ip->ip_dst)); in ipsec64_encapsulate() 3038 d = (u_int8_t *)(&ip->ip_dst); in ipsec4_logpacketstr() 3231 dst4->sin_addr.s_addr != ip->ip_dst.s_addr) { in ipsec4_output_internal() 3240 dst4->sin_addr = ip->ip_dst; in ipsec4_output_internal() 3368 dst.sin_addr.s_addr = ip->ip_dst.s_addr; in ipsec4_interface_kpipe_output() 3640 memcpy(&dst.sin_addr, &ip->ip_dst, sizeof(dst.sin_addr)); in ipsec4_interface_output() 3745 bcopy(&ip->ip_dst, &sin->sin_addr, in ipsec4_output() 4104 dst4->sin_addr.s_addr != ip->ip_dst.s_addr) { in ipsec6_output_tunnel_internal() [all …]
|
| H A D | ah_input.c | 164 ipsec_fill_ip_sockaddr_4_6(&dst, ip->ip_dst, 0); in ah4_input() 412 (caddr_t)&ip->ip_src, (caddr_t)&ip->ip_dst)) { in ah4_input() 455 ipaddr->sin_addr = ip->ip_dst; in ah4_input()
|
| H A D | esp_input.c | 280 ipsec_fill_ip_sockaddr_4_6(&dst, ip->ip_dst, 0); in esp4_input_extended() 615 (caddr_t)&ip->ip_src, (caddr_t)&ip->ip_dst)) { in esp4_input_extended() 629 ipaddr->sin_addr = ip->ip_dst; in esp4_input_extended() 1364 (caddr_t)&ip->ip_src, (caddr_t)&ip->ip_dst)) { in esp6_input_extended() 1378 ipaddr->sin_addr = ip->ip_dst; in esp6_input_extended() 1777 ipsec_fill_ip_sockaddr_4_6(&dst, ip_hdr->ip_dst, 0); in esp_kpipe_input()
|
| /xnu-11417.121.6/bsd/skywalk/nexus/netif/ |
| H A D | nx_netif_gso.c | 581 struct in_addr ip_src, ip_dst; in netif_gso_ip_tcp_init_state() local 601 bcopy(&state->hdr.ip->ip_dst, &ip_dst, sizeof(ip_dst)); in netif_gso_ip_tcp_init_state() 603 ip_dst.s_addr, 0); in netif_gso_ip_tcp_init_state()
|
| /xnu-11417.121.6/tests/ |
| H A D | net_bridge.c | 399 inet_ptrtop(AF_INET, &ip_udp->ip.ip_dst, in ip_frame_validate() 1936 struct in_addr ip_dst; in mac_nat_test_arp_out() local 1939 ip_dst = get_external_ipv4_address(); in mac_nat_test_arp_out() 1955 ip_dst); in mac_nat_test_arp_out() 1976 struct in_addr ip_dst; in mac_nat_send_arp_response() local 1978 get_ipv4_address(port->unit, j, &ip_dst); in mac_nat_send_arp_response() 1981 port->ifname, inet_ntoa(ip_dst)); in mac_nat_send_arp_response() 1988 ip_dst); in mac_nat_send_arp_response() 2076 struct in_addr ip_dst = { INADDR_BROADCAST }; in mac_nat_test_dhcp() local 2109 (union ifbrip *)&ip_dst, in mac_nat_test_dhcp() [all …]
|
| H A D | icmp_fragmented_payload.c | 258 memcpy(&(pcb->inner_ip_hdr->ip_dst), &(pcb->in4addr_remote), sizeof(struct in_addr)); in icmp4_pcb_set_payload()
|
| /xnu-11417.121.6/bsd/skywalk/nexus/flowswitch/flow/ |
| H A D | flow_track.c | 797 ip->ip_dst = fe->fe_key.fk_dst4; in flow_track_abort_tcp() 800 ip->ip_dst = rst_pkt->pkt_flow_ipv4_dst; in flow_track_abort_tcp() 971 ip->ip_dst = fe->fe_key.fk_dst4; in flow_track_abort_quic()
|