From 2201345058e0ea461c06950c38575735deba4a03 Mon Sep 17 00:00:00 2001 From: Richard Cochran Date: Sat, 5 Sep 2015 21:27:04 +0200 Subject: [PATCH] uds: restore delay mechanism to zero value. The new configuration code inadvertently causes the UDS port to use P2P messaging when P2P is set as a global option. This results in a never ending series of "missing timestamp" error messages from the UDS port as it vainly tries to send peer delay requests. This patch fixes the bug by changing the UDS delay mechanism back to zero as it was before. This is the appropriate setting for the UDS port, because it never leaves the listening state and thus never sends an E2E delay request. Signed-off-by: Richard Cochran --- clock.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/clock.c b/clock.c index f94960d..acfc7a3 100644 --- a/clock.c +++ b/clock.c @@ -822,6 +822,10 @@ struct clock *clock_create(struct config *config, int phc_index, snprintf(udsif->name, sizeof(udsif->name), "%s", config_get_string(config, NULL, "uds_address")); + if (config_set_section_int(config, udsif->name, + "delay_mechanism", DM_AUTO)) { + return NULL; + } if (config_set_section_int(config, udsif->name, "network_transport", TRANS_UDS)) { return NULL;