summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkp <kp@FreeBSD.org>2016-05-23 13:59:48 +0000
committerLuiz Otavio O Souza <luiz@netgate.com>2016-05-23 13:57:56 -0500
commit131cd15b13bbd3e141e911a65cf7a1895ec6ab05 (patch)
treee543c0668edf9f2d50688f4513f76dbaa4f2472e
parente38a3218f62dd4bee979b7514eb1e9563fadcee7 (diff)
downloadFreeBSD-src-131cd15b13bbd3e141e911a65cf7a1895ec6ab05.zip
FreeBSD-src-131cd15b13bbd3e141e911a65cf7a1895ec6ab05.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.c2
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);
OpenPOWER on IntegriCloud