diff options
| author | Kristof Provost <kp@FreeBSD.org> | 2025-12-26 09:58:59 +0000 |
|---|---|---|
| committer | Kristof Provost <kp@FreeBSD.org> | 2025-12-26 09:58:59 +0000 |
| commit | 2e7699355f08258365fb5f65d11ac297e20f78de (patch) | |
| tree | f1d6c514847d53b1ec908a4aeab70b1fc65cbc9a /lib/libc/tests/string/(public-mirror) | |
| parent | a3394b6a23fb66ccb7e588129d2465ef8ea26d30 (diff) | |
If we're sending a packet via pf_route()/pf_route6() we check for packet
size and potentially generate ICMP(6) packet too big messages. If we do,
don't consider this a rejected packet. That is, return PF_PASS and set
the mbuf to NULL rather than returning PF_DROP.
This matters for locally generated packets, because with PF_DROP we
can end up returning EACCES to userspace, causing the connection to
terminate. Instead, with PF_PASS and a NULL mbuf this is translated to
PFIL_CONSUMED, which does not return an error to userspace.
MFC after: 2 weeks
Sponsored by: Rubicon Communications, LLC ("Netgate")
Diffstat (limited to 'lib/libc/tests/string/(public-mirror)')
0 files changed, 0 insertions, 0 deletions
