mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 19:34:43 +01:00
pf: add forgotten fixup for icmp6 id's when translating
ok henning Obtained from: OpenBSD, mikeb <[email protected]>, 7dde5f4db5 Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D47799
This commit is contained in:
1 parent
373d6dbf34
commit
f1ddd7f1da
1 file changed
+4
@@ -7815,6 +7815,10 @@ pf_test_state_icmp(struct pf_kstate **state, struct pf_pdesc *pd,
|
||||
&pd->hdr.icmp6.icmp6_cksum,
|
||||
&nk->addr[didx], 0);
|
||||
|
||||
if (nk->port[iidx] != pd->hdr.icmp6.icmp6_id)
|
||||
pd->hdr.icmp6.icmp6_id =
|
||||
nk->port[iidx];
|
||||
|
||||
m_copyback(pd->m, pd->off, sizeof(struct icmp6_hdr),
|
||||
(caddr_t )&pd->hdr.icmp6);
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user