diff options
author | Max <msuraev@sysmocom.de> | 2016-07-06 15:57:01 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2016-07-16 21:11:10 +0000 |
commit | b997f8444313ff7ab99d66b400fc79cae8302166 (patch) | |
tree | 48b991298a745e79a59d04b7b1b522f91b885ced /openbsc/include | |
parent | 5aa5196fbf07d5311bf4d99a90bff303989564f0 (diff) |
SGSN: add preliminary support for GPRS encryption
It is already functional enough to allow testing with real
phones. However, note - there are several limitations in the current
implementation:
* only default value for IOV-UI is supported at the moment
* AUTN-based key material is not supported
Related: OS#1582
Change-Id: I8900b906693496e4e6b35be5a86937c58039ed9e
Diffstat (limited to 'openbsc/include')
-rw-r--r-- | openbsc/include/openbsc/gprs_gmm.h | 3 | ||||
-rw-r--r-- | openbsc/include/openbsc/gprs_llc.h | 3 | ||||
-rw-r--r-- | openbsc/include/openbsc/gprs_sgsn.h | 3 |
3 files changed, 4 insertions, 5 deletions
diff --git a/openbsc/include/openbsc/gprs_gmm.h b/openbsc/include/openbsc/gprs_gmm.h index e0d8f7781..044978b0a 100644 --- a/openbsc/include/openbsc/gprs_gmm.h +++ b/openbsc/include/openbsc/gprs_gmm.h @@ -12,7 +12,8 @@ int gsm48_tx_gsm_deact_pdp_acc(struct sgsn_pdp_ctx *pdp); int gsm0408_gprs_rcvmsg_gb(struct msgb *msg, struct gprs_llc_llme *llme); int gsm0408_gprs_force_reattach(struct sgsn_mm_ctx *mmctx); -int gsm0408_gprs_force_reattach_oldmsg(struct msgb *msg); +int gsm0408_gprs_force_reattach_oldmsg(struct msgb *msg, + struct gprs_llc_llme *llme); void gsm0408_gprs_access_granted(struct sgsn_mm_ctx *mmctx); void gsm0408_gprs_access_denied(struct sgsn_mm_ctx *mmctx, int gmm_cause); void gsm0408_gprs_access_cancelled(struct sgsn_mm_ctx *mmctx, int gmm_cause); diff --git a/openbsc/include/openbsc/gprs_llc.h b/openbsc/include/openbsc/gprs_llc.h index f9a6dec70..d7a480bf4 100644 --- a/openbsc/include/openbsc/gprs_llc.h +++ b/openbsc/include/openbsc/gprs_llc.h @@ -215,7 +215,8 @@ int gprs_llc_tx_ui(struct msgb *msg, uint8_t sapi, int command, /* Chapter 7.2.1.2 LLGMM-RESET.req */ int gprs_llgmm_reset(struct gprs_llc_llme *llme); -int gprs_llgmm_reset_oldmsg(struct msgb* oldmsg, uint8_t sapi); +int gprs_llgmm_reset_oldmsg(struct msgb* oldmsg, uint8_t sapi, + struct gprs_llc_llme *llme); /* 04.64 Chapter 7.2.1.1 LLGMM-ASSIGN */ int gprs_llgmm_assign(struct gprs_llc_llme *llme, diff --git a/openbsc/include/openbsc/gprs_sgsn.h b/openbsc/include/openbsc/gprs_sgsn.h index 96040849b..723c91448 100644 --- a/openbsc/include/openbsc/gprs_sgsn.h +++ b/openbsc/include/openbsc/gprs_sgsn.h @@ -357,9 +357,6 @@ int drop_all_pdp_for_ggsn(struct sgsn_ggsn_ctx *ggsn); char *gprs_pdpaddr2str(uint8_t *pdpa, uint8_t len); -/* Force re-attachment based on msgb meta data */ -int sgsn_force_reattach_oldmsg(struct msgb *oldmsg); - /* * ctrl interface related work */ |