summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt2
-rw-r--r--src/ipcpd/udp/main.c14
2 files changed, 9 insertions, 7 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9585ad2f..d7bbff2a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -9,7 +9,7 @@ include(GNUInstallDirs)
set(PACKAGE_VERSION_MAJOR 0)
set(PACKAGE_VERSION_MINOR 15)
-set(PACKAGE_VERSION_PATCH 0)
+set(PACKAGE_VERSION_PATCH 1)
set(PACKAGE_NAME "${CMAKE_PROJECT_NAME}")
set(PACKAGE_DESCRIPTION "The Ouroboros prototype")
diff --git a/src/ipcpd/udp/main.c b/src/ipcpd/udp/main.c
index 559be55a..9f45bc73 100644
--- a/src/ipcpd/udp/main.c
+++ b/src/ipcpd/udp/main.c
@@ -438,14 +438,16 @@ static void * ipcp_udp_mgmt_handler(void * o)
static void * ipcp_udp_packet_reader(void * o)
{
- uint8_t buf[IPCP_UDP_MAX_PACKET_SIZE];
- uint8_t * data;
- ssize_t n;
- uint32_t eid;
+ uint8_t buf[IPCP_UDP_MAX_PACKET_SIZE];
+ uint8_t * data;
+ ssize_t n;
+ uint32_t eid;
+ uint32_t * eid_p;
(void) o;
- data = buf + sizeof(uint32_t);
+ data = buf + sizeof(uint32_t);
+ eid_p = (uint32_t *) buf;
while (true) {
struct mgmt_frame * frame;
@@ -467,7 +469,7 @@ static void * ipcp_udp_packet_reader(void * o)
continue;
}
- eid = ntoh32(*((uint32_t *) buf));
+ eid = ntoh32(*eid_p);
/* pass onto mgmt queue */
if (eid == MGMT_EID) {