diff options
author | kp <kp@FreeBSD.org> | 2016-05-23 13:59:48 +0000 |
---|---|---|
committer | Luiz Otavio O Souza <luiz@netgate.com> | 2016-05-23 14:01:08 -0500 |
commit | 1988fec31c1cadc1eaf419239a20cef49d9d3a10 (patch) | |
tree | 08f62faf9d59430b862fc7b883a6f5d02768a207 | |
parent | ac26f7c44af17f07ae95d74e2ac9dd9e72d92c02 (diff) | |
download | FreeBSD-src-1988fec31c1cadc1eaf419239a20cef49d9d3a10.zip FreeBSD-src-1988fec31c1cadc1eaf419239a20cef49d9d3a10.tar.gz |
pf: Fix more ICMP mistranslation
In the default case fix the substitution of the destination address.
PR: 201519
Submitted by: Max <maximos@als.nnov.ru>
MFC after: 1 week
(cherry picked from commit 7ddccc27cd3b8cf9bef3dd5b7b71c8b82e914386)
-rw-r--r-- | sys/netpfil/pf/pf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netpfil/pf/pf.c b/sys/netpfil/pf/pf.c index d93c776..a1ceaab 100644 --- a/sys/netpfil/pf/pf.c +++ b/sys/netpfil/pf/pf.c @@ -5330,7 +5330,7 @@ pf_test_state_icmp(struct pf_state **state, int direction, struct pfi_kif *kif, if (PF_ANEQ(pd2.dst, &nk->addr[pd2.didx], pd2.af)) - pf_change_icmp(pd2.src, NULL, saddr, + pf_change_icmp(pd2.dst, NULL, saddr, &nk->addr[pd2.didx], 0, NULL, pd2.ip_sum, icmpsum, pd->ip_sum, 0, pd2.af); |