if (HAVE_OPT( SLEW ))
clock_max = 600;
- if (HAVE_OPT( UPDATEINTERVAL ) {
- long val;
+ if (HAVE_OPT( UPDATEINTERVAL )) {
+ long val = OPT_VALUE_UPDATEINTERVAL;
extern int interface_interval;
- if ((1 == sscanf(OPT_ARG( UPDATEINTERVAL ), "%ld", &val)) && ((val >= 60) || (val == 0)))
+ if ((val >= 60) || (val == 0))
interface_interval = val;
else {
msyslog(LOG_ERR,
- "command line interface update interval %s must be 0 or longer than 60 seconds",
- ntp_optarg);
+ "command line interface update interval %ld must be 0 or longer than 60 seconds",
+ val);
errflg++;
}
}
_EndOfDoc_;
};
+flag = {
+ name = updateinterval;
+ value = U;
+ arg-type = number;
+ descrip = "interval in seconds between scans for new or dropped interfaces";
+ doc = <<- _EndOfDoc_
+ Give the time in seconds between two scans for new or dropped interfaces.
+ For systems with routing socket support the scans will be performed shortly after the interface change
+ has been detected by the system.
+ Use 0 to disable scanning. 60 seconds is the minimum time between scans.
+ _EndOfDoc_;
+};
+
flag = {
name = statsdir;
value = s;