Home
last modified time | relevance | path

Searched refs:ip_dst (Results 1 – 25 of 46) sorted by relevance

12

/xnu-11215.81.4/bsd/netinet/
H A Dip_icmp.c465 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 Dip_input.c737 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 Dudp_usrreq.c366 ip->ip_src.s_addr, ip->ip_dst.s_addr, uh->uh_ulen); in udp_input()
395 isbroadcast = in_broadcast(ip->ip_dst, ifp); in udp_input()
397 if (IN_MULTICAST(ntohl(ip->ip_dst.s_addr)) || isbroadcast) { in udp_input()
448 (ntohl(ip->ip_dst.s_addr) != in udp_input()
479 ip->ip_dst.s_addr) { in udp_input()
493 if (isbroadcast == 0 && (ntohl(ip->ip_dst.s_addr) != in udp_input()
507 group.sin_addr = ip->ip_dst; in udp_input()
533 uh->uh_dport, uh->uh_sport, &ip->ip_dst, in udp_input()
627 ipsec_fill_ip_sockaddr_4_6(&dst, ip->ip_dst, uh->uh_dport); in udp_input()
677 ip->ip_dst, uh->uh_dport, 1, ifp); in udp_input()
[all …]
H A Dip.h114 struct in_addr ip_src, ip_dst; /* source and dest address */ member
H A Din_gif.c172 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 Draw_ip.c205 &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()
551 ip->ip_dst.s_addr = dst; in rip_output()
612 to.sin_addr.s_addr = ip->ip_dst.s_addr; in rip_output()
628 … &ip->ip_src, &ip->ip_dst, NULL, 0, &policy_id, &route_rule_id, &skip_policy_id, &pass_flags)) { in rip_output()
H A Dip_output.c506 pkt_dst = ip->ip_dst; in ip_output_list()
550 pkt_dst = ip->ip_dst; in ip_output_list()
593 KERNEL_DEBUG(DBG_LAYER_BEG, ip->ip_dst.s_addr, ip->ip_src.s_addr, in ip_output_list()
760 !(IN_LINKLOCAL(ntohl(ip->ip_dst.s_addr)))); in ip_output_list()
1137 pkt_dst = ip->ip_dst; in ip_output_list()
1145 IN_LINKLOCAL(ntohl(ip->ip_dst.s_addr))) { in ip_output_list()
1584 (ntohl(ip->ip_dst.s_addr) >> IN_CLASSA_NSHIFT) == IN_LOOPBACKNET)) { in ip_output_list()
1779 KERNEL_DEBUG(DBG_LAYER_END, ip->ip_dst.s_addr, in ip_output_list()
2209 ip->ip_dst = p->ipopt_dst; in ip_insertoptions()
3105 struct in_addr dst = ip->ip_dst; in in_selectsrcif()
H A Din_cksum.c259 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 Digmp.c868 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 Dtcp_input.c2170 (((ip->ip_src.s_addr & 0xffff) << 16) | (ip->ip_dst.s_addr & 0xffff)), in tcp_input()
2291 ip->ip_dst, th->th_dport, 1, m->m_pkthdr.rcvif); in tcp_input()
2318 inet_ntop(AF_INET, &ip->ip_dst, dbuf, sizeof(dbuf)); in tcp_input()
2342 (!isipv6 && ip->ip_dst.s_addr != ip->ip_src.s_addr))) { in tcp_input()
2401 inp->inp_laddr.s_addr != ip->ip_dst.s_addr || in tcp_input()
2485 th->th_dport, th->th_sport, &ip->ip_dst, &ip->ip_src, in tcp_input()
2589 } else if (ip->ip_dst.s_addr == ip->ip_src.s_addr) { in tcp_input()
2612 } else if (IN_MULTICAST(ntohl(ip->ip_dst.s_addr)) || in tcp_input()
2615 in_broadcast(ip->ip_dst, m->m_pkthdr.rcvif)) { in tcp_input()
2681 sin->sin_addr = ip->ip_dst; in tcp_input()
[all …]
H A Dtcp_log.c728 ntohl(ip->ip_dst.s_addr) == INADDR_LOOPBACK) { in tcp_log_pkt_addresses()
739 inet_ntop(AF_INET, (void *)&ip->ip_dst.s_addr, fbuf, fbuflen); in tcp_log_pkt_addresses()
741 inet_ntop(AF_INET, (void *)&ip->ip_dst.s_addr, lbuf, lbuflen); in tcp_log_pkt_addresses()
H A Din.h408 struct in_addr ip_dst; /* first hop, 0 w/o src rt */ member
/xnu-11215.81.4/bsd/net/
H A Dif_stf.c418 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 Dnat464_utils.c334 ptr = PTR_IP(ip_dst); in nat464_translate_icmp()
442 ptr < PTR_IP(ip_dst)) { in nat464_translate_icmp()
444 } else if (ptr >= PTR_IP(ip_dst) && in nat464_translate_icmp()
530 ip4->ip_dst = dst->natv4addr; in nat464_translate_icmp_ip()
539 inet_ntop(AF_INET, (void *)&ip4->ip_dst, buf, sizeof(buf)))); in nat464_translate_icmp_ip()
684 ip4->ip_dst = dst_v4; in nat464_translate_64()
715 inet_ntop(AF_INET, (void *)&ip4->ip_dst, buf2, sizeof(buf2)))); in nat464_translate_64()
812 ndst = &iph->ip_dst; in nat464_translate_proto()
H A Dpacket_mangler.c739 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-11215.81.4/bsd/dev/dtrace/scripts/
H A Dip.d83 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-11215.81.4/bsd/netinet6/
H A Dah_output.c205 (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 Dipsec.c1305 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 Dah_input.c164 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 Desp_input.c280 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-11215.81.4/bsd/skywalk/nexus/netif/
H A Dnx_netif_gso.c581 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-11215.81.4/tests/
H A Dnet_bridge.c399 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 Dicmp_fragmented_payload.c258 memcpy(&(pcb->inner_ip_hdr->ip_dst), &(pcb->in4addr_remote), sizeof(struct in_addr)); in icmp4_pcb_set_payload()
/xnu-11215.81.4/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_track.c797 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()
H A Dflow_classifier.c127 (offsetof(struct ip, ip_dst) - offsetof(struct ip, ip_src))); in flow_pkt_classify()

12