From cc7c724eb0652618794f60334e731227999d681e Mon Sep 17 00:00:00 2001 From: Richard Cochran Date: Sat, 1 Dec 2012 08:32:40 +0100 Subject: [PATCH] Respond to the default data set management query. Signed-off-by: Richard Cochran --- clock.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/clock.c b/clock.c index 081da91..4516a67 100644 --- a/clock.c +++ b/clock.c @@ -148,6 +148,11 @@ static int clock_management_response(struct clock *c, struct port *p, int id, tlv->id = id; switch (id) { + case DEFAULT_DATA_SET: + memcpy(tlv->data, &c->dds, sizeof(c->dds)); + datalen = sizeof(c->dds); + respond = 1; + break; case CURRENT_DATA_SET: memcpy(tlv->data, &c->cur, sizeof(c->cur)); datalen = sizeof(c->cur); @@ -624,7 +629,6 @@ void clock_manage(struct clock *c, struct port *p, struct ptp_message *msg) case INITIALIZE: case FAULT_LOG: case FAULT_LOG_RESET: - case DEFAULT_DATA_SET: case PARENT_DATA_SET: case TIME_PROPERTIES_DATA_SET: case PRIORITY1: