Fix lookup of original destination address when using a redirect rule.
authorcy <cy@FreeBSD.org>
Fri, 27 Jan 2017 14:12:34 +0000 (14:12 +0000)
committercy <cy@FreeBSD.org>
Fri, 27 Jan 2017 14:12:34 +0000 (14:12 +0000)
commit159249f9d6f9b2080c6b4f69e7de30602c5a1b39
tree7e21e2334db769acdbf9ba4bc672a34e07734da2
parentb880933ac662e6a80f66b45442a8a6db6a8bbaf2
Fix lookup of original destination address when using a redirect rule.
Transparent proxying, e.g. to squid, is an example of this.

Obtained from: NetBSD ip_nat.c r1.17, ip_nat6.c r1.10
MFC after: 6 weeks
sys/contrib/ipfilter/netinet/ip_nat.c
sys/contrib/ipfilter/netinet/ip_nat6.c