Updated MS/TP FSM to not reply to Broadcast PFM. Thank you, Iqbal Hassan!

This commit is contained in:
skarg
2018-03-01 00:08:43 +00:00
parent 0185fe0314
commit b0f1107a57
9 changed files with 109 additions and 61 deletions
+8 -4
View File
@@ -649,10 +649,14 @@ bool MSTP_Master_Node_FSM(
break;
case FRAME_TYPE_POLL_FOR_MASTER:
/* ReceivedPFM */
MSTP_Create_And_Send_Frame(mstp_port,
FRAME_TYPE_REPLY_TO_POLL_FOR_MASTER,
mstp_port->SourceAddress,
mstp_port->This_Station, NULL, 0);
/* DestinationAddress is equal to TS */
if (mstp_port->DestinationAddress ==
mstp_port->This_Station) {
MSTP_Create_And_Send_Frame(mstp_port,
FRAME_TYPE_REPLY_TO_POLL_FOR_MASTER,
mstp_port->SourceAddress,
mstp_port->This_Station, NULL, 0);
}
break;
case FRAME_TYPE_BACNET_DATA_NOT_EXPECTING_REPLY:
/* indicate successful reception to the higher layers */