port: return timestamping iface in port properties

Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
This commit is contained in:
Hangbin Liu 2017-10-09 22:31:50 +08:00 committed by Richard Cochran
parent 8a349e557c
commit 7092db3030

2
port.c
View File

@ -861,7 +861,7 @@ static int port_management_fill_response(struct port *target,
else
ppn->port_state = target->state;
ppn->timestamping = target->timestamping;
ptp_text_set(&ppn->interface, target->name);
ptp_text_set(&ppn->interface, target->iface->ts_label);
datalen = sizeof(*ppn) + ppn->interface.length;
respond = 1;
break;