From 1516be04e2b88557de0a70dea98acf18e5554d3d Mon Sep 17 00:00:00 2001 From: Richard Cochran Date: Fri, 30 Nov 2012 11:39:21 +0100 Subject: [PATCH] Ignore management response messages. Signed-off-by: Richard Cochran --- clock.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/clock.c b/clock.c index 6eaa054..0dc9b43 100644 --- a/clock.c +++ b/clock.c @@ -596,6 +596,17 @@ void clock_manage(struct clock *c, struct port *p, struct ptp_message *msg) } mgt = (struct management_tlv *) msg->management.suffix; + switch (management_action(msg)) { + case GET: + case SET: + case COMMAND: + break; + case RESPONSE: + case ACKNOWLEDGE: + /* Ignore responses from other nodes. */ + return; + } + if (clock_management_response(c, p, mgt->id, msg)) return;