Add support for the log peer delay interval management request.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>master
parent
9b5e37bbf8
commit
48aa6712a9
5
pmc.c
5
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");
|
||||
|
|
6
port.c
6
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) {
|
||||
|
|
Loading…
Reference in New Issue