Add support for the log peer delay interval management request.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
master
Richard Cochran 2013-03-04 20:27:12 +01:00
parent 9b5e37bbf8
commit 48aa6712a9
2 changed files with 11 additions and 0 deletions

5
pmc.c
View File

@ -420,6 +420,11 @@ static void pmc_show(struct ptp_message *msg, FILE *fp)
fprintf(fp, "DELAY_MECHANISM " fprintf(fp, "DELAY_MECHANISM "
IFMT "delayMechanism %hhu", mtd->val); IFMT "delayMechanism %hhu", mtd->val);
break; 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: out:
fprintf(fp, "\n"); fprintf(fp, "\n");

6
port.c
View File

@ -591,6 +591,12 @@ static int port_management_get_response(struct port *target,
datalen = sizeof(*mtd); datalen = sizeof(*mtd);
respond = 1; respond = 1;
break; 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 (respond) {
if (datalen % 2) { if (datalen % 2) {