From 592309521182fccb51abc4f75cc2928675ff1328 Mon Sep 17 00:00:00 2001 From: Mike Belopuhov Date: Fri, 21 Oct 2011 09:21:45 +0000 Subject: add forgotten fixup for icmp6 id's when translating; ok henning --- sys/net/pf.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys/net') 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); -- cgit v1.2.3