summaryrefslogtreecommitdiffstats
path: root/tests/endian/endian_test.ok
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-05-15 12:07:51 +0200
committerHarald Welte <laforge@gnumonks.org>2017-05-15 13:42:00 +0200
commit3318c657dea52c143842dab0e0f7733288f7bd4d (patch)
treeef025d5907529f7d4f4614e6d110e54b9ca0e045 /tests/endian/endian_test.ok
parent054667fe15434e7e467311c7213b50f849aecc79 (diff)
introduce byteswap.h with osmo_{htonl,ntohl,htons,ntohs}
We need to have an architecture-independend way of endian conversion / byte swapping functions which will also work on embedded (bare iron) builds. Let's introduce osmocom/core/bytesawp.h for this purpose. Change-Id: Ibc0cc1e36d4ed63a35cf8ceff3af0f26e5ac7a3d
Diffstat (limited to 'tests/endian/endian_test.ok')
-rw-r--r--tests/endian/endian_test.ok3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/endian/endian_test.ok b/tests/endian/endian_test.ok
new file mode 100644
index 00000000..a42f4575
--- /dev/null
+++ b/tests/endian/endian_test.ok
@@ -0,0 +1,3 @@
+Testing 16bit swappinng
+Testing 32bit swappinng
+Testing ntohX() and htonX()