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
This commit is contained in:
parent
8b68f2509f
commit
b599e8dc59
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=300508
@ -5014,7 +5014,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);
|
||||
|
Loading…
Reference in New Issue
Block a user