aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2013-02-08 15:03:23 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2013-02-08 15:06:52 +0100
commit114394f49192c76853b7ec09fa4b8062677439a5 (patch)
tree5df36032607dbef6fb7994e20500b17bcba82eea /openbsc
parent34ab950828c0234b84256d00b24cbabb80a51c80 (diff)
Revert "gprs: This method is now available in libosmocore"
This reverts commit e67482e41c7715085f7a4cc80f2b8713245a1c12. We need to support older versions.
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/gprs/gb_proxy.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/openbsc/src/gprs/gb_proxy.c b/openbsc/src/gprs/gb_proxy.c
index 50bef5eb2..25c259632 100644
--- a/openbsc/src/gprs/gb_proxy.c
+++ b/openbsc/src/gprs/gb_proxy.c
@@ -38,6 +38,13 @@
#include <openbsc/gprs_bssgp.h>
#include <openbsc/gb_proxy.h>
+static uint16_t tlvp_val16_unal(const struct tlv_parsed *tp, int pos)
+{
+ uint16_t res;
+ memcpy(&res, TLVP_VAL(tp, pos), sizeof(res));
+ return res;
+}
+
struct gbprox_peer {
struct llist_head list;