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

1234567

/freebsd-11-stable/contrib/ipfilter/lib/
H A Dprintiphdr.c19 ntohl(ip->ip_dst.s_addr));
/freebsd-11-stable/sys/netinet/libalias/
H A Dalias.c280 struct in_addr *ip_dst, u_char ip_p, u_short *ip_sum);
282 struct in_addr ip_dst, u_char ip_p, u_short *ip_sum,
307 lnk = FindIcmpIn(la, pip->ip_src, pip->ip_dst, ic->icmp_id, 1);
328 &original_address, &pip->ip_dst, 2);
329 pip->ip_dst = original_address;
360 lnk = FindUdpTcpIn(la, ip->ip_dst, ip->ip_src,
364 lnk = FindUdpTcpIn(la, ip->ip_dst, ip->ip_src,
369 lnk = FindIcmpIn(la, ip->ip_dst, ip->ip_src, ic2->icmp_id, 0);
397 &original_address, &pip->ip_dst, 2);
398 pip->ip_dst
666 ProtoAliasIn(struct libalias *la, struct in_addr ip_src, struct in_addr *ip_dst, u_char ip_p, u_short *ip_sum) argument
699 ProtoAliasOut(struct libalias *la, struct in_addr *ip_src, struct in_addr ip_dst, u_char ip_p, u_short *ip_sum, int create) argument
1208 FragmentIn(struct libalias *la, struct in_addr ip_src, struct in_addr *ip_dst, u_short ip_id, u_short *ip_sum) argument
[all...]
H A Dalias_pptp.c486 lnk = FindPptpOutByPeerCallId(la, pip->ip_src, pip->ip_dst, gr->gh_call_id);
510 lnk = FindPptpInByPeerCallId(la, pip->ip_src, pip->ip_dst, gr->gh_call_id);
519 &src_addr, &pip->ip_dst, 2);
520 pip->ip_dst = src_addr;
/freebsd-11-stable/sbin/natd/
H A Dicmp.c102 swap = ip->ip_dst;
103 ip->ip_dst = ip->ip_src;
109 addr.sin_addr = ip->ip_dst;
/freebsd-11-stable/stand/libsa/
H A Dip.c74 struct in_addr ip_dst; member in struct:ip_reasm
118 ip->ip_dst = d->destip;
121 if (ip->ip_dst.s_addr == INADDR_BROADCAST || ip->ip_src.s_addr == 0 ||
122 netmask == 0 || SAMENET(ip->ip_src, ip->ip_dst, netmask))
123 ea = arpwhohas(d, ip->ip_dst);
262 if (d->myip.s_addr && ip->ip_dst.s_addr != d->myip.s_addr) {
266 printf("%s\n", inet_ntoa(ip->ip_dst));
293 ipr->ip_dst.s_addr == ip->ip_dst.s_addr &&
307 ipr->ip_dst
[all...]
/freebsd-11-stable/sys/netinet/
H A Dip_fastfwd.c203 ntohl(ip->ip_dst.s_addr) == (u_long)INADDR_BROADCAST ||
205 IN_MULTICAST(ntohl(ip->ip_dst.s_addr)) ||
207 IN_LINKLOCAL(ntohl(ip->ip_dst.s_addr)) ||
209 ip->ip_dst.s_addr == INADDR_ANY )
215 if (in_localip(ip->ip_dst))
224 odest.s_addr = dest.s_addr = ip->ip_dst.s_addr;
241 dest.s_addr = ip->ip_dst.s_addr;
334 dest.s_addr = ip->ip_dst.s_addr;
H A Dip_input.c504 if ((ntohl(ip->ip_dst.s_addr) >> IN_CLASSA_NSHIFT) == IN_LOOPBACKNET ||
603 odst = ip->ip_dst;
610 dchg = (odst.s_addr != ip->ip_dst.s_addr);
684 LIST_FOREACH(ia, INADDR_HASH(ip->ip_dst.s_addr), ia_hash) {
690 if (IA_SIN(ia)->sin_addr.s_addr == ip->ip_dst.s_addr &&
716 ip->ip_dst.s_addr) {
736 if (IN_MULTICAST(ntohl(ip->ip_dst.s_addr))) {
772 if (ip->ip_dst.s_addr == (u_long)INADDR_BROADCAST)
774 if (ip->ip_dst.s_addr == INADDR_ANY)
777 if (IN_LINKLOCAL(ntohl(ip->ip_dst
[all...]
H A Dip_gre.c116 if (sc->gre_oip.ip_src.s_addr != ip->ip_dst.s_addr ||
117 sc->gre_oip.ip_dst.s_addr != ip->ip_src.s_addr)
H A Din_rss.c287 return rss_proto_software_hash_v4(ip->ip_src, ip->ip_dst,
301 return rss_proto_software_hash_v4(ip->ip_src, ip->ip_dst,
309 return rss_proto_software_hash_v4(ip->ip_src, ip->ip_dst,
H A Dip_output.c117 odst.s_addr = ip->ip_dst.s_addr;
126 if (odst.s_addr != ip->ip_dst.s_addr) {
129 if (in_localip(ip->ip_dst)) {
151 dst->sin_addr = ip->ip_dst;
286 dst->sin_addr = ip->ip_dst;
308 dst->sin_addr.s_addr != ip->ip_dst.s_addr)) {
333 ip->ip_dst.s_addr = INADDR_BROADCAST;
334 dst->sin_addr = ip->ip_dst;
351 } else if (IN_MULTICAST(ntohl(ip->ip_dst.s_addr)) &&
371 ntohl(ip->ip_src.s_addr ^ ip->ip_dst
[all...]
H A Dip_icmp.c416 inet_ntoa_r(ip->ip_dst, dstbuf), icmplen);
527 if (IN_MULTICAST(ntohl(icp->icmp_ip.ip_dst.s_addr)))
533 icmpsrc.sin_addr = icp->icmp_ip.ip_dst;
604 switch (ip->ip_dst.s_addr) {
612 icmpdst.sin_addr = ip->ip_dst;
645 dst = ntohl(icp->icmp_ip.ip_dst.s_addr);
684 inet_ntoa_r(icp->icmp_ip.ip_dst, dstbuf),
688 icmpsrc.sin_addr = icp->icmp_ip.ip_dst;
747 t = ip->ip_dst;
748 ip->ip_dst
[all...]
H A Dip_options.c120 dst = ip->ip_dst;
167 ipaddr.sin_addr = ip->ip_dst;
211 inet_ntoa_r(ip->ip_dst, dstbuf));
262 ip->ip_dst = ipaddr.sin_addr;
267 forward = !IN_MULTICAST(ntohl(ip->ip_dst.s_addr));
289 (void)memcpy(&ipaddr.sin_addr, &ip->ip_dst,
519 ip->ip_dst = p->ipopt_dst;
H A Draw_ip.c299 ip->ip_dst.s_addr, V_ripcbinfo.ipi_hashmask);
309 if (inp->inp_laddr.s_addr != ip->ip_dst.s_addr)
318 if (prison_check_ip4(inp->inp_cred, &ip->ip_dst) != 0)
342 !in_hosteq(inp->inp_laddr, ip->ip_dst))
353 if (!IN_MULTICAST(ntohl(ip->ip_dst.s_addr)) &&
354 prison_check_ip4(inp->inp_cred, &ip->ip_dst) != 0)
364 IN_MULTICAST(ntohl(ip->ip_dst.s_addr))) {
386 group.sin_addr = ip->ip_dst;
472 ip->ip_dst.s_addr = dst;
480 error = in_pcbladdr(inp, &ip->ip_dst,
[all...]
/freebsd-11-stable/contrib/ipfilter/ipsend/
H A Diptest.c134 if (resolve(dst, (char *)&ip->ip_dst) == -1)
147 gwip = ip->ip_dst;
159 printf("Dest: %s\n", inet_ntoa(ip->ip_dst));
H A Dipsend.c106 if (resolve(t, (char *)&ic->icmp_ip.ip_dst) == -1)
159 ph.h.dst = ip->ip_dst.s_addr;
331 if (resolve(dst, (char *)&ip->ip_dst) == -1)
338 gwip = ip->ip_dst;
401 printf("Dest: %s\n", inet_ntoa(ip->ip_dst));
/freebsd-11-stable/contrib/tcpdump/
H A Dprint-icmp.c367 ND_TCHECK(dp->icmp_ip.ip_dst);
374 ipaddr_string(ndo, &dp->icmp_ip.ip_dst),
390 ipaddr_string(ndo, &oip->ip_dst),
397 ipaddr_string(ndo, &oip->ip_dst),
404 ipaddr_string(ndo, &oip->ip_dst),
418 ipaddr_string(ndo, &dp->icmp_ip.ip_dst), mtu);
422 ipaddr_string(ndo, &dp->icmp_ip.ip_dst));
431 ipaddr_string(ndo, &dp->icmp_ip.ip_dst));
437 ND_TCHECK(dp->icmp_ip.ip_dst);
441 ipaddr_string(ndo, &dp->icmp_ip.ip_dst),
[all...]
H A Dip.h66 nd_ipv4 ip_src,ip_dst; /* source and dest address */ member in struct:ip
H A Dprint-tcp.c186 ipaddr_string(ndo, &ip->ip_dst)));
209 ipaddr_string(ndo, &ip->ip_dst),
315 if (UNALIGNED_MEMCMP(&ip->ip_src, &ip->ip_dst, sizeof ip->ip_dst) > 0)
319 UNALIGNED_MEMCPY(&tha.src, &ip->ip_dst, sizeof ip->ip_dst);
323 UNALIGNED_MEMCPY(&tha.dst, &ip->ip_dst, sizeof ip->ip_dst);
871 MD5_Update(&ctx, (const char *)&ip->ip_dst, sizeof(ip->ip_dst));
[all...]
H A Dprint-ip.c133 UNALIGNED_MEMCPY(&retval, &ip->ip_dst, sizeof(uint32_t));
160 UNALIGNED_MEMCPY(&ph.dst, &ip->ip_dst, sizeof(uint32_t));
485 ipaddr_string(ndo, &ipds->ip->ip_dst)));
491 ipaddr_string(ndo, &ipds->ip->ip_dst)));
677 ipaddr_string(ndo, &ipds->ip->ip_dst)));
694 ipaddr_string(ndo, &ipds->ip->ip_dst)));
/freebsd-11-stable/cddl/lib/libdtrace/
H A Dip.d237 inet_ntoa(&((struct ip *)p)->ip_dst.s_addr) :
255 inet_ntoa(&((struct ip *)m->m_data)->ip_dst.s_addr) :
283 ipv4_dst = p == NULL ? 0 : (ipaddr_t)ntohl(p->ip_dst.s_addr);
285 ipv4_daddr = p == NULL ? 0 : inet_ntoa(&p->ip_dst.s_addr);
/freebsd-11-stable/contrib/traceroute/
H A Drip_output.c61 ip->ip_dst = ((struct sockaddr_in *)&rp->rcb_faddr)->sin_addr;
/freebsd-11-stable/sys/netpfil/pf/
H A Din4_cksum.c108 u.ipov.ih_dst = mtod(m, struct ip *)->ip_dst;
/freebsd-11-stable/tools/tools/netmap/
H A Dpkt_hash.c154 ntohl(iph->ip_dst.s_addr),
165 ntohl(iph->ip_dst.s_addr),
172 ntohl(iph->ip_dst.s_addr),
195 ntohl(iph->ip_dst.s_addr),
/freebsd-11-stable/sys/netpfil/ipfw/nat64/
H A Dnat64clat.c97 nat64_check_ip4(ip->ip_dst.s_addr) != 0 ||
98 nat64_check_private_ip4(&cfg->base, ip->ip_dst.s_addr) != 0)
104 nat64_embed_ip4(&daddr, cfg->base.plat_plen, ip->ip_dst.s_addr);
/freebsd-11-stable/tools/tools/net80211/wesside/dics/
H A Ddics.c249 inet_aton(ip, &iph->ip_dst);
254 memcpy(&dst.sin_addr, &iph->ip_dst, sizeof(dst.sin_addr));
269 &iph->ip_src, &iph->ip_dst);

Completed in 205 milliseconds

1234567