aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2017-12-19 17:42:36 +0100
committerHarald Welte <laforge@gnumonks.org>2017-12-20 16:03:19 +0000
commitee03876dd171375d827cbec6d3c24d8ad9128671 (patch)
tree5c4ca51f7f0c743369a0f83cb06f5d262fee8c3b /include
parentade7e8b19bf423e9090dca67c906bc4bf8242df2 (diff)
iu: iu_helpers: add functions to decode ip/port from rab-ass
add ranap_transp_assoc_decode() to decode the port information from an RANAP_IuTransportAssociation_t field. add ranap_transp_layer_addr_decode() to decode the ip-address from an RANAP_TransportLayerAddress_t field. Change-Id: I3c1a0455c5f25cae41ee19229d6daf299e023062
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/ranap/iu_helpers.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/osmocom/ranap/iu_helpers.h b/include/osmocom/ranap/iu_helpers.h
index 109b6da..9d801be 100644
--- a/include/osmocom/ranap/iu_helpers.h
+++ b/include/osmocom/ranap/iu_helpers.h
@@ -3,5 +3,11 @@
#include <stdint.h>
#include <sys/types.h>
+#include <osmocom/ranap/RANAP_IuTransportAssociation.h>
+#include <osmocom/ranap/RANAP_TransportLayerAddress.h>
+
int ranap_bcd_decode(char *out, size_t out_len, const uint8_t *in, size_t in_len);
int ranap_imsi_encode(uint8_t *out, size_t out_len, const char *in);
+int ranap_transp_assoc_decode(uint16_t *port, const RANAP_IuTransportAssociation_t *transp_assoc);
+int ranap_transp_layer_addr_decode(char *addr, unsigned int addr_len,
+ const RANAP_TransportLayerAddress_t *trasp_layer_addr);