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

123456

/freebsd-10.0-release/contrib/ipfilter/lib/
H A Dprintiphdr.c19 ntohl(ip->ip_dst.s_addr));
H A Dprintpacket.c84 PRINTF("%s", inet_ntoa(ip->ip_dst));
/freebsd-10.0-release/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
658 ProtoAliasIn(struct libalias *la, struct in_addr ip_src, struct in_addr *ip_dst, u_char ip_p, u_short *ip_sum) argument
691 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
1175 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-10.0-release/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-10.0-release/contrib/tcpdump/
H A Dprint-icmp.c372 TCHECK(dp->icmp_ip.ip_dst);
379 ipaddr_string(&dp->icmp_ip.ip_dst),
395 ipaddr_string(&oip->ip_dst),
402 ipaddr_string(&oip->ip_dst),
409 ipaddr_string(&oip->ip_dst),
423 ipaddr_string(&dp->icmp_ip.ip_dst), mtu);
427 ipaddr_string(&dp->icmp_ip.ip_dst));
436 ipaddr_string(&dp->icmp_ip.ip_dst));
442 TCHECK(dp->icmp_ip.ip_dst);
446 ipaddr_string(&dp->icmp_ip.ip_dst),
[all...]
H A Dprint-tcp.c165 ipaddr_string(&ip->ip_dst));
229 ipaddr_string(&ip->ip_dst),
316 dst = &ip->ip_dst;
320 if (memcmp(src, dst, sizeof ip->ip_dst) > 0)
324 memcpy(&tha.src, dst, sizeof ip->ip_dst);
328 memcpy(&tha.dst, dst, sizeof ip->ip_dst);
336 dst = &ip->ip_dst;
340 if (memcmp(src, dst, sizeof ip->ip_dst) > 0)
344 memcpy(&tha.src, dst, sizeof ip->ip_dst);
348 memcpy(&tha.dst, dst, sizeof ip->ip_dst);
[all...]
H A Dip.h64 struct in_addr ip_src,ip_dst; /* source and dest address */ member in struct:ip
H A Dprint-ip.c130 memcpy(&retval, &ip->ip_dst.s_addr, sizeof(u_int32_t));
156 memcpy(&ph.dst, &ip->ip_dst.s_addr, sizeof(u_int32_t));
471 ipaddr_string(&ipds->ip->ip_dst));
477 ipaddr_string(&ipds->ip->ip_dst));
655 ipaddr_string(&ipds->ip->ip_dst));
669 ipaddr_string(&ipds->ip->ip_dst));
/freebsd-10.0-release/lib/libstand/
H A Dudp.c96 ip->ip_dst = d->destip;
118 if (ip->ip_dst.s_addr == INADDR_BROADCAST || ip->ip_src.s_addr == 0 ||
119 netmask == 0 || SAMENET(ip->ip_src, ip->ip_dst, netmask))
120 ea = arpwhohas(d, ip->ip_dst);
208 if (d->myip.s_addr && ip->ip_dst.s_addr != d->myip.s_addr) {
212 printf("%s\n", inet_ntoa(ip->ip_dst));
/freebsd-10.0-release/sys/netinet/
H A Dip_fastfwd.c278 if ((ntohl(ip->ip_dst.s_addr) >> IN_CLASSA_NSHIFT) == IN_LOOPBACKNET ||
323 ntohl(ip->ip_dst.s_addr) == (u_long)INADDR_BROADCAST ||
325 IN_MULTICAST(ntohl(ip->ip_dst.s_addr)) ||
327 IN_LINKLOCAL(ntohl(ip->ip_dst.s_addr)) ||
329 ip->ip_dst.s_addr == INADDR_ANY )
335 if (in_localip(ip->ip_dst))
344 odest.s_addr = dest.s_addr = ip->ip_dst.s_addr;
361 dest.s_addr = ip->ip_dst.s_addr;
447 dest.s_addr = ip->ip_dst.s_addr;
H A Dip_input.c444 if ((ntohl(ip->ip_dst.s_addr) >> IN_CLASSA_NSHIFT) == IN_LOOPBACKNET ||
516 odst = ip->ip_dst;
523 dchg = (odst.s_addr != ip->ip_dst.s_addr);
598 LIST_FOREACH(ia, INADDR_HASH(ip->ip_dst.s_addr), ia_hash) {
604 if (IA_SIN(ia)->sin_addr.s_addr == ip->ip_dst.s_addr &&
628 ip->ip_dst.s_addr) {
645 if (IN_LINKLOCAL(ntohl(ip->ip_dst.s_addr))) {
650 if (IN_MULTICAST(ntohl(ip->ip_dst.s_addr))) {
682 if (ip->ip_dst.s_addr == (u_long)INADDR_BROADCAST)
684 if (ip->ip_dst
[all...]
H A Dip_icmp.c381 buf, inet_ntoa(ip->ip_dst), icmplen);
509 if (IN_MULTICAST(ntohl(icp->icmp_ip.ip_dst.s_addr)))
515 icmpsrc.sin_addr = icp->icmp_ip.ip_dst;
569 switch (ip->ip_dst.s_addr) {
577 icmpdst.sin_addr = ip->ip_dst;
610 dst = ntohl(icp->icmp_ip.ip_dst.s_addr);
646 strcpy(buf, inet_ntoa(icp->icmp_ip.ip_dst));
652 icmpsrc.sin_addr = icp->icmp_ip.ip_dst;
709 t = ip->ip_dst;
710 ip->ip_dst
[all...]
H A Dip_output.c218 dst->sin_addr.s_addr != ip->ip_dst.s_addr)) {
227 dst->sin_addr = ip->ip_dst;
242 ip->ip_dst.s_addr = INADDR_BROADCAST;
243 dst->sin_addr = ip->ip_dst;
257 } else if (IN_MULTICAST(ntohl(ip->ip_dst.s_addr)) &&
275 ntohl(ip->ip_src.s_addr ^ ip->ip_dst.s_addr),
331 if (IN_MULTICAST(ntohl(ip->ip_dst.s_addr))) {
509 odst.s_addr = ip->ip_dst.s_addr;
517 if (odst.s_addr != ip->ip_dst.s_addr) {
520 if (in_localip(ip->ip_dst)) {
[all...]
H A Dip_options.c115 dst = ip->ip_dst;
162 ipaddr.sin_addr = ip->ip_dst;
200 strcpy(buf, inet_ntoa(ip->ip_dst));
240 ip->ip_dst = ipaddr.sin_addr;
248 forward = !IN_MULTICAST(ntohl(ip->ip_dst.s_addr));
270 (void)memcpy(&ipaddr.sin_addr, &ip->ip_dst,
496 ip->ip_dst = p->ipopt_dst;
/freebsd-10.0-release/contrib/ipfilter/ipsend/
H A Diptest.c155 if (resolve(dst, (char *)&ip->ip_dst) == -1)
168 gwip = ip->ip_dst;
180 printf("Dest: %s\n", inet_ntoa(ip->ip_dst));
H A Dipsend.c130 if (resolve(t, (char *)&ic->icmp_ip.ip_dst) == -1)
183 ph.h.dst = ip->ip_dst.s_addr;
355 if (resolve(dst, (char *)&ip->ip_dst) == -1)
362 gwip = ip->ip_dst;
425 printf("Dest: %s\n", inet_ntoa(ip->ip_dst));
/freebsd-10.0-release/sys/boot/arm/at91/libat91/
H A Demac.h83 unsigned char ip_dst[4]; member in struct:__anon5954
/freebsd-10.0-release/sys/net/
H A Dif_stf.c356 if (bcmp(GET_V4(&ia6->ia_addr.sin6_addr), &ip.ip_dst,
357 sizeof(ip.ip_dst)) != 0) {
516 bcopy(&in4, &ip->ip_dst, sizeof(ip->ip_dst));
536 bcmp(&dst4->sin_addr, &ip->ip_dst, sizeof(ip->ip_dst)) != 0) {
540 bcopy(&ip->ip_dst, &dst4->sin_addr, sizeof(dst4->sin_addr));
719 if (stf_checkaddr4(sc, &ip->ip_dst, NULL) < 0 ||
H A Dif_gre.h106 #define gi_dst gi_i.ip_dst
/freebsd-10.0-release/contrib/traceroute/
H A Drip_output.c61 ip->ip_dst = ((struct sockaddr_in *)&rp->rcb_faddr)->sin_addr;
/freebsd-10.0-release/sys/netpfil/pf/
H A Din4_cksum.c108 u.ipov.ih_dst = mtod(m, struct ip *)->ip_dst;
/freebsd-10.0-release/cddl/lib/libdtrace/
H A Dip.d237 inet_ntoa(&((struct ip *)p)->ip_dst.s_addr) :
265 ipv4_dst = p == NULL ? 0 : (ipaddr_t)ntohl(p->ip_dst.s_addr);
267 ipv4_daddr = p == NULL ? 0 : inet_ntoa(&p->ip_dst.s_addr);
/freebsd-10.0-release/sys/contrib/ipfilter/netinet/
H A Dip_raudio_pxy.c283 swb = ip->ip_dst;
287 ip->ip_dst = nat->nat_odstip;
351 ip->ip_dst = swb;
/freebsd-10.0-release/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 220 milliseconds

123456