Feature #4190
closedosmo_tdef: Add fields min_val,max_val and enforce those
100%
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.
Updated by pespin over 4 years ago
- Status changed from New to Feedback
- % Done changed from 0 to 90
https://gerrit.osmocom.org/c/libosmocore/+/15546 tdef: Introduce min_val and max_val fields
Once merged the ticket can be closed.
Updated by pespin over 4 years ago
- Status changed from Feedback to Resolved
- % Done changed from 90 to 100