Skip to content

Commit

Permalink
Add support for the log peer delay interval management request.
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Cochran <[email protected]>
  • Loading branch information
richardcochran committed Mar 4, 2013
1 parent 9b5e37b commit 48aa671
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
6 changes: 6 additions & 0 deletions port.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 48aa671

Please sign in to comment.