On Mon, Mar 05, 2018 at 05:58:07PM +0100, Oliver Westermann wrote: > 2018-03-05 16:03 GMT+01:00 Richard Cochran <richardcoch...@gmail.com>: > > > > Do you mean using -b0 instead of -b1? > > > Using pmc to get the status of the local device and parsing it, which needs > to be much more > robust to unexpected data than I assumed in the first place.
The pmc is really a simple tool. You can call it or script it for simple use cases, but for more complex use cases, probably writing a proper client is the way to go. See phc2sys.c for an example of such a program. In the function, run_pmc(), we have parsing code like this: *msg = pmc_recv(node->pmc); if (!*msg) continue; if (!check_clock_identity(node, *msg)) { msg_put(*msg); *msg = NULL; continue; } res = is_msg_mgt(*msg); if (res < 0 && get_mgt_err_id(*msg) == ds_id) { node->pmc_ds_requested = 0; return -1; } if (res <= 0 || recv_subscribed(node, *msg, ds_id) || get_mgt_id(*msg) != ds_id) { msg_put(*msg); *msg = NULL; continue; } > Is there an option to not get the management messages of other clients on > the network? No, there is not. Sorry, Richard ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Linuxptp-users mailing list Linuxptp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-users