Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-AMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-AMF
Commits
d2eff68f
Commit
d2eff68f
authored
Sep 30, 2022
by
Tien Thinh NGUYEN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code refactor for SUCI and SUPI format IMSI
parent
16ea304a
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
176 additions
and
148 deletions
+176
-148
src/nas/ies/5GSMobileIdentity.cpp
src/nas/ies/5GSMobileIdentity.cpp
+163
-130
src/nas/ies/5GSMobileIdentity.hpp
src/nas/ies/5GSMobileIdentity.hpp
+13
-11
src/nas/msgs/RegistrationRequest.cpp
src/nas/msgs/RegistrationRequest.cpp
+0
-7
No files found.
src/nas/ies/5GSMobileIdentity.cpp
View file @
d2eff68f
This diff is collapsed.
Click to expand it.
src/nas/ies/5GSMobileIdentity.hpp
View file @
d2eff68f
...
...
@@ -37,8 +37,8 @@ namespace nas {
// 5G-GUTI
typedef
struct
_5G_GUTI_s
{
string
mcc
;
string
mnc
;
st
d
::
st
ring
mcc
;
st
d
::
st
ring
mnc
;
uint8_t
amf_region_id
;
uint8_t
amf_set_id
;
uint16_t
amf_pointer
;
...
...
@@ -84,7 +84,7 @@ class _5GSMobileIdentity {
_5GSMobileIdentity
(
const
string
mcc
,
const
string
mnc
,
const
string
routingInd
,
uint8_t
protection_sch_id
,
const
string
msin
);
// SUCI and SUPI format IMSI
const
string
msin
);
//
TODO: SetSUCI,
SUCI and SUPI format IMSI
_5GSMobileIdentity
();
~
_5GSMobileIdentity
();
...
...
@@ -94,10 +94,11 @@ class _5GSMobileIdentity {
void
setIEI
(
uint8_t
_iei
);
int
encode2Buffer
(
uint8_t
*
buf
,
int
len
);
int
suci_encode2buffer
(
uint8_t
*
buf
,
int
len
);
int
_5g_guti_encode2buffer
(
uint8_t
*
buf
,
int
len
);
int
encodeMssMnc2buffer
(
int
suci_encode2buffer
(
uint8_t
*
buf
,
int
len
);
int
encodeMccMnc2buffer
(
const
std
::
string
&
mcc_str
,
const
std
::
string
&
mnc_str
,
uint8_t
*
buf
);
int
encodeRoutid2buffer
(
string
routid
,
uint8_t
*
buf
);
...
...
@@ -125,24 +126,25 @@ class _5GSMobileIdentity {
void
setSuciWithSupiImsi
(
const
string
&
mcc
,
const
string
&
mnc
,
const
string
&
routingInd
,
uint8_t
protecSchId
,
const
string
&
msin_digits
);
void
getSuciWithSupiImsi
(
SUCI_imsi_t
&
);
bool
getSuciWithSupiImsi
(
SUCI_imsi_t
&
);
bool
get5G_S_TMSI
(
uint16_t
&
amfSetId
,
uint8_t
&
amfPointer
,
string
&
tmsi
);
void
setIMEISV
(
IMEISV_t
imeisv
);
void
getIMEISV
(
IMEISV_t
&
imeisv
);
void
setIMEISV
(
const
IMEISV_t
&
imeisv
);
bool
getIMEISV
(
IMEISV_t
&
imeisv
);
private:
uint8_t
iei
;
uint16_t
length
;
uint8_t
typeOfIdentity
:
3
;
std
::
optional
<
SUCI_imsi_t
>
supi_format_imsi
;
std
::
optional
<
_5G_GUTI_t
>
_5g_guti
;
IMEI_IMEISV_t
*
imei_imeisv
;
SUCI_imsi_t
*
supi_format_imsi
;
std
::
optional
<
IMEI_IMEISV_t
>
_imei
;
// TODO:
std
::
optional
<
IMEISV_t
>
_IMEISV
;
_5G_S_TMSI_t
*
_5g_s_tmsi
;
bool
is_no_identity
;
IMEISV_t
_IMEISV
;
};
}
// namespace nas
...
...
src/nas/msgs/RegistrationRequest.cpp
View file @
d2eff68f
...
...
@@ -19,13 +19,6 @@
* contact@openairinterface.org
*/
/*! \file
\brief
\author Keliang DU, BUPT
\date 2020
\email: contact@openairinterface.org
*/
#include "RegistrationRequest.hpp"
#include "3gpp_24.501.hpp"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment