summaryrefslogtreecommitdiffstats
path: root/src/gsm
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2014-12-30 00:43:32 +0100
committerHarald Welte <laforge@gnumonks.org>2014-12-30 00:43:32 +0100
commit63b156a9e04546dae0970e658cfd2d4d1230ced4 (patch)
tree282e33c3773224fa0a0ddbe8b8a6bf493a751aca /src/gsm
parent783d073a370191cdb9cba0f205ded50459663500 (diff)
fixup
Diffstat (limited to 'src/gsm')
-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;