git: 6d3ebc9bfcd8 - stable/12 - pf: Copy kif flags to userspace

Kristof Provost kp at FreeBSD.org
Wed Jan 20 14:45:12 UTC 2021


The branch stable/12 has been updated by kp:

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

commit 6d3ebc9bfcd814be6526237ee28f46228ac6c292
Author:     Kristof Provost <kp at FreeBSD.org>
AuthorDate: 2021-01-07 21:24:38 +0000
Commit:     Kristof Provost <kp at 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;
 }


More information about the dev-commits-src-all mailing list