Fixed NDPU comparison functions that were missing segment-ack PDU. (#991)
This commit is contained in:
@@ -200,6 +200,7 @@ static bool MSTP_Compare_Data_Expecting_Reply(
|
||||
break;
|
||||
case PDU_TYPE_REJECT:
|
||||
case PDU_TYPE_ABORT:
|
||||
case PDU_TYPE_SEGMENT_ACK:
|
||||
reply.invoke_id = reply_pdu[offset + 1];
|
||||
break;
|
||||
default:
|
||||
@@ -207,7 +208,8 @@ static bool MSTP_Compare_Data_Expecting_Reply(
|
||||
}
|
||||
/* these don't have service choice included */
|
||||
if ((reply.pdu_type == PDU_TYPE_REJECT) ||
|
||||
(reply.pdu_type == PDU_TYPE_ABORT)) {
|
||||
(reply.pdu_type == PDU_TYPE_ABORT) ||
|
||||
(reply.pdu_type == PDU_TYPE_SEGMENT_ACK)) {
|
||||
if (request.invoke_id != reply.invoke_id) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user