From 971ca0532caaf8713dbf3618e528f392f7cde4a8 Mon Sep 17 00:00:00 2001 From: Luiz Otavio O Souza Date: Sun, 17 Apr 2016 23:11:56 -0500 Subject: Fix a bug in divert.RELENG_10.diff. Found during the patch reviews for 2.4. (cherry picked from commit ea9ba1a51b165fe4540662a900bb800f501bdf74) --- sys/netpfil/pf/pf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netpfil/pf/pf.c b/sys/netpfil/pf/pf.c index ebda220..280c78a 100644 --- a/sys/netpfil/pf/pf.c +++ b/sys/netpfil/pf/pf.c @@ -6549,7 +6549,7 @@ done: continueprocessing: if (action == PF_PASS && r->divert.port && ip_divert_ptr != NULL && - !PACKET_LOOPED(&pd)) { + !PACKET_LOOPED(pd.pf_mtag)) { if (!r->spare2 || (s && s->packets[dir == PF_OUT] <= r->spare2)) { ipfwtag = m_tag_alloc(MTAG_IPFW_RULE, 0, -- cgit v1.1