HomeFreeBSD

pf: duplicate frames only once when using dup-to pf rule

Description

pf: duplicate frames only once when using dup-to pf rule

When using DUP-TO rule, frames are duplicated 3 times on both output
interfaces and duplication interface. Add a flag to not duplicate a
duplicated frame.

Inspired by a patch from MiƂosz Kaniewski milosz.kaniewski at gmail.com
https://lists.freebsd.org/pipermail/freebsd-pf/2015-November/007886.html

Reviewed by: kp@
Differential Revision: https://reviews.freebsd.org/D27018

(cherry picked from commit 0c458752ceee14818034df7bfcdfb04129dceeda)

Details

Provenance
yannis.planus_alstomgroup.comAuthored on Jan 28 2021, 1:59 PM
kpCommitted on Feb 23 2021, 11:46 AM
Differential Revision
D27018: Duplicate frames only once when using dup-to pf rule
Parents
rG1c23f70aeb29: pgcache read: protect against reads past end of the vm object size
Branches
Unknown
Tags
Unknown