Always set the clock class to 255 when slave only mode is configured.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>master
parent
852d587fd3
commit
81648e81ed
4
ptp4l.c
4
ptp4l.c
|
@ -195,7 +195,6 @@ int main(int argc, char *argv[])
|
|||
break;
|
||||
case 's':
|
||||
ds->slaveOnly = TRUE;
|
||||
ds->clockQuality.clockClass = 255;
|
||||
*cfg_ignore |= CFG_IGNORE_SLAVEONLY;
|
||||
break;
|
||||
case 'l':
|
||||
|
@ -226,6 +225,9 @@ int main(int argc, char *argv[])
|
|||
fprintf(stderr, "failed to read configuration file\n");
|
||||
return -1;
|
||||
}
|
||||
if (ds->slaveOnly) {
|
||||
ds->clockQuality.clockClass = 255;
|
||||
}
|
||||
|
||||
print_set_verbose(cfg_settings.verbose);
|
||||
print_set_syslog(cfg_settings.use_syslog);
|
||||
|
|
Loading…
Reference in New Issue