Fixed NDPU comparison functions that were missing segment-ack PDU. (#991)
This commit is contained in:
@@ -265,6 +265,7 @@ static bool dlmstp_compare_data_expecting_reply(const uint8_t *request_pdu,
|
||||
break;
|
||||
case PDU_TYPE_REJECT:
|
||||
case PDU_TYPE_ABORT:
|
||||
case PDU_TYPE_SEGMENT_ACK:
|
||||
reply.invoke_id = reply_pdu[offset + 1];
|
||||
break;
|
||||
default:
|
||||
@@ -275,7 +276,8 @@ static bool dlmstp_compare_data_expecting_reply(const uint8_t *request_pdu,
|
||||
}
|
||||
/* these services 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.service_choice != reply.service_choice) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user