The pmc program has a "-b" option, and the new checksync program will
have such an option too, but not via command-line switches (ok,
technically you can do "--boundary-hops=1"), but instead via its config
file.

So add "boundary_hops" as a valid configuration item, with a default of
1 and a valid range from 0 to 25..

Signed-off-by: Vladimir Oltean <olte...@gmail.com>
---
 config.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/config.c b/config.c
index 6ee46b448adc..82cd6b1ce8bd 100644
--- a/config.c
+++ b/config.c
@@ -225,6 +225,7 @@ struct config_item config_tab[] = {
        PORT_ITEM_INT("announceReceiptTimeout", 3, 2, UINT8_MAX),
        PORT_ITEM_ENU("asCapable", AS_CAPABLE_AUTO, as_capable_enu),
        GLOB_ITEM_INT("assume_two_step", 0, 0, 1),
+       PORT_ITEM_INT("boundary_hops", 1, 0, 255),
        PORT_ITEM_INT("boundary_clock_jbod", 0, 0, 1),
        PORT_ITEM_ENU("BMCA", BMCA_PTP, bmca_enu),
        GLOB_ITEM_INT("check_fup_sync", 0, 0, 1),
-- 
2.25.1



_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to