use osmo_{htonl,htons,ntohl,ntohs}() functions all over libosmocore

This gets us one step closer to fixing the embedded build

Change-Id: I3fc2639b6ade9ab138766987eceab7ec9498fdc7
diff --git a/src/stats.c b/src/stats.c
index dee5d81..9c826cc 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 @@
 		return -ENOTSUP;
 
 	srep->dest_port = port;
-	sock_addr->sin_port = htons(port);
+	sock_addr->sin_port = osmo_htons(port);
 
 	return update_srep_config(srep);
 }