diff options
Diffstat (limited to 'src/stats.c')
-rw-r--r-- | src/stats.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stats.c b/src/stats.c index dee5d81a..9c826ccf 100644 --- a/src/stats.c +++ b/src/stats.c @@ -21,6 +21,7 @@ * */ +#include <osmocom/core/byteswap.h> #include <osmocom/core/stats.h> #include <unistd.h> @@ -195,7 +196,7 @@ int osmo_stats_reporter_set_remote_port(struct osmo_stats_reporter *srep, int po return -ENOTSUP; srep->dest_port = port; - sock_addr->sin_port = htons(port); + sock_addr->sin_port = osmo_htons(port); return update_srep_config(srep); } |