.Cd lldp tx-interval Ar interval
.Bd -ragged -offset XXXXXX
Change transmit delay to the specified value in seconds. The transmit
-delay is the delay between two transmissions of LLDP PDU. The default
-value is 30 seconds. Note:
+delay is the delay between two transmissions of LLDP PDU. The valid range
+is 1 through 3600 in seconds. The default value is 30 seconds. Note:
.Nm lldpd
also starts another system based refresh timer on each port to detect
changes such as a hostname. This is the value of the tx-interval
.Bd -ragged -offset XXXXXX
Change transmit hold value to the specified value. This value is used
to compute the TTL of transmitted packets which is the product of this
-value and of the transmit delay. The default value is 4 and therefore
-the default TTL is 120 seconds.
+value and of the transmit delay. The valid range is 1 through 100. The
+default value is 4 and therefore the default TTL is 120 seconds.
.Ed
.Cd configure
.Cd enable
should enable LLDP-MED fast start while
.Cd tx-interval
-specifies the interval between two LLDPDU in seconds. The default
-interval is 1 second. Once 4 LLDPDU have been sent, the fast start
-mechanism is disabled until a new neighbor is detected.
+specifies the interval between two LLDPDU in seconds. The valid interval
+range is 1 through 3600 in seconds. The default interval is 1 second. Once
+4 LLDPDU have been sent, the fast start mechanism is disabled until a new
+neighbor is detected.
.Ed
.Cd unconfigure med fast-start
break;
case lldpctl_k_config_tx_interval:
config.c_tx_interval = value * 1000;
- if (value > 0) c->config->c_tx_interval = value * 1000;
+ if (value > 0 && value <= 3600 * 1000)
+ c->config->c_tx_interval = value * 1000;
break;
case lldpctl_k_config_tx_interval_ms:
config.c_tx_interval = value;
- if (value > 0) c->config->c_tx_interval = value;
+ if (value > 0 && value <= 3600 * 1000)
+ c->config->c_tx_interval = value;
break;
case lldpctl_k_config_ifdescr_update:
config.c_set_ifdescr = c->config->c_set_ifdescr = value;
config.c_enable_fast_start = c->config->c_enable_fast_start = value;
break;
case lldpctl_k_config_fast_start_interval:
- config.c_tx_fast_interval = c->config->c_tx_fast_interval = value;
+ config.c_tx_fast_interval = value;
+ if (value > 0 && value <= 3600)
+ c->config->c_tx_fast_interval = value;
break;
#endif
case lldpctl_k_config_tx_hold:
config.c_tx_hold = value;
- if (value > 0) c->config->c_tx_hold = value;
+ if (value > 0 && value <= 100)
+ c->config->c_tx_hold = value;
break;
case lldpctl_k_config_max_neighbors:
config.c_max_neighbors = value;