Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
lizhongxiao
OpenXG-RAN
Commits
471012c4
Commit
471012c4
authored
Oct 11, 2023
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hack 5G-S-TMSI
parent
b2502214
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
12 deletions
+7
-12
openair2/RRC/NR/rrc_gNB.c
openair2/RRC/NR/rrc_gNB.c
+7
-12
No files found.
openair2/RRC/NR/rrc_gNB.c
View file @
471012c4
...
@@ -1180,21 +1180,16 @@ static int nr_rrc_gNB_decode_ccch(module_id_t module_id, const f1ap_initial_ul_r
...
@@ -1180,21 +1180,16 @@ static int nr_rrc_gNB_decode_ccch(module_id_t module_id, const f1ap_initial_ul_r
// rrcSetupRequest->ue_Identity.choice.ng_5G_S_TMSI_Part1.size);
// rrcSetupRequest->ue_Identity.choice.ng_5G_S_TMSI_Part1.size);
if
((
ue_context_p
=
rrc_gNB_ue_context_5g_s_tmsi_exist
(
gnb_rrc_inst
,
s_tmsi_part1
)))
{
if
((
ue_context_p
=
rrc_gNB_ue_context_5g_s_tmsi_exist
(
gnb_rrc_inst
,
s_tmsi_part1
)))
{
gNB_RRC_UE_t
*
UE
=
&
ue_context_p
->
ue_context
;
LOG_W
(
NR_RRC
,
" 5G-S-TMSI-Part1 exists, old rnti %04x => %04x, creating new anyway
\n
"
,
ue_context_p
->
ue_context
.
rnti
,
rnti
);
LOG_I
(
NR_RRC
,
" 5G-S-TMSI-Part1 exists, old rnti %04x => %04x
\n
"
,
UE
->
rnti
,
rnti
);
AssertFatal
(
false
,
"not implemented
\n
"
);
/* replace rnti in the context */
UE
->
rnti
=
rnti
;
}
else
{
}
else
{
LOG_I
(
NR_RRC
,
"UE %04x 5G-S-TMSI-Part1 doesn't exist, setting ng_5G_S_TMSI_Part1 => %ld
\n
"
,
rnti
,
s_tmsi_part1
);
LOG_I
(
NR_RRC
,
"UE %04x 5G-S-TMSI-Part1 doesn't exist, setting ng_5G_S_TMSI_Part1 => %ld
\n
"
,
rnti
,
s_tmsi_part1
);
ue_context_p
=
rrc_gNB_create_ue_context
(
rnti
,
gnb_rrc_inst
,
s_tmsi_part1
,
msg
->
gNB_DU_ue_id
);
AssertFatal
(
ue_context_p
!=
NULL
,
"out of memory
\n
"
);
gNB_RRC_UE_t
*
UE
=
&
ue_context_p
->
ue_context
;
UE
->
Initialue_identity_5g_s_TMSI
.
presence
=
true
;
UE
->
ng_5G_S_TMSI_Part1
=
s_tmsi_part1
;
}
}
ue_context_p
=
rrc_gNB_create_ue_context
(
rnti
,
gnb_rrc_inst
,
s_tmsi_part1
,
msg
->
gNB_DU_ue_id
);
AssertFatal
(
ue_context_p
!=
NULL
,
"out of memory
\n
"
);
gNB_RRC_UE_t
*
UE
=
&
ue_context_p
->
ue_context
;
UE
->
Initialue_identity_5g_s_TMSI
.
presence
=
true
;
UE
->
ng_5G_S_TMSI_Part1
=
s_tmsi_part1
;
}
else
{
}
else
{
/* TODO */
/* TODO */
uint64_t
random_value
=
0
;
uint64_t
random_value
=
0
;
...
...
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