Signed-off-by: Martin Pecka <[email protected]>
---
clock.c | 3 ++-
tlv.h | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/clock.c b/clock.c
index cd46b06..d021995 100644
--- a/clock.c
+++ b/clock.c
@@ -465,7 +465,8 @@ static int clock_management_fill_response(struct clock *c,
struct port *p,
break;
case MID_SERVO_STATE_NP:
servo = (struct servo_state_np *) tlv->data;
- servo->state = c->servo_state;
+ servo->state = clock_servo_state(c);
+ servo->reserved = 0;
datalen = sizeof(*servo);
break;
default:
diff --git a/tlv.h b/tlv.h
index fe7b1f8..1553b03 100644
--- a/tlv.h
+++ b/tlv.h
@@ -334,6 +334,7 @@ struct port_ds_np {
struct servo_state_np {
uint8_t state;
+ Octet reserved;
} PACKED;
--
2.17.1
_______________________________________________
Linuxptp-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel