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 D34008 Authored by kp on Jan 23 2022, 3:05 PM.
Details Summary If an invalid (i.e. overly long) interface name is specified error out PR: 260958
Diff Detail
Event TimelineHerald added a subscriber: imp. · View Herald TranscriptJan 23 2022, 3:05 PM2022-01-23 15:05:12 (UTC+0) Harbormaster completed remote builds in B44057: Diff 101825.Jan 23 2022, 3:05 PM2022-01-23 15:05:12 (UTC+0) This revision was not accepted when it landed; it landed in state Needs Review.Jan 27 2022, 7:51 AM2022-01-27 07:51:47 (UTC+0) Closed by commit rGe68de6694381: pfctl: improve error reporting for routehost (authored by kp). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 101978 sbin/pfctl/parse.y
|
I would maybe call the hint cppc_notify with the sense being that "1" enables it and "0" disables notifications (we try to avoid "negative" hints/tunables). You would then just want to set the default value to 1 and change the last test to cppcval != 0. I would also perhaps rename cppcval to cppc_notify as well.