Searched refs:ip_dst (Results 1 - 25 of 31) sorted by relevance

12

/darwin-on-arm/xnu/bsd/net/
H A Dif_stf.c429 if (bcmp(GET_V4(&ia6->ia_addr.sin6_addr), &ip.ip_dst,
430 sizeof(ip.ip_dst)) != 0) {
596 bcopy(in4, &ip->ip_dst, sizeof(ip->ip_dst));
608 bcmp(&dst4->sin_addr, &ip->ip_dst, sizeof(ip->ip_dst)) != 0) {
612 bcopy(&ip->ip_dst, &dst4->sin_addr, sizeof(dst4->sin_addr));
780 if (stf_checkaddr4(sc, &ip->ip_dst, NULL) < 0 ||
H A Dif_utun_crypto_ipsec.c772 dst4->sin_addr.s_addr != ip->ip_dst.s_addr)) {
780 dst4->sin_addr = ip->ip_dst;
H A Dpf_norm.c442 key->fr_dstx.v4.s_addr = ip->ip_dst.s_addr;
533 (*frag)->fr_dstx.v4 = frent->fr_ip->ip_dst;
665 ip->ip_dst = (*frag)->fr_dstx.v4;
732 (*frag)->fr_dstx.v4 = h->ip_dst;
1559 (struct pf_addr *)&h->ip_dst.s_addr, AF_INET,
/darwin-on-arm/xnu/bsd/netinet/
H A Dip_icmp.c349 inet_ntop(AF_INET, &ip->ip_dst, ipv4str, sizeof(ipv4str)),
458 if (IN_MULTICAST(ntohl(icp->icmp_ip.ip_dst.s_addr)))
464 icmpsrc.sin_addr = icp->icmp_ip.ip_dst;
527 switch (ip->ip_dst.s_addr) {
535 icmpdst.sin_addr = ip->ip_dst;
570 dst = ntohl(icp->icmp_ip.ip_dst.s_addr);
604 inet_ntop(AF_INET, &icp->icmp_ip.ip_dst, buf, sizeof(buf)),
609 icmpsrc.sin_addr = icp->icmp_ip.ip_dst;
659 t = ip->ip_dst;
660 ip->ip_dst
[all...]
H A Dip_input.c792 KERNEL_DEBUG(DBG_LAYER_BEG, ip->ip_dst.s_addr,
814 if ((ntohl(ip->ip_dst.s_addr) >> IN_CLASSA_NSHIFT) == IN_LOOPBACKNET ||
823 if ((IN_LINKLOCAL(ntohl(ip->ip_dst.s_addr)) ||
1033 ip->ip_dst : args.fwa_next_hop->sin_addr;
1035 pkt_dst = ip->ip_dst;
1112 if (IN_MULTICAST(ntohl(ip->ip_dst.s_addr))) {
1148 IN_LOOKUP_MULTI(&ip->ip_dst, ifp, inm);
1158 if (ip->ip_dst.s_addr == (u_int32_t)INADDR_BROADCAST)
1160 if (ip->ip_dst.s_addr == INADDR_ANY)
1225 ip->ip_dst
[all...]
H A Dip.h105 struct in_addr ip_src,ip_dst; /* source and dest address */ member in struct:ip
H A Din_cksum.c168 sum = in_pseudo(iph->ip_src.s_addr, iph->ip_dst.s_addr,
204 sum = in_pseudo(iph->ip_src.s_addr, iph->ip_dst.s_addr,
H A Dudp_usrreq.c322 ip->ip_src.s_addr, ip->ip_dst.s_addr, uh->uh_ulen);
387 isbroadcast = in_broadcast(ip->ip_dst, ifp);
389 if (IN_MULTICAST(ntohl(ip->ip_dst.s_addr)) || isbroadcast) {
438 (ntohl(ip->ip_dst.s_addr) != INADDR_ALLHOSTS_GROUP) &&
460 ip->ip_dst.s_addr) {
474 if (isbroadcast == 0 && (ntohl(ip->ip_dst.s_addr) != INADDR_ALLHOSTS_GROUP)) {
487 group.sin_addr = ip->ip_dst;
627 ip->ip_dst, uh->uh_dport, 1, ifp);
641 inet_ntop(AF_INET, &ip->ip_dst, buf, sizeof(buf)),
646 ip->ip_dst
[all...]
H A Dtcp_lro.c136 *hash = LRO_HASH(ip_hdr->ip_src.s_addr, ip_hdr->ip_dst.s_addr,
151 (flow->lr_laddr.s_addr == ip_hdr->ip_dst.s_addr) &&
212 flow->lr_laddr.s_addr = ip_hdr->ip_dst.s_addr;
806 ip->ip_dst.s_addr, htonl(m->m_pkthdr.csum_data +
856 hash = LRO_HASH(ip_hdr->ip_src.s_addr, ip_hdr->ip_dst.s_addr,
866 (lf->lr_laddr.s_addr == ip_hdr->ip_dst.s_addr) &&
891 __func__, ip_hdr->ip_src.s_addr, ip_hdr->ip_dst.s_addr,
H A Dip_mroute.c1080 (u_int32_t)ntohl(ip->ip_src.s_addr), (u_int32_t)ntohl(ip->ip_dst.s_addr),
1111 ntohl(ip->ip_src.s_addr), ntohl(ip->ip_dst.s_addr), vifi,
1121 ntohl(ip->ip_src.s_addr), ntohl(ip->ip_dst.s_addr));
1131 ntohl(ip->ip_dst.s_addr) <= INADDR_MAX_LOCAL_GROUP)
1137 MFCFIND(ip->ip_src.s_addr, ip->ip_dst.s_addr, rt);
1163 (u_int32_t)ntohl(ip->ip_dst.s_addr));
1183 hash = MFCHASH(ip->ip_src.s_addr, ip->ip_dst.s_addr);
1186 (ip->ip_dst.s_addr == rt->mfc_mcastgrp.s_addr) &&
1234 rt->mfc_mcastgrp.s_addr = ip->ip_dst.s_addr;
1548 ip_copy->ip_dst
[all...]
H A Din_gif.c168 iphdr.ip_dst = sin_dst->sin_addr;
353 if (src->sin_addr.s_addr == ip.ip_dst.s_addr)
H A Dip_output.c430 pkt_dst = ip->ip_dst;
493 pkt_dst = args.fwa_next_hop ? args.fwa_next_hop->sin_addr : ip->ip_dst;
495 pkt_dst = ip->ip_dst;
533 KERNEL_DEBUG(DBG_LAYER_BEG, ip->ip_dst.s_addr,
677 !(IN_LINKLOCAL(ntohl(ip->ip_dst.s_addr))));
1039 pkt_dst = ip->ip_dst;
1046 if (IN_LINKLOCAL(ntohl(ip->ip_src.s_addr)) || IN_LINKLOCAL(ntohl(ip->ip_dst.s_addr))) {
1613 (ntohl(ip->ip_dst.s_addr) >> IN_CLASSA_NSHIFT) == IN_LOOPBACKNET)) {
1772 KERNEL_DEBUG(DBG_LAYER_END, ip->ip_dst.s_addr,
2210 ip->ip_dst
[all...]
H A Dtcp_input.c1280 ip->ip_dst.s_addr, htonl(m->m_pkthdr.csum_data +
1320 (((ip->ip_src.s_addr & 0xffff) << 16) | (ip->ip_dst.s_addr & 0xffff)),
1454 ip->ip_dst, th->th_dport, 0, m->m_pkthdr.rcvif);
1482 ip->ip_dst, th->th_dport, 1, m->m_pkthdr.rcvif);
1551 inet_ntop(AF_INET, &ip->ip_dst, dbuf, sizeof(dbuf));
1574 (!isipv6 && ip->ip_dst.s_addr != ip->ip_src.s_addr))
1576 ip->ip_dst.s_addr != ip->ip_src.s_addr
1725 if (ip->ip_dst.s_addr == ip->ip_src.s_addr)
1745 if (IN_MULTICAST(ntohl(ip->ip_dst.s_addr)) ||
1748 in_broadcast(ip->ip_dst,
[all...]
H A Digmp.c806 if (!in_allhosts(ip->ip_dst) || !in_nullhost(igmp->igmp_group)) {
896 if (!in_allhosts(ip->ip_dst))
1092 if (!in_allhosts(ip->ip_dst) || nsrc > 0) {
1327 !in_hosteq(igmp->igmp_group, ip->ip_dst))) {
1463 !in_hosteq(igmp->igmp_group, ip->ip_dst)) {
2430 ip->ip_dst.s_addr = htonl(INADDR_ALLRTRS_GROUP);
2432 ip->ip_dst = inm->inm_addr;
3788 ip->ip_dst.s_addr = htonl(INADDR_ALLRPTS_GROUP);
H A Din.h399 * The ip_dst is used for the first-hop gateway when using a source route
403 struct in_addr ip_dst; /* first hop, 0 w/o src rt */ member in struct:ip_opts
H A Dip_encap.c190 d.sin_addr = ip->ip_dst;
H A Dip_fw2.c1179 inet_ntop(AF_INET, &ip->ip_dst, ipv4str, sizeof(ipv4str)),
1183 inet_ntop(AF_INET, &ip->ip_dst, ipv4str, sizeof(ipv4str)));
1192 inet_ntop(AF_INET, &ip->ip_dst, ipv4str, sizeof(ipv4str)),
1196 inet_ntop(AF_INET, &ip->ip_dst, ipv4str, sizeof(ipv4str)));
1209 inet_ntop(AF_INET, &ip->ip_dst, ipv4str, sizeof(ipv4str)));
1216 inet_ntop(AF_INET, &ip->ip_dst, ipv4str, sizeof(ipv4str)));
1758 ip->ip_dst.s_addr = htonl(id->src_ip);
1784 ip->ip_dst.s_addr = htonl(id->dst_ip);
2034 dst_ip = ip->ip_dst;
H A Draw_ip.c219 inp->inp_laddr.s_addr != ip->ip_dst.s_addr)
397 ip->ip_dst.s_addr = dst;
H A Dtcp_subr.c517 ip->ip_dst = inp->inp_faddr;
518 tcp_hdr->th_sum = in_pseudo(ip->ip_src.s_addr, ip->ip_dst.s_addr,
665 xchg(ip->ip_dst.s_addr, ip->ip_src.s_addr, n_long);
736 nth->th_sum = in_pseudo(ip->ip_src.s_addr, ip->ip_dst.s_addr,
1778 icmpsrc.sin_addr = icp->icmp_ip.ip_dst;
/darwin-on-arm/xnu/bsd/netinet6/
H A Dah_output.c209 (u_int32_t)ntohl(ip->ip_dst.s_addr),
340 dst.s_addr = ip->ip_dst.s_addr;
341 ip->ip_dst.s_addr = finaldst->s_addr;
360 ip->ip_dst.s_addr = dst.s_addr;
H A Dah_input.c185 (caddr_t)&ip->ip_src, (caddr_t)&ip->ip_dst,
382 || nip->ip_dst.s_addr != ip->ip_dst.s_addr) {
459 (caddr_t)&ip->ip_src, (caddr_t)&ip->ip_dst)) {
505 ipaddr->sin_addr = ip->ip_dst;
H A Dipsec.c1117 bcopy(&ip->ip_dst, &sin->sin_addr, sizeof(ip->ip_dst));
2319 &ip->ip_dst, sizeof(ip->ip_dst));
2412 &ip->ip_dst, sizeof(ip->ip_dst));
2581 &ip->ip_dst, sizeof(ip->ip_dst));
2872 d = (u_int8_t *)(&ip->ip_dst);
3083 bcopy(&ip->ip_dst,
[all...]
H A Dipcomp_input.c132 (caddr_t)&ip->ip_dst, IPPROTO_IPCOMP, htonl(cpi));
H A Desp_input.c223 (caddr_t)&ip->ip_src, (caddr_t)&ip->ip_dst,
496 (caddr_t)&ip->ip_src, (caddr_t)&ip->ip_dst)) {
509 ipaddr->sin_addr = ip->ip_dst;
/darwin-on-arm/xnu/osfmk/kdp/
H A Dkdp_udp.h114 struct in_addr ip_src,ip_dst; /* source and dest address */ member in struct:ip

Completed in 209 milliseconds

12