HomeFreeBSD

pf: distinguish forwarding and output cases for pf_refragment6()

Description

pf: distinguish forwarding and output cases for pf_refragment6()

Re-introduce PFIL_FWD, because pf's pf_refragment6() needs to know if
we're ip6_forward()-ing or ip6_output()-ing.

ip6_forward() relies on m->m_pkthdr.rcvif, at least for link-local
traffic (for in6_get_unicast_scopeid()). rcvif is not set for locally
generated traffic (e.g. from icmp6_reflect()), so we need to call the
correct output function.

Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revisi: https://reviews.freebsd.org/D39061

Details

Provenance
kpAuthored on Mar 12 2023, 5:34 PM
Parents
rGc91ae48a25ed: sctp: don't do RTT measurements with cookies
Branches
Unknown
Tags
Unknown