- IEC 61850 server: don't send bufOvfl for unbuffered reports (see #101)

pull/147/head
Michael Zillgith 7 years ago
parent 8141f1e891
commit 896f5f18e5

@ -325,6 +325,7 @@ sendReport(ReportControl* self, bool isIntegrity, bool isGI)
LinkedList_add(reportElements, optFlds);
/* delete option fields for unsupported options */
MmsValue_setBitStringBit(optFlds, 6, false); /* bufOvfl */
MmsValue_setBitStringBit(optFlds, 7, false); /* entryID */
MmsValue_setBitStringBit(optFlds, 9, false); /* segmentation */
@ -339,13 +340,6 @@ sendReport(ReportControl* self, bool isIntegrity, bool isGI)
if (MmsValue_getBitStringBit(optFlds, 4)) /* data set reference */
LinkedList_add(reportElements, datSet);
if (MmsValue_getBitStringBit(optFlds, 6)) { /* bufOvfl */
MmsValue* bufOvfl = MmsValue_newBoolean(false);
LinkedList_add(reportElements, bufOvfl);
LinkedList_add(deletableElements, bufOvfl);
}
if (MmsValue_getBitStringBit(optFlds, 8))
LinkedList_add(reportElements, self->confRev);

@ -53,7 +53,7 @@ mmsClient_parseListOfAccessResults(AccessResult_t** accessResultList, int listSi
if (presentType == AccessResult_PR_failure) {
if (DEBUG_MMS_CLIENT)
printf("access error!\n");
printf("MMS CLIENT: received access error!\n");
if (accessResultList[i]->choice.failure.size > 0) {
int errorCode = (int) accessResultList[i]->choice.failure.buf[0];

Loading…
Cancel
Save