Respond to the time properties data set management query.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>master
parent
49a98c1fcf
commit
21840156c3
6
clock.c
6
clock.c
|
@ -163,6 +163,11 @@ static int clock_management_response(struct clock *c, struct port *p, int id,
|
||||||
datalen = sizeof(c->dad.pds);
|
datalen = sizeof(c->dad.pds);
|
||||||
respond = 1;
|
respond = 1;
|
||||||
break;
|
break;
|
||||||
|
case TIME_PROPERTIES_DATA_SET:
|
||||||
|
memcpy(tlv->data, &c->tds, sizeof(c->tds));
|
||||||
|
datalen = sizeof(c->tds);
|
||||||
|
respond = 1;
|
||||||
|
break;
|
||||||
case TIME_STATUS_NP:
|
case TIME_STATUS_NP:
|
||||||
tsn = (struct time_status_np *) tlv->data;
|
tsn = (struct time_status_np *) tlv->data;
|
||||||
tsn->master_offset = c->master_offset;
|
tsn->master_offset = c->master_offset;
|
||||||
|
@ -628,7 +633,6 @@ void clock_manage(struct clock *c, struct port *p, struct ptp_message *msg)
|
||||||
case INITIALIZE:
|
case INITIALIZE:
|
||||||
case FAULT_LOG:
|
case FAULT_LOG:
|
||||||
case FAULT_LOG_RESET:
|
case FAULT_LOG_RESET:
|
||||||
case TIME_PROPERTIES_DATA_SET:
|
|
||||||
case PRIORITY1:
|
case PRIORITY1:
|
||||||
case PRIORITY2:
|
case PRIORITY2:
|
||||||
case DOMAIN:
|
case DOMAIN:
|
||||||
|
|
Loading…
Reference in New Issue