diff options
Diffstat (limited to 'src/gsmtap_util.c')
-rw-r--r-- | src/gsmtap_util.c | 7 |
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; |