In order to improve readability, use switch statements to
differentiate between the different ECN signallings.
Also, access the ACE field by bit-shifting instead checking
each flag individually.
No change in behaviour.
Differential D43560
tcp: improve tcp_ecn by using switch statements and bit-shifting rscheff on Jan 23 2024, 2:49 PM. Authored by Tags None Referenced Files
Details In order to improve readability, use switch statements to Also, access the ACE field by bit-shifting instead checking No change in behaviour.
Diff Detail
Event TimelineComment Actions P.S. There are so many sysctl toggles that ask for SYSCTL_INT_MINMAX() macro, to avoid coding out yet another value checking function but to block user from entering invalid value.
Comment Actions
|