Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Jan 2021 14:45:06 GMT
From:      Kristof Provost <kp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 6d3ebc9bfcd8 - stable/12 - pf: Copy kif flags to userspace
Message-ID:  <202101201445.10KEj66k019558@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/12 has been updated by kp:

URL: https://cgit.FreeBSD.org/src/commit/?id=6d3ebc9bfcd814be6526237ee28f46228ac6c292

commit 6d3ebc9bfcd814be6526237ee28f46228ac6c292
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2021-01-07 21:24:38 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2021-01-20 14:16:05 +0000

    pf: Copy kif flags to userspace
    
    This was overlooked in the pfi_kkif/pfi_kif splitup and as a result
    userspace could no longer tell which interfaces had the skip flag
    applied.
    
    MFC after:      2 weeks
    
    (cherry picked from commit 0fcb03fbaca1307175edc96355c867471db309f8)
---
 sys/netpfil/pf/pf_if.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/netpfil/pf/pf_if.c b/sys/netpfil/pf/pf_if.c
index 9ca404174cca..48733d351a24 100644
--- a/sys/netpfil/pf/pf_if.c
+++ b/sys/netpfil/pf/pf_if.c
@@ -815,6 +815,7 @@ pf_kkif_to_kif(const struct pfi_kkif *kkif, struct pfi_kif *kif)
 			}
 		}
 	}
+	kif->pfik_flags = kkif->pfik_flags;
 	kif->pfik_tzero = kkif->pfik_tzero;
 	kif->pfik_rulerefs = kkif->pfik_rulerefs;
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101201445.10KEj66k019558>