summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Belopuhov <mikeb@cvs.openbsd.org>2011-10-21 09:21:45 +0000
committerMike Belopuhov <mikeb@cvs.openbsd.org>2011-10-21 09:21:45 +0000
commit592309521182fccb51abc4f75cc2928675ff1328 (patch)
tree4b9f6b5bdccb37cce3254bbbfe46196cf4985b48
parent873364de56ecb104ac0d97035793aa82c15170c9 (diff)
add forgotten fixup for icmp6 id's when translating; ok henning
-rw-r--r--sys/net/pf.c6
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);