diff --git a/ntp_io_linux.c b/ntp_io_linux.c index 6f794c7..da39c95 100644 --- a/ntp_io_linux.c +++ b/ntp_io_linux.c @@ -171,6 +171,12 @@ add_interface(CNF_HwTsInterface *conf_iface) return 0; } + if (ts_info.phc_index < 0) { + DEBUG_LOG("PHC missing on %s", req.ifr_name); + close(sock_fd); + return 0; + } + ts_config.flags = 0; ts_config.tx_type = HWTSTAMP_TX_ON;