HomeFreeBSD

libpfct: Return errno from pfctl_add_eth_rule()

Description

libpfct: Return errno from pfctl_add_eth_rule()

If the pfctl_add_eth_rule() ioctl fails return the errno, not the error
returned by ioctl(). That will give us slightly more insight into what
went wrong, because ioctl() would always return -1.

Sponsored by: Rubicon Communications, LLC ("Netgate")

Details

Provenance
kpAuthored on Mar 29 2022, 12:15 PM
Parents
rG9bb06778f822: pf: support listing ethernet anchors
Branches
Unknown
Tags
Unknown