config: port: convert 'logMinDelayReqInterval' to the new scheme.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>master
parent
769a8d3fa6
commit
0578e321fb
9
config.c
9
config.c
|
@ -96,6 +96,7 @@ struct config_item config_tab[] = {
|
||||||
PORT_ITEM_INT("delayAsymmetry", 0, INT_MIN, INT_MAX),
|
PORT_ITEM_INT("delayAsymmetry", 0, INT_MIN, INT_MAX),
|
||||||
GLOB_ITEM_DBL("first_step_threshold", 0.00002, 0.0, DBL_MAX),
|
GLOB_ITEM_DBL("first_step_threshold", 0.00002, 0.0, DBL_MAX),
|
||||||
PORT_ITEM_INT("logAnnounceInterval", 1, INT8_MIN, INT8_MAX),
|
PORT_ITEM_INT("logAnnounceInterval", 1, INT8_MIN, INT8_MAX),
|
||||||
|
PORT_ITEM_INT("logMinDelayReqInterval", 0, INT8_MIN, INT8_MAX),
|
||||||
PORT_ITEM_INT("logSyncInterval", 0, INT8_MIN, INT8_MAX),
|
PORT_ITEM_INT("logSyncInterval", 0, INT8_MIN, INT8_MAX),
|
||||||
GLOB_ITEM_INT("logging_level", LOG_INFO, PRINT_LEVEL_MIN, PRINT_LEVEL_MAX),
|
GLOB_ITEM_INT("logging_level", LOG_INFO, PRINT_LEVEL_MIN, PRINT_LEVEL_MAX),
|
||||||
GLOB_ITEM_INT("max_frequency", 900000000, 0, INT_MAX),
|
GLOB_ITEM_INT("max_frequency", 900000000, 0, INT_MAX),
|
||||||
|
@ -265,13 +266,7 @@ static enum parser_result parse_pod_setting(const char *option,
|
||||||
|
|
||||||
enum parser_result r;
|
enum parser_result r;
|
||||||
|
|
||||||
if (!strcmp(option, "logMinDelayReqInterval")) {
|
if (!strcmp(option, "logMinPdelayReqInterval")) {
|
||||||
r = get_ranged_int(value, &val, INT8_MIN, INT8_MAX);
|
|
||||||
if (r != PARSED_OK)
|
|
||||||
return r;
|
|
||||||
pod->logMinDelayReqInterval = val;
|
|
||||||
|
|
||||||
} else if (!strcmp(option, "logMinPdelayReqInterval")) {
|
|
||||||
r = get_ranged_int(value, &val, INT8_MIN, INT8_MAX);
|
r = get_ranged_int(value, &val, INT8_MIN, INT8_MAX);
|
||||||
if (r != PARSED_OK)
|
if (r != PARSED_OK)
|
||||||
return r;
|
return r;
|
||||||
|
|
1
ds.h
1
ds.h
|
@ -125,7 +125,6 @@ struct portDS {
|
||||||
#define FRI_ASAP (-128)
|
#define FRI_ASAP (-128)
|
||||||
|
|
||||||
struct port_defaults {
|
struct port_defaults {
|
||||||
Integer8 logMinDelayReqInterval;
|
|
||||||
Integer8 logMinPdelayReqInterval;
|
Integer8 logMinPdelayReqInterval;
|
||||||
UInteger8 announceReceiptTimeout;
|
UInteger8 announceReceiptTimeout;
|
||||||
UInteger8 syncReceiptTimeout;
|
UInteger8 syncReceiptTimeout;
|
||||||
|
|
2
port.c
2
port.c
|
@ -1444,7 +1444,7 @@ static int port_initialize(struct port *p)
|
||||||
p->multiple_seq_pdr_count = 0;
|
p->multiple_seq_pdr_count = 0;
|
||||||
p->multiple_pdr_detected = 0;
|
p->multiple_pdr_detected = 0;
|
||||||
p->last_fault_type = FT_UNSPECIFIED;
|
p->last_fault_type = FT_UNSPECIFIED;
|
||||||
p->logMinDelayReqInterval = p->pod.logMinDelayReqInterval;
|
p->logMinDelayReqInterval = config_get_int(cfg, p->name, "logMinDelayReqInterval");
|
||||||
p->peerMeanPathDelay = 0;
|
p->peerMeanPathDelay = 0;
|
||||||
p->logAnnounceInterval = config_get_int(cfg, p->name, "logAnnounceInterval");
|
p->logAnnounceInterval = config_get_int(cfg, p->name, "logAnnounceInterval");
|
||||||
p->announceReceiptTimeout = p->pod.announceReceiptTimeout;
|
p->announceReceiptTimeout = p->pod.announceReceiptTimeout;
|
||||||
|
|
Loading…
Reference in New Issue