| /freebsd-9-stable/sys/netinet/libalias/ |
| D | alias.c | 280 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); in IcmpAliasIn1() 328 &original_address, &pip->ip_dst, 2); in IcmpAliasIn1() 329 pip->ip_dst = original_address; in IcmpAliasIn1() 360 lnk = FindUdpTcpIn(la, ip->ip_dst, ip->ip_src, in IcmpAliasIn2() 364 lnk = FindUdpTcpIn(la, ip->ip_dst, ip->ip_src, in IcmpAliasIn2() 369 lnk = FindIcmpIn(la, ip->ip_dst, ip->ip_src, ic2->icmp_id, 0); in IcmpAliasIn2() 397 &original_address, &pip->ip_dst, 2); in IcmpAliasIn2() 398 pip->ip_dst = original_address; in IcmpAliasIn2() [all …]
|
| D | alias_pptp.c | 486 lnk = FindPptpOutByPeerCallId(la, pip->ip_src, pip->ip_dst, gr->gh_call_id); in AliasHandlePptpGreOut() 510 lnk = FindPptpInByPeerCallId(la, pip->ip_src, pip->ip_dst, gr->gh_call_id); in AliasHandlePptpGreIn() 519 &src_addr, &pip->ip_dst, 2); in AliasHandlePptpGreIn() 520 pip->ip_dst = src_addr; in AliasHandlePptpGreIn()
|
| D | alias_sctp.c | 776 &(assoc->l_addr), &(msg.ip_hdr->ip_dst), 2); in SctpAlias() 777 msg.ip_hdr->ip_dst = assoc->l_addr; /* change dst address to local address*/ in SctpAlias() 964 ip->ip_dst = (direction == SN_TO_LOCAL) ? assoc->l_addr : sm->ip_hdr->ip_dst; in TxAbortErrorM() 968 ip->ip_src = sm->ip_hdr->ip_dst; in TxAbortErrorM() 969 ip->ip_dst = sm->ip_hdr->ip_src; in TxAbortErrorM() 987 inet_ntoa(ip->ip_dst),ntohs(sctp_hdr->dest_port), in TxAbortErrorM() 1076 …*passoc = FindSctpLocalT(la, pip->ip_dst, sctp_hdr->v_tag, sctp_hdr->dest_port, sctp_hdr->src_port… in sctp_PktParser() 1082 …*passoc = FindSctpLocal(la, pip->ip_src, pip->ip_dst, sctp_hdr->v_tag, sctp_hdr->src_port, sctp_h… in sctp_PktParser() 1320 g_addr = sm->ip_hdr->ip_dst; in AddGlobalIPAddresses() 1480 g_addr = sm->ip_hdr->ip_dst; in RmGlobalIPAddresses() [all …]
|
| /freebsd-9-stable/contrib/tcpdump/ |
| D | print-icmp.c | 372 TCHECK(dp->icmp_ip.ip_dst); in icmp_print() 379 ipaddr_string(&dp->icmp_ip.ip_dst), in icmp_print() 395 ipaddr_string(&oip->ip_dst), in icmp_print() 402 ipaddr_string(&oip->ip_dst), in icmp_print() 409 ipaddr_string(&oip->ip_dst), in icmp_print() 423 ipaddr_string(&dp->icmp_ip.ip_dst), mtu); in icmp_print() 427 ipaddr_string(&dp->icmp_ip.ip_dst)); in icmp_print() 436 ipaddr_string(&dp->icmp_ip.ip_dst)); in icmp_print() 442 TCHECK(dp->icmp_ip.ip_dst); in icmp_print() 446 ipaddr_string(&dp->icmp_ip.ip_dst), in icmp_print() [all …]
|
| D | print-tcp.c | 165 ipaddr_string(&ip->ip_dst)); in tcp_print() 229 ipaddr_string(&ip->ip_dst), in tcp_print() 316 dst = &ip->ip_dst; in tcp_print() 320 if (memcmp(src, dst, sizeof ip->ip_dst) > 0) in tcp_print() 324 memcpy(&tha.src, dst, sizeof ip->ip_dst); in tcp_print() 328 memcpy(&tha.dst, dst, sizeof ip->ip_dst); in tcp_print() 336 dst = &ip->ip_dst; in tcp_print() 340 if (memcmp(src, dst, sizeof ip->ip_dst) > 0) in tcp_print() 344 memcpy(&tha.src, dst, sizeof ip->ip_dst); in tcp_print() 348 memcpy(&tha.dst, dst, sizeof ip->ip_dst); in tcp_print() [all …]
|
| D | print-ip.c | 130 memcpy(&retval, &ip->ip_dst.s_addr, sizeof(u_int32_t)); in ip_finddst() 156 memcpy(&ph.dst, &ip->ip_dst.s_addr, sizeof(u_int32_t)); in nextproto4_cksum() 471 ipaddr_string(&ipds->ip->ip_dst)); in ip_print_demux() 477 ipaddr_string(&ipds->ip->ip_dst)); in ip_print_demux() 655 ipaddr_string(&ipds->ip->ip_dst)); in ip_print() 669 ipaddr_string(&ipds->ip->ip_dst)); in ip_print()
|
| /freebsd-9-stable/lib/libstand/ |
| D | udp.c | 96 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-9-stable/sys/netinet/ |
| D | ip_fastfwd.c | 275 if ((ntohl(ip->ip_dst.s_addr) >> IN_CLASSA_NSHIFT) == IN_LOOPBACKNET || in ip_fastforward() 320 ntohl(ip->ip_dst.s_addr) == (u_long)INADDR_BROADCAST || in ip_fastforward() 322 IN_MULTICAST(ntohl(ip->ip_dst.s_addr)) || in ip_fastforward() 324 IN_LINKLOCAL(ntohl(ip->ip_dst.s_addr)) || in ip_fastforward() 326 ip->ip_dst.s_addr == INADDR_ANY ) in ip_fastforward() 332 if (in_localip(ip->ip_dst)) in ip_fastforward() 347 odest.s_addr = dest.s_addr = ip->ip_dst.s_addr; in ip_fastforward() 364 dest.s_addr = ip->ip_dst.s_addr; in ip_fastforward() 450 dest.s_addr = ip->ip_dst.s_addr; in ip_fastforward()
|
| D | ip_input.c | 433 if ((ntohl(ip->ip_dst.s_addr) >> IN_CLASSA_NSHIFT) == IN_LOOPBACKNET || in ip_input() 509 odst = ip->ip_dst; in ip_input() 516 dchg = (odst.s_addr != ip->ip_dst.s_addr); in ip_input() 590 LIST_FOREACH(ia, INADDR_HASH(ip->ip_dst.s_addr), ia_hash) { in ip_input() 596 if (IA_SIN(ia)->sin_addr.s_addr == ip->ip_dst.s_addr && in ip_input() 620 ip->ip_dst.s_addr) { in ip_input() 637 if (IN_LINKLOCAL(ntohl(ip->ip_dst.s_addr))) { in ip_input() 642 if (IN_MULTICAST(ntohl(ip->ip_dst.s_addr))) { in ip_input() 674 if (ip->ip_dst.s_addr == (u_long)INADDR_BROADCAST) in ip_input() 676 if (ip->ip_dst.s_addr == INADDR_ANY) in ip_input() [all …]
|
| D | ip_icmp.c | 378 buf, inet_ntoa(ip->ip_dst), icmplen); in icmp_input() 507 if (IN_MULTICAST(ntohl(icp->icmp_ip.ip_dst.s_addr))) in icmp_input() 513 icmpsrc.sin_addr = icp->icmp_ip.ip_dst; in icmp_input() 567 switch (ip->ip_dst.s_addr) { in icmp_input() 575 icmpdst.sin_addr = ip->ip_dst; in icmp_input() 609 dst = ntohl(icp->icmp_ip.ip_dst.s_addr); in icmp_input() 645 strcpy(buf, inet_ntoa(icp->icmp_ip.ip_dst)); in icmp_input() 651 icmpsrc.sin_addr = icp->icmp_ip.ip_dst; in icmp_input() 710 t = ip->ip_dst; in icmp_reflect() 711 ip->ip_dst = ip->ip_src; in icmp_reflect() [all …]
|
| D | ip_output.c | 212 dst->sin_addr.s_addr != ip->ip_dst.s_addr)) { in ip_output() 221 dst->sin_addr = ip->ip_dst; in ip_output() 236 ip->ip_dst.s_addr = INADDR_BROADCAST; in ip_output() 237 dst->sin_addr = ip->ip_dst; in ip_output() 251 } else if (IN_MULTICAST(ntohl(ip->ip_dst.s_addr)) && in ip_output() 269 ntohl(ip->ip_src.s_addr ^ ip->ip_dst.s_addr), in ip_output() 325 if (IN_MULTICAST(ntohl(ip->ip_dst.s_addr))) { in ip_output() 503 odst.s_addr = ip->ip_dst.s_addr; in ip_output() 511 if (odst.s_addr != ip->ip_dst.s_addr) { in ip_output() 514 if (in_localip(ip->ip_dst)) { in ip_output() [all …]
|
| D | ip_options.c | 115 dst = ip->ip_dst; in ip_dooptions() 162 ipaddr.sin_addr = ip->ip_dst; in ip_dooptions() 200 strcpy(buf, inet_ntoa(ip->ip_dst)); in ip_dooptions() 240 ip->ip_dst = ipaddr.sin_addr; in ip_dooptions() 248 forward = !IN_MULTICAST(ntohl(ip->ip_dst.s_addr)); in ip_dooptions() 270 (void)memcpy(&ipaddr.sin_addr, &ip->ip_dst, in ip_dooptions() 502 ip->ip_dst = p->ipopt_dst; in ip_insertoptions()
|
| D | raw_ip.c | 294 ip->ip_dst.s_addr, V_ripcbinfo.ipi_hashmask); in rip_input() 304 if (inp->inp_laddr.s_addr != ip->ip_dst.s_addr) in rip_input() 313 if (prison_check_ip4(inp->inp_cred, &ip->ip_dst) != 0) in rip_input() 337 !in_hosteq(inp->inp_laddr, ip->ip_dst)) in rip_input() 348 if (!IN_MULTICAST(ntohl(ip->ip_dst.s_addr)) && in rip_input() 349 prison_check_ip4(inp->inp_cred, &ip->ip_dst) != 0) in rip_input() 359 IN_MULTICAST(ntohl(ip->ip_dst.s_addr))) { in rip_input() 381 group.sin_addr = ip->ip_dst; in rip_input() 473 ip->ip_dst.s_addr = dst; in rip_output()
|
| D | udp_usrreq.c | 422 ip->ip_dst.s_addr, htonl((u_short)len + in udp_input() 442 if (IN_MULTICAST(ntohl(ip->ip_dst.s_addr)) || in udp_input() 443 in_broadcast(ip->ip_dst, ifp)) { in udp_input() 457 inp->inp_laddr.s_addr != ip->ip_dst.s_addr) in udp_input() 480 if (IN_MULTICAST(ntohl(ip->ip_dst.s_addr))) { in udp_input() 490 group.sin_addr = ip->ip_dst; in udp_input() 562 ip->ip_dst, uh->uh_dport, INPLOOKUP_RLOCKPCB, ifp, m); in udp_input() 580 ip->ip_dst, uh->uh_dport, INPLOOKUP_WILDCARD | in udp_input() 586 strcpy(buf, inet_ntoa(ip->ip_dst)); in udp_input()
|
| /freebsd-9-stable/sbin/natd/ |
| D | icmp.c | 102 swap = ip->ip_dst; in SendNeedFragIcmp() 103 ip->ip_dst = ip->ip_src; in SendNeedFragIcmp() 109 addr.sin_addr = ip->ip_dst; in SendNeedFragIcmp()
|
| /freebsd-9-stable/contrib/ipfilter/ipsend/ |
| D | ipsend.c | 130 if (resolve(t, (char *)&ic->icmp_ip.ip_dst) == -1) 183 ph.h.dst = ip->ip_dst.s_addr; in udpcksum() 355 if (resolve(dst, (char *)&ip->ip_dst) == -1) 362 gwip = ip->ip_dst; 425 printf("Dest: %s\n", inet_ntoa(ip->ip_dst));
|
| D | iptest.c | 155 if (resolve(dst, (char *)&ip->ip_dst) == -1) 168 gwip = ip->ip_dst; 180 printf("Dest: %s\n", inet_ntoa(ip->ip_dst));
|
| /freebsd-9-stable/sys/net/ |
| D | if_stf.c | 355 if (bcmp(GET_V4(&ia6->ia_addr.sin6_addr), &ip.ip_dst, 356 sizeof(ip.ip_dst)) != 0) { 526 bcopy(&in4, &ip->ip_dst, sizeof(ip->ip_dst)); 546 bcmp(&dst4->sin_addr, &ip->ip_dst, sizeof(ip->ip_dst)) != 0) { 550 bcopy(&ip->ip_dst, &dst4->sin_addr, sizeof(dst4->sin_addr)); 732 if (stf_checkaddr4(sc, &ip->ip_dst, NULL) < 0 ||
|
| D | slcompress.c | 191 ip->ip_dst.s_addr != cs->cs_ip.ip_dst.s_addr || 212 && ip->ip_dst.s_addr == cs->cs_ip.ip_dst.s_addr
|
| /freebsd-9-stable/sys/contrib/ipfilter/netinet/ |
| D | ip_rcmd_pxy.c | 187 swip2 = ip->ip_dst; 206 ip->ip_dst = nat->nat_inip; 214 ip->ip_dst = swip2;
|
| D | ip_raudio_pxy.c | 272 swb = ip->ip_dst; 276 ip->ip_dst = nat->nat_oip; 337 ip->ip_dst = swb;
|
| /freebsd-9-stable/contrib/ipfilter/lib/ |
| D | ipft_td.c | 135 (void) inet_aton(src, &ip->ip_dst); 141 (void) inet_aton(src, &ip->ip_dst);
|
| /freebsd-9-stable/usr.sbin/ppp/ |
| D | slcompress.c | 199 ip->ip_dst.s_addr != cs->cs_ip.ip_dst.s_addr || in sl_compress_tcp() 220 && ip->ip_dst.s_addr == cs->cs_ip.ip_dst.s_addr in sl_compress_tcp()
|
| /freebsd-9-stable/tools/tools/net80211/wesside/dics/ |
| D | dics.c | 249 inet_aton(ip, &iph->ip_dst); in send_stuff() 254 memcpy(&dst.sin_addr, &iph->ip_dst, sizeof(dst.sin_addr)); in send_stuff() 269 &iph->ip_src, &iph->ip_dst); in send_stuff()
|
| /freebsd-9-stable/sys/ofed/drivers/net/mlx4/ |
| D | en_frag.c | 53 if (session->daddr == iph->ip_dst.s_addr && in find_session() 164 session->daddr = iph->ip_dst.s_addr; in mlx4_en_rx_frags()
|