Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 00802cba authored by Lorenzo Colitti's avatar Lorenzo Colitti
Browse files

Simplify enums in BandwidthController.

1. Ensure that the code always uses all enum values. This
   provides a clear compile-time error if a passed-in enum value
   is not handled, and allows us to remove several default
   case labels and unreachable error logging code.
2. Factor out to common functions the code that converts enum
   values to parts of iptables command lines.

(cherry picked from commit d9db08c4)

Bug: 32073253
Test: netd_{unit,integration}_test pass
Change-Id: I7136055100dc312fa7cb8bba5506fe86412b1f4d
Merged-In: I7136055100dc312fa7cb8bba5506fe86412b1f4d
parent af1b5c74
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment