Commit Graph

14 Commits

Author SHA1 Message Date
Pau Espin f87b9da362 sm: Handle GMMSM-MODIFY.ind primitive
Change-Id: Ic765b7a565cac4abcf34d8c6868e103971d17822
2023-07-20 10:00:22 +02:00
Pau Espin 7d7040976f sm: Forward forth and back the P-TMSI signature
Change-Id: Ia69b6f885d612c42ab015822031e4c7262f4714e
2023-05-22 10:43:28 +02:00
Pau Espin 824d00f9e7 sm: Provide RAI obtained from network
MS needs to store this information, hence the app needs to be provided
with it.

Change-Id: Icd357d8c7f4848441da011d59a4e520785d64779
2023-05-22 08:42:47 +00:00
Pau Espin c57f5d70c4 sm: Allow passing old RAI during attach
This is stored by the MS and hence shall be passed by the application.

Change-Id: I13118bed3f7035ff9b4c2c21ed9557f48f5596e6
2023-05-22 08:42:47 +00:00
Pau Espin 4c2f0ced47 sm: Use & forward to upper layers the PTMSI & TLLI received from GMM
App and SM itself may need access to PTMSI or TLLI.

PTMSI:
- App may want to store it somewhere in order to reuse it next time
  it wants to GMM Attach.
TLLI:
- App will need the TLLI to identify the MS when sending/receiving
  primitives over SN SAP (app<->SNDCP).
- SM layer will need the TLLI to communicate over SNSM SAP (SM<->SNDCP),
  as well as relay the information to the app if the GMM Attach happens
  implicitly over SMREG-Act_Pdp_Ctx.req -> GMMSM-Establish-Req.

Change-Id: I7b1b8ac414474652b438f15b7f07961032a0f56d
2023-05-05 14:44:58 +02:00
Pau Espin 5913437a0c sm: Fix pdp_act_cnf.accepted flag value swapped
Change-Id: Ieb7b4ce7121b82c40dbd16a50981390b47d94c82
2023-05-03 14:44:15 +02:00
Pau Espin e23c097a5c sm: Implement rx Act PDP Ctx Rej
Change-Id: Ib534ebc2a3a0674675621da2f8bd0de218a08ef0
2023-05-03 12:26:43 +02:00
Pau Espin 101c3d5da0 sm: Fill gmmsm.establish_req.attach_with_imsi
Change-Id: Ie4fbadc1c3a32375ccae84a4d54366d59ab7fe2f
2023-04-26 11:30:11 +00:00
Pau Espin 0b603f41cf sm: Handle PCO in rx PDP Ctx Accept
Related: OS#5501
Change-Id: I15ff08cbefb463c8785a138406921563941e7e7d
2023-04-14 18:46:16 +02:00
Pau Espin ae5856f4e3 sm: Handle radio_prio,qos,llc_sapi in rx PDP Ctx Accept
Related: OS#5501
Change-Id: Icbd9ba82b6d8cbcfcaf5a80ddc801139c409c585
2023-04-14 18:39:29 +02:00
Pau Espin f644ae9d11 sm: Parse PDP address in rx PDP Ctx Accept
Related: OS#5501
Change-Id: Ic41edc14445f0f5d4ef20bb30b53d66fb56435de
2023-04-14 18:39:29 +02:00
Pau Espin dd17a692f9 sm: Start using SNSM SAP
Related: OS#5501
Change-Id: Ic5525bfa92e2591757d999610c0d59849d022d8d
2023-04-14 18:39:29 +02:00
Pau Espin 67a57b5272 Rename internal g_ctx -> g_{layer_name}_ctx
Otherwise if a test includes {layer_name}_private.h from several
libraries to use private APIs it will fail due to colliding g_ctx
pointers of different types.

Change-Id: Ib8a844551452b79bdb3a81968ffc1fd42ee1c5d9
2023-04-13 18:20:53 +02:00
Pau Espin 5e205c8375 Introduce libosmo-gprs-sm
This patch itnroduces all the boilerplate required to build and package
a new libosmo-gprs-sm.so library, which aims to contain the SM layer
implementation.
A minimal implementation is provided together with a unit test,
showcasing Activation of a PDP Context and requesting implicit GPRS
attach to GMM if it is not yet attached.
This commit also adds/improves code in GMM layer implementing the GMMSM
SAP which is used to interact SM<->GMM.

Related: OS#5501
Change-Id: I9b4a9a6364f7799540475e7e1d10ab2310768281
2023-03-30 13:49:29 +02:00