Lines Matching defs:dst
46 * Check if "dst" is an IPv4 address that proxy remaps to host's
50 proxy_ip4_is_mapped_loopback(struct netif *netif, const ip_addr_t *dst, ip_addr_t *lo)
56 LWIP_ASSERT1(dst != NULL);
62 if (!ip_addr_netcmp(dst, &netif->ip_addr, &netif->netmask)) {
68 off = ntohl(ip4_addr_get_u32(dst) & ~ip4_addr_get_u32(&netif->netmask));
85 * ARP reply to be generated for "dst".
88 pxremap_proxy_arp(struct netif *netif, ip_addr_t *dst)
90 return proxy_ip4_is_mapped_loopback(netif, dst, NULL);
97 * "dst" to proxy (instead of forwarding them via "netif" or dropping).
100 pxremap_ip4_divert(struct netif *netif, ip_addr_t *dst)
102 return proxy_ip4_is_mapped_loopback(netif, dst, NULL);
109 * Copy "src" to "dst" with ip_addr_set(dst, src), but if "src" is a
111 * loopback address to "dst".
114 pxremap_outbound_ip4(ip_addr_t *dst, ip_addr_t *src)
118 LWIP_ASSERT1(dst != NULL);
123 if (proxy_ip4_is_mapped_loopback(netif, src, dst)) {
130 ip_addr_set(dst, src);
139 * Copy "src" to "dst" with ip_addr_set(dst, src), but if "src" is a
141 * "dst".
144 pxremap_inbound_ip4(ip_addr_t *dst, ip_addr_t *src)
151 ip_addr_set(dst, src);
159 #if 0 /* ?TODO: with multiple interfaces we need to consider fwspec::dst */
176 ip4_addr_set_u32(dst,
188 proxy_ip6_is_mapped_loopback(struct netif *netif, ip6_addr_t *dst)
194 LWIP_ASSERT1(dst != NULL);
201 if (memcmp(dst, ifaddr, sizeof(ip6_addr_t) - 1) == 0
202 && ((IP6_ADDR_BLOCK8(dst) & 0xff)
216 * reply to be generated for "dst".
219 pxremap_proxy_na(struct netif *netif, ip6_addr_t *dst)
221 return proxy_ip6_is_mapped_loopback(netif, dst);
227 * "dst" to proxy (instead of forwarding them via "netif" or dropping).
230 pxremap_ip6_divert(struct netif *netif, ip6_addr_t *dst)
232 return proxy_ip6_is_mapped_loopback(netif, dst);
239 * Copy "src" to "dst" with ip6_addr_set(dst, src), but if "src" is a
241 * loopback address to "dst".
244 pxremap_outbound_ip6(ip6_addr_t *dst, ip6_addr_t *src)
249 LWIP_ASSERT1(dst != NULL);
266 ip6_addr_set_loopback(dst);
274 ip6_addr_set(dst, src);
283 * Copy "src" to "dst" with ip6_addr_set(dst, src), but if "src" is a
285 * "dst".
288 pxremap_inbound_ip6(ip6_addr_t *dst, ip6_addr_t *src)
296 ip6_addr_set(dst, src);
300 #if 0 /* ?TODO: with multiple interfaces we need to consider fwspec::dst */
316 ip6_addr_set(dst, ifaddr);
317 ++((u8_t *)&dst->addr[3])[3];