HomeFreeBSD

pfctl: improve error reporting for routehost

Description

pfctl: improve error reporting for routehost

If an invalid (i.e. overly long) interface name is specified error out
immediately, rather than in expand_rule() so we point at the incorrect
line.

PR: 260958
MFC after: 3 weeks
Differential Revision: https://reviews.freebsd.org/D34008

(cherry picked from commit e68de6694381748b7578703b22580c0f17780b32)

Details

Provenance
kpAuthored on Jan 5 2022, 8:31 PM
Differential Revision
D34008: pfctl: improve error reporting for routehost
Parents
rGc1d34c9c79f3: randomdev: Remove 100 ms sleep from write routine
Branches
Unknown
Tags
Unknown