| /xnu-8019.80.24/bsd/netinet/ |
| H A D | ip_icmp.c | 452 inet_ntop(AF_INET, &ip->ip_dst, dst_str, sizeof(dst_str)); in icmp_input() 586 if (IN_MULTICAST(ntohl(icp->icmp_ip.ip_dst.s_addr))) { in icmp_input() 595 icmpsrc.sin_addr = icp->icmp_ip.ip_dst; in icmp_input() 638 if ((IN_LOCAL_GROUP(ntohl(ip->ip_dst.s_addr)) || in icmp_input() 639 in_broadcast(ip->ip_dst, m->m_pkthdr.rcvif)) && in icmp_input() 648 inet_ntop(AF_INET, &ip->ip_dst, dst_str, sizeof(dst_str)); in icmp_input() 699 switch (ip->ip_dst.s_addr) { in icmp_input() 706 icmpdst.sin_addr = ip->ip_dst; in icmp_input() 772 inet_ntop(AF_INET, &icp->icmp_ip.ip_dst, dst_str, sizeof(dst_str)); in icmp_input() 777 icmpsrc.sin_addr = icp->icmp_ip.ip_dst; in icmp_input() [all …]
|
| H A D | ip_input.c | 726 tbl[pkttbl_idx].pkte_daddr.s_addr = ip->ip_dst.s_addr; in ip_chain_insert() 729 if ((ip->ip_dst.s_addr == tbl[pkttbl_idx].pkte_daddr.s_addr) && in ip_chain_insert() 1043 KERNEL_DEBUG(DBG_LAYER_BEG, ip->ip_dst.s_addr, ip->ip_src.s_addr, in ip_input_first_pass() 1075 if ((ntohl(ip->ip_dst.s_addr) >> IN_CLASSA_NSHIFT) == IN_LOOPBACKNET || in ip_input_first_pass() 1101 if ((IN_LINKLOCAL(ntohl(ip->ip_dst.s_addr)) || in ip_input_first_pass() 1283 if (ip->ip_dst.s_addr == (u_int32_t)INADDR_BROADCAST || in ip_input_check_interface() 1284 ip->ip_dst.s_addr == INADDR_ANY) { in ip_input_check_interface() 1293 TAILQ_FOREACH(ia, INADDR_HASH(ip->ip_dst.s_addr), ia_hash) { in ip_input_check_interface() 1294 if (IA_SIN(ia)->sin_addr.s_addr == ip->ip_dst.s_addr) { in ip_input_check_interface() 1348 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 | 347 ip->ip_src.s_addr, ip->ip_dst.s_addr, uh->uh_ulen); in udp_input() 376 isbroadcast = in_broadcast(ip->ip_dst, ifp); in udp_input() 378 if (IN_MULTICAST(ntohl(ip->ip_dst.s_addr)) || isbroadcast) { in udp_input() 429 (ntohl(ip->ip_dst.s_addr) != in udp_input() 460 ip->ip_dst.s_addr) { in udp_input() 474 if (isbroadcast == 0 && (ntohl(ip->ip_dst.s_addr) != in udp_input() 488 group.sin_addr = ip->ip_dst; in udp_input() 514 uh->uh_dport, uh->uh_sport, &ip->ip_dst, in udp_input() 599 check_esp = key_checksa_present(AF_INET, (caddr_t)&ip->ip_dst, in udp_input() 649 ip->ip_dst, uh->uh_dport, 1, ifp); in udp_input() [all …]
|
| H A D | raw_ip.c | 218 inp->inp_laddr.s_addr != ip->ip_dst.s_addr) { in rip_input() 235 &ip->ip_dst, &ip->ip_src, ifp, 0, NULL, NULL, NULL, NULL)) { in rip_input() 288 &ip->ip_dst, &ip->ip_src, ifp, 0, NULL, NULL, NULL, NULL)) { in rip_input() 509 ip->ip_dst.s_addr = dst; in rip_output() 568 to.sin_addr.s_addr = ip->ip_dst.s_addr; in rip_output() 584 … &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.h | 114 struct in_addr ip_src, ip_dst; /* source and dest address */ member
|
| H A D | in_gif.c | 173 iphdr.ip_dst = sin_dst->sin_addr; in in_gif_output() 365 if (src->sin_addr.s_addr == ip.ip_dst.s_addr) { in gif_encapcheck4()
|
| H A D | ip_output.c | 491 pkt_dst = ip->ip_dst; in ip_output_list() 535 pkt_dst = ip->ip_dst; in ip_output_list() 573 KERNEL_DEBUG(DBG_LAYER_BEG, ip->ip_dst.s_addr, ip->ip_src.s_addr, in ip_output_list() 734 !(IN_LINKLOCAL(ntohl(ip->ip_dst.s_addr)))); in ip_output_list() 1104 pkt_dst = ip->ip_dst; in ip_output_list() 1112 IN_LINKLOCAL(ntohl(ip->ip_dst.s_addr))) { in ip_output_list() 1529 (ntohl(ip->ip_dst.s_addr) >> IN_CLASSA_NSHIFT) == IN_LOOPBACKNET)) { in ip_output_list() 1721 KERNEL_DEBUG(DBG_LAYER_END, ip->ip_dst.s_addr, in ip_output_list() 2152 ip->ip_dst = p->ipopt_dst; in ip_insertoptions() 3045 struct in_addr dst = ip->ip_dst; in in_selectsrcif()
|
| H A D | in_cksum.c | 254 sum += in_pseudo(ip->ip_src.s_addr, ip->ip_dst.s_addr, in inet_cksum() 300 sum += in_pseudo(ip->ip_src.s_addr, ip->ip_dst.s_addr, in inet_cksum_buffer()
|
| H A D | tcp_input.c | 2014 (((ip->ip_src.s_addr & 0xffff) << 16) | (ip->ip_dst.s_addr & 0xffff)), in tcp_input() 2134 ip->ip_dst, th->th_dport, 1, m->m_pkthdr.rcvif); in tcp_input() 2161 inet_ntop(AF_INET, &ip->ip_dst, dbuf, sizeof(dbuf)); in tcp_input() 2185 (!isipv6 && ip->ip_dst.s_addr != ip->ip_src.s_addr))) { in tcp_input() 2244 inp->inp_laddr.s_addr != ip->ip_dst.s_addr || in tcp_input() 2330 th->th_dport, th->th_sport, &ip->ip_dst, &ip->ip_src, in tcp_input() 2436 } else if (ip->ip_dst.s_addr == ip->ip_src.s_addr) { in tcp_input() 2459 } else if (IN_MULTICAST(ntohl(ip->ip_dst.s_addr)) || in tcp_input() 2462 in_broadcast(ip->ip_dst, m->m_pkthdr.rcvif)) { in tcp_input() 2528 sin->sin_addr = ip->ip_dst; in tcp_input() [all …]
|
| H A D | tcp_log.c | 649 ntohl(ip->ip_dst.s_addr) == INADDR_LOOPBACK) { in tcp_log_pkt_addresses() 660 inet_ntop(AF_INET, (void *)&ip->ip_dst.s_addr, fbuf, fbuflen); in tcp_log_pkt_addresses() 662 inet_ntop(AF_INET, (void *)&ip->ip_dst.s_addr, lbuf, lbuflen); in tcp_log_pkt_addresses()
|
| H A D | igmp.c | 853 if (!in_allhosts(ip->ip_dst) || !in_nullhost(igmp->igmp_group)) { in igmp_input_v1_query() 947 if (!in_allhosts(ip->ip_dst)) { in igmp_input_v2_query() 1154 if (!in_allhosts(ip->ip_dst) || nsrc > 0) { in igmp_input_v3_query() 1395 !in_hosteq(igmp->igmp_group, ip->ip_dst))) { in igmp_input_v1_report() 1539 !in_hosteq(igmp->igmp_group, ip->ip_dst)) { in igmp_input_v2_report() 2607 ip->ip_dst.s_addr = htonl(INADDR_ALLRTRS_GROUP); in igmp_v1v2_queue_report() 2609 ip->ip_dst = inm->inm_addr; in igmp_v1v2_queue_report() 4051 ip->ip_dst.s_addr = htonl(INADDR_ALLRPTS_GROUP); in igmp_v3_encap_report()
|
| H A D | ip_encap.c | 162 d.sin_addr = ip->ip_dst; in encap4_input()
|
| H A D | in.h | 449 struct in_addr ip_dst; /* first hop, 0 w/o src rt */ member
|
| /xnu-8019.80.24/bsd/net/ |
| H A D | if_stf.c | 420 if (bcmp(GET_V4(&ia6->ia_addr.sin6_addr), &ip.ip_dst, in stf_encapcheck() 421 sizeof(ip.ip_dst)) != 0) { in stf_encapcheck() 597 bcopy(in4, &ip->ip_dst, sizeof(ip->ip_dst)); in stf_pre_output() 610 bcmp(&dst4->sin_addr, &ip->ip_dst, sizeof(ip->ip_dst)) != 0) { in stf_pre_output() 615 bcopy(&ip->ip_dst, &dst4->sin_addr, sizeof(dst4->sin_addr)); in stf_pre_output() 778 if (stf_checkaddr4(sc, &ip->ip_dst, NULL) < 0 || in in_stf_input()
|
| H A D | nat464_utils.c | 328 ptr = PTR_IP(ip_dst); in nat464_translate_icmp() 436 ptr < PTR_IP(ip_dst)) { in nat464_translate_icmp() 438 } else if (ptr >= PTR_IP(ip_dst) && in nat464_translate_icmp() 524 ip4->ip_dst = dst->natv4addr; in nat464_translate_icmp_ip() 533 inet_ntop(AF_INET, (void *)&ip4->ip_dst, buf, sizeof(buf)))); in nat464_translate_icmp_ip() 678 ip4->ip_dst = dst_v4; in nat464_translate_64() 709 inet_ntop(AF_INET, (void *)&ip4->ip_dst, buf2, sizeof(buf2)))); in nat464_translate_64() 806 ndst = &iph->ip_dst; in nat464_translate_proto()
|
| H A D | packet_mangler.c | 786 if (ip.ip_dst.s_addr != raddr.sin_addr.s_addr) { in pktmnglr_ipfilter_output() 863 if (ip.ip_dst.s_addr != laddr.sin_addr.s_addr) { in pktmnglr_ipfilter_input()
|
| /xnu-8019.80.24/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-8019.80.24/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 | 1314 bcopy(&ip->ip_dst, &sin->sin_addr, sizeof(ip->ip_dst)); in ipsec4_setspidx_ipaddr() 2392 &ip->ip_dst, sizeof(ip->ip_dst)); in ipsec4_encapsulate() 2551 &ip->ip_dst, sizeof(ip->ip_dst)); in ipsec64_encapsulate() 3055 d = (u_int8_t *)(&ip->ip_dst); in ipsec4_logpacketstr() 3248 dst4->sin_addr.s_addr != ip->ip_dst.s_addr) { in ipsec4_output_internal() 3257 dst4->sin_addr = ip->ip_dst; in ipsec4_output_internal() 3370 memcpy(&dst.sin_addr, &ip->ip_dst, sizeof(dst.sin_addr)); in ipsec4_interface_output() 3475 bcopy(&ip->ip_dst, &sin->sin_addr, in ipsec4_output() 3829 dst4->sin_addr.s_addr != ip->ip_dst.s_addr) { in ipsec6_output_tunnel_internal() 3838 dst4->sin_addr = ip->ip_dst; in ipsec6_output_tunnel_internal() [all …]
|
| H A D | ah_input.c | 162 (caddr_t)&ip->ip_src, (caddr_t)&ip->ip_dst, IFSCOPE_NONE, in ah4_input() 409 (caddr_t)&ip->ip_src, (caddr_t)&ip->ip_dst)) { in ah4_input() 452 ipaddr->sin_addr = ip->ip_dst; in ah4_input()
|
| H A D | esp_input.c | 274 (caddr_t)&ip->ip_src, (caddr_t)&ip->ip_dst, IFSCOPE_NONE, in esp4_input_extended() 598 (caddr_t)&ip->ip_src, (caddr_t)&ip->ip_dst)) { in esp4_input_extended() 612 ipaddr->sin_addr = ip->ip_dst; in esp4_input_extended() 1344 (caddr_t)&ip->ip_src, (caddr_t)&ip->ip_dst)) { in esp6_input_extended() 1358 ipaddr->sin_addr = ip->ip_dst; in esp6_input_extended()
|
| /xnu-8019.80.24/bsd/skywalk/nexus/netif/ |
| H A D | nx_netif_gso.c | 487 struct in_addr ip_src, ip_dst; in netif_gso_ip_tcp_init_state() local 500 bcopy(&state->hdr.ip->ip_dst, &ip_dst, sizeof(ip_dst)); in netif_gso_ip_tcp_init_state() 502 ip_dst.s_addr, 0); in netif_gso_ip_tcp_init_state()
|
| /xnu-8019.80.24/tests/ |
| H A D | net_bridge.c | 818 inet_ptrtop(AF_INET, &ip_udp->ip.ip_dst, in ip_frame_validate() 1037 bcopy(&dst_ip, &ip_udp->ip.ip_dst, sizeof(dst_ip)); in ethernet_udp4_frame_populate() 2492 struct in_addr ip_dst; in mac_nat_test_arp_out() local 2495 ip_dst = get_external_ipv4_address(); in mac_nat_test_arp_out() 2511 ip_dst); in mac_nat_test_arp_out() 2532 struct in_addr ip_dst; in mac_nat_send_arp_response() local 2534 get_ipv4_address(port->unit, j, &ip_dst); in mac_nat_send_arp_response() 2537 port->ifname, inet_ntoa(ip_dst)); in mac_nat_send_arp_response() 2544 ip_dst); in mac_nat_send_arp_response() 2649 struct in_addr ip_dst = { INADDR_BROADCAST }; in mac_nat_test_dhcp() local [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-8019.80.24/bsd/skywalk/nexus/flowswitch/flow/ |
| H A D | flow_classifier.c | 126 (offsetof(struct ip, ip_dst) - offsetof(struct ip, ip_src))); in flow_pkt_classify()
|