mirror of
https://github.com/opnsense/src.git
synced 2026-04-29 18:32:49 -04:00
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 |
||
|---|---|---|
| .. | ||
| ipfw | ||
| pf | ||