uint8_t msgtype = 0;
uint8_t payload[MOREP_PAYLOAD] = {0};
seqnum = MOREP_Receive (comm->morep, &msgtype, payload, &len);
-printf("msgtype: %d\n", msgtype);
/* check msg/pdu type */
pdu = undef_pdu_e;
if ((m->service_id == serv->service_id) && (m->msgtype == msgtype)) {
pdu = m->pdu;
msg = m;
-printf("msgtype: %d %d\n", msgtype, msg->msgtype);
}
}
/* check msg type */
VERBOSE (simul, WARNING, PRINTF ("R:%s[%s] [SEQ=%d MSG=%d LEN=%d PDU=%d] message type is not allowed for this service\n", serv->name, comm->etype, seqnum, msg->msgtype, len, pdu));
continue;
}
-printf("msgtype: %d %d %d\n", msgtype, msg->msgtype, exp_msg->msgtype);
if (exp_msg->msgtype != msg->msgtype) {
VERBOSE (simul, WARNING, PRINTF ("R:%s[%s] [SEQ=%d MSG=%d LEN=%d PDU=%d] expected message type %s\n", serv->name, comm->etype, seqnum, msg->msgtype, len, pdu, exp_msg->name));
continue;