diff options
Diffstat (limited to 'sys/net/pf.c')
-rw-r--r-- | sys/net/pf.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c index b17220d99ac..6e7bb67797a 100644 --- a/sys/net/pf.c +++ b/sys/net/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.784 2011/10/13 18:23:39 claudio Exp $ */ +/* $OpenBSD: pf.c,v 1.785 2011/10/21 09:21:44 mikeb Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -4743,6 +4743,10 @@ pf_test_state_icmp(struct pf_pdesc *pd, struct pf_state **state, pd->destchg = 1; } + 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), pd->hdr.icmp6, M_NOWAIT); |