Kernel side implementation to allow switching between on and off modes,
and allow this configuration to be retrieved.
MFC after: 1 week
Sponsored by: Modirum MDPay
Paths
| Differential D31139 Authored by kp on Jul 11 2021, 8:18 AM.
Details
Summary Kernel side implementation to allow switching between on and off modes, MFC after: 1 week
Diff Detail
Event TimelineHerald added subscribers: melifaro, farrokhi, ae, imp. · View Herald TranscriptJul 11 2021, 8:18 AM2021-07-11 08:18:24 (UTC+0) Harbormaster completed remote builds in B40435: Diff 92068.Jul 11 2021, 8:18 AM2021-07-11 08:18:31 (UTC+0) kp added a child revision: D31140: pfctl: syncookie configuration.Jul 11 2021, 8:18 AM2021-07-11 08:18:46 (UTC+0) This revision was not accepted when it landed; it landed in state Needs Review.Jul 20 2021, 8:37 AM2021-07-20 08:37:07 (UTC+0) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 92473 sys/net/pfvar.h
sys/netpfil/pf/pf_ioctl.c
sys/netpfil/pf/pf_syncookies.c
|
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.