aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/gprs_bssgp.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-04-30 20:26:32 +0200
committerHarald Welte <laforge@gnumonks.org>2010-05-04 07:20:42 +0200
commit9f75c35eb3cf796366b7452538a1d3113cd6b546 (patch)
tree73d808204e00b05d87558c4e5982bd053d096bf4 /openbsc/include/openbsc/gprs_bssgp.h
parent44f1c27460325924e0391677ca76798951289f53 (diff)
GPRS: Introduce a GPRS Gb Proxy
The ida of the Gb proxy is to aggregate Gb links with a number of BSS and then present all the BSSGP-VC's together inside one NS-VC to the actual SGSN. The code is not yet expected to be complete.
Diffstat (limited to 'openbsc/include/openbsc/gprs_bssgp.h')
-rw-r--r--openbsc/include/openbsc/gprs_bssgp.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/gprs_bssgp.h b/openbsc/include/openbsc/gprs_bssgp.h
index f85ac48ec..3040e6a0e 100644
--- a/openbsc/include/openbsc/gprs_bssgp.h
+++ b/openbsc/include/openbsc/gprs_bssgp.h
@@ -133,6 +133,16 @@ enum gprs_bssgp_cause {
BSSGP_CAUSE_PDU_INCOMP_FEAT = 0x28,
};
+/* Our implementation */
+
+#include <osmocore/tlv.h>
+
extern int gprs_bssgp_rcvmsg(struct msgb *msg, u_int16_t bvci);
+/* Wrapper around TLV parser to parse BSSGP IEs */
+static inline int bssgp_tlv_parse(struct tlv_parsed *tp, u_int8_t *buf, int len)
+{
+ return tlv_parse(tp, &tvlv_att_def, buf, len, 0, 0);
+}
+
#endif /* _GPRS_BSSGP_H */