summaryrefslogtreecommitdiffstats
path: root/.gitignore
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2016-04-14 19:41:01 +0545
committerChris Buechler <cmb@pfsense.org>2016-04-15 03:09:36 -0500
commit5e367fdde9d9c6fddfae9c99e5929673618ebf87 (patch)
tree158140fb36264e6e9f529141a77a422b646f743c /.gitignore
parent177410c0c004176d5e732d682e500bae0a929c80 (diff)
downloadpfsense-5e367fdde9d9c6fddfae9c99e5929673618ebf87.zip
pfsense-5e367fdde9d9c6fddfae9c99e5929673618ebf87.tar.gz
Fix #6142 validate and adjust dpinger params on upgrade
1) The previous "down" value was being converted to msec and put into "loss_interval". It should go into "time_period". 2) loss_interval must always be at least latencyhigh - make it so if latencyhigh is big. 3) alert_interval must always be at least probe interval - make it so if the probe interval is high. 4) The time_period for averaging the results must be at least 2 probe intervals plus loss_interval (ensuring there should always be 2 probe results by the time_period expiry) - make it so. These various conditions taken from the validation code in system_gateways_edit.php Note: I have explicitly put the necessary default dpinger parameter values here, rather than calling return_dpinger_defaults() because at this point in any future conversion we want to use these particular numbers, not what the defaults happen to be in pfSense 2.4 or 3.0 or...
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud