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
2bfc95f2
Commit
2bfc95f2
authored
Aug 05, 2021
by
Niuhaiwen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bugs
parent
222896e9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
src/amf-app/amf_app.cpp
src/amf-app/amf_app.cpp
+1
-1
src/amf-app/amf_n1.cpp
src/amf-app/amf_n1.cpp
+3
-1
No files found.
src/amf-app/amf_app.cpp
View file @
2bfc95f2
...
...
@@ -176,7 +176,7 @@ long amf_app::generate_amf_ue_ngap_id() {
long
tmp
=
0
;
tmp
=
__sync_fetch_and_add
(
&
amf_app_ue_ngap_id_generator
,
1
);
//srand(time(NULL));
//tmp = rand()%1000
0
+ 1;
//tmp = rand()%1000 + 1;
//return tmp & 0xffffffffff;
return
tmp
;
}
...
...
src/amf-app/amf_n1.cpp
View file @
2bfc95f2
...
...
@@ -2170,10 +2170,12 @@ bool amf_n1::authentication_vectors_from_ausf(
authenticationinfo
.
setServingNetworkName
(
nc
.
get
()
->
serving_network
);
ResynchronizationInfo
resynchronizationInfo
;
uint8_t
auts_len
=
blength
(
nc
.
get
()
->
auts
);
Logger
::
amf_n1
().
debug
(
"auts_len = %d"
,
auts_len
);
uint8_t
*
auts_value
=
(
uint8_t
*
)
bdata
(
nc
.
get
()
->
auts
);
std
::
string
authenticationinfo_auts
;
std
::
string
authenticationinfo_rand
;
if
(
auts_value
)
{
if
(
auts_len
>
0
)
{
//if (auts_value) {
Logger
::
amf_n1
().
debug
(
"********* has auts *********"
);
char
*
auts_s
=
(
char
*
)
malloc
(
auts_len
*
2
+
1
);
// char *rand_s = (char *)malloc(RAND_LENGTH * 2 + 1);
...
...
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