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 <richardcochran@gmail.com>
master
Richard Cochran 2015-09-05 21:27:04 +02:00
parent d8bfa0fa69
commit 2201345058
1 changed files with 4 additions and 0 deletions

View File

@ -822,6 +822,10 @@ struct clock *clock_create(struct config *config, int phc_index,
snprintf(udsif->name, sizeof(udsif->name), "%s", snprintf(udsif->name, sizeof(udsif->name), "%s",
config_get_string(config, NULL, "uds_address")); 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, if (config_set_section_int(config, udsif->name,
"network_transport", TRANS_UDS)) { "network_transport", TRANS_UDS)) {
return NULL; return NULL;