- if (ref_indictaion_header == 0){
- error_string = "Invalid reference for Indication Header get fields";
+ asn_dec_rval_t dec_res = asn_decode(0,ATS_ALIGNED_BASIC_PER, &asn_DEF_E2SM_HelloWorld_IndicationHeader, (void**)&(_header), buf, *size);
+
+ if(dec_res.code != RC_OK){
+ mdclog_write(MDCLOG_ERR, "Failed to decode: %s","HW-E2SM RIC Indication Header");
+ _error_string = "Failed to decode HW-E2SM RIC Indication Header";
+ return false;
+ } else {
+ mdclog_write(MDCLOG_INFO, "Successfully decoded: %s","HW-E2SM RIC Indication Header");
+ }
+
+ if (_header == 0){
+ _error_string = "Invalid reference for Indication Header get fields";