Ignore management response messages.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
master
Richard Cochran 2012-11-30 11:39:21 +01:00
parent ae41fa0f68
commit 1516be04e2
1 changed files with 11 additions and 0 deletions

11
clock.c
View File

@ -596,6 +596,17 @@ void clock_manage(struct clock *c, struct port *p, struct ptp_message *msg)
} }
mgt = (struct management_tlv *) msg->management.suffix; 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)) if (clock_management_response(c, p, mgt->id, msg))
return; return;