summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gsm/gsm0341.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gsm/gsm0341.c b/src/gsm/gsm0341.c
index c6526c21..cc773824 100644
--- a/src/gsm/gsm0341.c
+++ b/src/gsm/gsm0341.c
@@ -23,6 +23,8 @@
#include <stdlib.h>
#include <string.h>
+#include <arpa/inet.h>
+
#include <osmocom/core/talloc.h>
#include <osmocom/gsm/protocol/gsm_03_41.h>
@@ -34,6 +36,8 @@ gsm0341_build_msg(void *ctx, uint8_t geo_scope, uint8_t msg_code,
{
struct gsm341_ms_message *cbmsg;
+ msg_id = htons(msg_id);
+
if (len > 88)
return NULL;