summaryrefslogtreecommitdiffstats
path: root/src/gsmtap_util.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-05-15 12:11:36 +0200
committerHarald Welte <laforge@gnumonks.org>2017-05-15 13:42:03 +0200
commit95871dadbd92048b0dc2ceb2d631a53e062a7420 (patch)
tree1d9de18dda6837429409d235171270706bce7041 /src/gsmtap_util.c
parent3318c657dea52c143842dab0e0f7733288f7bd4d (diff)
use osmo_{htonl,htons,ntohl,ntohs}() functions all over libosmocore
This gets us one step closer to fixing the embedded build Change-Id: I3fc2639b6ade9ab138766987eceab7ec9498fdc7
Diffstat (limited to 'src/gsmtap_util.c')
-rw-r--r--src/gsmtap_util.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gsmtap_util.c b/src/gsmtap_util.c
index ab4a28eb..74f3b48d 100644
--- a/src/gsmtap_util.c
+++ b/src/gsmtap_util.c
@@ -29,13 +29,12 @@
#include <osmocom/core/talloc.h>
#include <osmocom/core/select.h>
#include <osmocom/core/socket.h>
+#include <osmocom/core/byteswap.h>
#include <osmocom/gsm/protocol/gsm_04_08.h>
#include <osmocom/gsm/rsl.h>
#include <sys/types.h>
-#include <arpa/inet.h>
-
#include <stdio.h>
#include <unistd.h>
#include <stdint.h>
@@ -123,10 +122,10 @@ struct msgb *gsmtap_makemsg_ex(uint8_t type, uint16_t arfcn, uint8_t ts, uint8_t
gh->type = type;
gh->timeslot = ts;
gh->sub_slot = ss;
- gh->arfcn = htons(arfcn);
+ gh->arfcn = osmo_htons(arfcn);
gh->snr_db = snr;
gh->signal_dbm = signal_dbm;
- gh->frame_number = htonl(fn);
+ gh->frame_number = osmo_htonl(fn);
gh->sub_type = chan_type;
gh->antenna_nr = 0;