Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Sep 2016 13:53:47 +0200
From:      Franco Fichtner <franco@opnsense.org>
To:        freebsd-pf@freebsd.org
Subject:   pf fastroute tag removal reviewers needed
Message-ID:  <022E4530-A6DF-452B-8978-43A9B10DA726@opnsense.org>

next in thread | raw e-mail | index | archive | help
Hi all,

The review can be found here:

https://reviews.freebsd.org/D8058

The larger motivation is to start work to align pf with pfil
packet flow in order to make pf and ipfw more useful in
combination with each other as e.g. pf offers powerful policy-
routing and ipfw offers a multitude of dummynet algorithms.

The main culprit of pfil not working correctly is pf's
route-to and reply-to (and the tag formerly known as fastroute)
as they would call if_output directly on the ifnet and consume
their packets this way.  That transmit code is also copied from
if_output() and should likely not be called from within pf,
especially when there is a pfil hook chain to go through.

The next targets after this review will be M_IP_NEXTHOP and
M_IP6_NEXTHOP, which ipfw uses to redirect packets by adhering
to the pfil hook chain.


Cheers,
Franco



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?022E4530-A6DF-452B-8978-43A9B10DA726>