From a5a6ffb506aa3c2a0c7fe8fd09abf3f737984aa5 Mon Sep 17 00:00:00 2001 From: "Enrico Loparco (eloparco)" Date: Tue, 23 Mar 2021 14:58:34 +0100 Subject: [HICN-645] Fix data structures to support hicn-light-daemon and hicn-light-control communication The daemon should be able to start, receive commands from hicn-light-control and execute them. Signed-off-by: Enrico Loparco (eloparco) Change-Id: I0ca5bb3d9bdfb37ac8cfa9f671f6c162c9a394f5 Signed-off-by: Enrico Loparco (eloparco) --- hicn-light/src/hicn/utils/utils.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'hicn-light/src/hicn/utils') diff --git a/hicn-light/src/hicn/utils/utils.c b/hicn-light/src/hicn/utils/utils.c index 42bcb7f87..2bfd8dc94 100644 --- a/hicn-light/src/hicn/utils/utils.c +++ b/hicn-light/src/hicn/utils/utils.c @@ -128,8 +128,8 @@ bool utils_IsNumber(const char *string) { //uint32_t currentSeqNum = utils_GetNextSequenceNumber(); // //// Allocate and fill the header -//header_control_message *headerControlMessage = -// parcMemory_AllocateAndClear(sizeof(header_control_message)); +//cmd_header_t *headerControlMessage = +// parcMemory_AllocateAndClear(sizeof(cmd_header_t)); //headerControlMessage->messageType = REQUEST_LIGHT; //headerControlMessage->commandID = command; //headerControlMessage->seqNum = currentSeqNum; @@ -139,14 +139,14 @@ bool utils_IsNumber(const char *string) { // //struct iovec msg[2]; //msg[0].iov_base = headerControlMessage; -//msg[0].iov_len = sizeof(header_control_message); +//msg[0].iov_len = sizeof(cmd_header_t); //msg[1].iov_base = payload; //msg[1].iov_len = payloadLen; // //struct iovec *response = controlState_WriteRead(state, msg); // -//header_control_message *receivedHeader = -// (header_control_message *)response[0].iov_base; +//cmd_header_t *receivedHeader = +// (cmd_header_t *)response[0].iov_base; //if (receivedHeader->seqNum != currentSeqNum) { //printf("Seq number is NOT correct: expected %d got %d \n", currentSeqNum, // receivedHeader->seqNum); -- cgit 1.2.3-korg