diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2021-05-26 06:44:29 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2021-05-26 06:44:29 +0000 |
commit | b39d959eafed7e50c4a8a463a55b8ace28a969cd (patch) | |
tree | c7cc47b58c32b2a84e333ded33546d2e0594b640 /usr.sbin/smtpd/smtp | |
parent | 5a0beaf267f61004b0e7a5376afe4549dbf9e8f5 (diff) |
add support for pf divert-to on tpmr, like what was done for veb(4).
when a divert-to rule applies to a packet, pf doesnt take the packet
away and shove it in the socket directly. pf marks the packet, and
then ip (or ipv6) input processing looks at the mark and picks the
local socket to queue it on. because tpmr operates at layer 2, ip
input has no chance to look at the packet and let the divert socket
steal it.
bridge(4) and now veb(4) handle this by checking if the packet has
the pf divert to mark set on it and calls ip input if it's set.
this copies the semantic to tpmr.
Diffstat (limited to 'usr.sbin/smtpd/smtp')
0 files changed, 0 insertions, 0 deletions