HomeFreeBSD

pf: Map hook returns onto the correct error values

Description

pf: Map hook returns onto the correct error values

pf returns PF_PASS, PF_DROP, ... in the netpfil hooks, but the hook callers
expect to get E<foo> error codes.
Map the returns values. A pass is 0 (everything is OK), anything else means
pf ate the packet, so return EACCES, which tells the stack not to emit an ICMP
error message.

PR: 207598

Details

Provenance
kpAuthored on
Parents
rS302496: Rewrite if_ntb to use modern interface KPIs and features.
Branches
Unknown
Tags
Unknown