Add a GSM RLP decoder and encoder

This code implements a decoder and encoder for the RLP (Radio Link
Protocol) as used in the bearer channel of GSM CSD (Circuit Switched
Data).

Change-Id: I2d9bd8eb4f0cd0f72c436996767b199429596917
diff --git a/tests/Makefile.am b/tests/Makefile.am
index ce9726c..d4bfe26 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -56,6 +56,7 @@
 		 gsm44021/frame_csd_test                                \
 		 osmo_io/osmo_io_test					\
 		 soft_uart/soft_uart_test				\
+		 rlp/rlp_test						\
 		 $(NULL)
 
 if ENABLE_MSGFILE
@@ -378,6 +379,9 @@
 
 soft_uart_soft_uart_test_SOURCES = soft_uart/soft_uart_test.c
 
+rlp_rlp_test_SOURCES = rlp/rlp_test.c
+rlp_rlp_test_LDADD = $(top_builddir)/src/gsm/libosmogsm.la $(LDADD)
+
 
 # The `:;' works around a Bash 3.2 bug when the output is not writeable.
 $(srcdir)/package.m4: $(top_srcdir)/configure.ac
@@ -483,6 +487,7 @@
 	     gsm44021/frame_csd_test.ok \
 	     osmo_io/osmo_io_test.ok osmo_io/osmo_io_test.err \
 	     soft_uart/soft_uart_test.ok \
+	     rlp/rlp_test.ok \
 	     $(NULL)
 
 if ENABLE_LIBSCTP
@@ -698,7 +703,10 @@
 		>$(srcdir)/osmo_io/osmo_io_test.ok \
 		2>$(srcdir)/osmo_io/osmo_io_test.err
 	soft_uart/soft_uart_test \
-		>$(srcdir)/soft_uart/soft_uart.ok
+		>$(srcdir)/soft_uart/soft_uart.ok \
+	rlp/rlp_test \
+		>$(srcdir)/rlp/rlp_test.ok \
+	$(NULL)
 
 
 check-local: atconfig $(TESTSUITE)