From 48aa6712a9b759c9e1cd5506fba1634bff7260fe Mon Sep 17 00:00:00 2001 From: Richard Cochran Date: Mon, 4 Mar 2013 20:27:12 +0100 Subject: [PATCH] Add support for the log peer delay interval management request. Signed-off-by: Richard Cochran --- pmc.c | 5 +++++ port.c | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/pmc.c b/pmc.c index eebb92d..8f16463 100644 --- a/pmc.c +++ b/pmc.c @@ -420,6 +420,11 @@ static void pmc_show(struct ptp_message *msg, FILE *fp) fprintf(fp, "DELAY_MECHANISM " IFMT "delayMechanism %hhu", mtd->val); break; + case LOG_MIN_PDELAY_REQ_INTERVAL: + mtd = (struct management_tlv_datum *) mgt->data; + fprintf(fp, "LOG_MIN_PDELAY_REQ_INTERVAL " + IFMT "logMinPdelayReqInterval %hhd", mtd->val); + break; } out: fprintf(fp, "\n"); diff --git a/port.c b/port.c index 7d1165a..1331388 100644 --- a/port.c +++ b/port.c @@ -591,6 +591,12 @@ static int port_management_get_response(struct port *target, datalen = sizeof(*mtd); respond = 1; break; + case LOG_MIN_PDELAY_REQ_INTERVAL: + mtd = (struct management_tlv_datum *) tlv->data; + mtd->val = target->logMinPdelayReqInterval; + datalen = sizeof(*mtd); + respond = 1; + break; } if (respond) { if (datalen % 2) {