Actions
Feature #4190
closedosmo_tdef: Add fields min_val,max_val and enforce those
Start date:
09/05/2019
Due date:
% Done:
100%
Spec Reference:
Description
Specs sometimes provide the valid range for some timers.
The idea is to be able to specify during configuration of the osmo_tdef the range of valid values that a given timer can take.
min_val and max_val, same as for val, are considered to be in units specified in the "unit" field.
Example: { .T=3193, .default_val=5, .unit=OSMO_TDEF_MS, .min_val=2, .max_val=300, .desc="Force to STANDBY on expiry timer (s)"},
T3193 is a timer whose default value is 5ms, and can be changed through API or VTY to any value between 2ms and 300ms.
.default_val being valid inside range is checked during osmo_tdefs_reset(), and if fails, osmo_panic() is called.
Actions