On Wed, Dec 06, 2017 at 08:02:56AM -0800, Richard Cochran wrote: > On Wed, Dec 06, 2017 at 02:44:23PM +0100, Miroslav Lichvar wrote: > > A better option might be to forward only responses to the UDS port. We > > don't expect a PTP clock to be listening there, right? > > Right, but we should also forward the ACKNOWLEDGE messages.
Ok. > Yes, but the check should be made in this function > > static int forwarding(struct clock *c, struct port *p) > > by passing in the 'msg' as well. The trouble is that forwarding() is called twice from clock_forward_mgmt_msg(), once with the source port and then with the destination port. So, if it returned 0 for p == uds->port and action == REQUEST, requests from pmc would not be forwarded. Should it pass NULL as a msg in the first call to avoid the action check? -- Miroslav Lichvar ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel