aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-06-30 23:07:59 +0200
committerHarald Welte <laforge@gnumonks.org>2010-07-02 22:55:39 +0200
commitd07b4f99cef6906702c555cfcb923d0d76473916 (patch)
tree6fceb9bd114c0597685aa1a6ed63a9d72d936cef /openbsc/include
parent496aee463faf8bb0d1fe5062fcee5b52bd5eec52 (diff)
[SGSN] Use libosmocore GPRS encryption plugins from LLC layer
This adds the bits that call into libosmocore (and its plugins) to implement GPRS (LLC) encryption.
Diffstat (limited to 'openbsc/include')
-rw-r--r--openbsc/include/openbsc/gprs_llc.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/gprs_llc.h b/openbsc/include/openbsc/gprs_llc.h
index d0c30a68b..02945e164 100644
--- a/openbsc/include/openbsc/gprs_llc.h
+++ b/openbsc/include/openbsc/gprs_llc.h
@@ -109,6 +109,14 @@ struct gprs_llc_lle {
uint16_t vu_send;
uint16_t vu_recv;
+ /* Overflow Counter for ABM */
+ uint32_t oc_i_send;
+ uint32_t oc_i_recv;
+
+ /* Overflow Counter for unconfirmed transfer */
+ uint32_t oc_ui_send;
+ uint32_t oc_ui_recv;
+
unsigned int retrans_ctr;
struct gprs_llc_params params;
@@ -124,6 +132,10 @@ struct gprs_llc_llme {
uint32_t tlli;
uint32_t old_tlli;
+ /* Crypto parameters */
+ enum gprs_ciph_algo algo;
+ uint8_t kc[8];
+
/* over which BSSGP BTS ctx do we need to transmit */
uint16_t bvci;
uint16_t nsei;