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
99ab773d
Commit
99ab773d
authored
Feb 19, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Address cmake warning with Ubuntu
parent
c724224b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
5 deletions
+8
-5
src/amf-app/amf_n1.cpp
src/amf-app/amf_n1.cpp
+4
-1
src/amf-app/amf_n2.cpp
src/amf-app/amf_n2.cpp
+2
-2
src/sbi/amf_server/AMFApiServer.cpp
src/sbi/amf_server/AMFApiServer.cpp
+1
-1
src/utils/backtrace.c
src/utils/backtrace.c
+1
-1
No files found.
src/amf-app/amf_n1.cpp
View file @
99ab773d
...
...
@@ -795,7 +795,7 @@ void amf_n1::registration_request_handle(
nc
.
get
()
->
serving_network
=
snn
;
nc
.
get
()
->
is_5g_guti_present
=
true
;
nc
.
get
()
->
to_be_register_by_new_suci
=
true
;
nc
.
get
()
->
ngKsi
=
100
;
nc
.
get
()
->
ngKsi
=
100
&
0xf
;
// supi2amfId[("imsi-"+nc.get()->imsi)] = amf_ue_ngap_id;
// supi2ranId[("imsi-"+nc.get()->imsi)] = ran_ue_ngap_id;
}
...
...
@@ -1941,12 +1941,15 @@ void amf_n1::encode_nas_message_protected(
case
INTEGRITY_PROTECTED_AND_CIPHERED
:
{
bstring
input
=
blk2bstr
(
input_nas_buf
,
input_nas_len
);
bstring
ciphered
;
//balloc(ciphered, blength(input));
nas_message_cipher_protected
(
nsc
,
NAS_MESSAGE_DOWNLINK
,
input
,
ciphered
);
protected_nas_buf
[
0
]
=
EPD_5GS_MM_MSG
;
protected_nas_buf
[
1
]
=
INTEGRITY_PROTECTED_AND_CIPHERED
;
protected_nas_buf
[
6
]
=
(
uint8_t
)
nsc
->
dl_count
.
seq_num
;
//if (bdata(ciphered) != nullptr)
memcpy
(
&
protected_nas_buf
[
7
],
(
uint8_t
*
)
bdata
(
ciphered
),
blength
(
ciphered
));
uint32_t
mac32
;
if
(
!
(
nas_message_integrity_protected
(
nsc
,
NAS_MESSAGE_DOWNLINK
,
protected_nas_buf
+
6
,
...
...
src/amf-app/amf_n2.cpp
View file @
99ab773d
...
...
@@ -934,8 +934,8 @@ void amf_n2::handle_itti_message(itti_handover_required& itti_msg) {
plmn
->
getMcc
(
mcc
);
plmn
->
getMnc
(
mnc
);
printf
(
"Handover required:
Target ID GlobalRanNodeID PLmn=mcc%s mnc%s
"
"gnbid
=%x
\n
"
,
"Handover required:
Target ID GlobalRanNodeID PLmn (mcc: %s, mnc: %s,
"
"gnbid
: %ld)
\n
"
,
mcc
.
c_str
(),
mnc
.
c_str
(),
gnbid
->
getValue
());
TAI
*
tai
=
new
TAI
();
itti_msg
.
handvoerRequ
->
getTAI
(
tai
);
...
...
src/sbi/amf_server/AMFApiServer.cpp
View file @
99ab773d
...
...
@@ -6,7 +6,7 @@ using namespace oai::amf::api;
void
AMFApiServer
::
init
(
size_t
thr
)
{
auto
opts
=
Pistache
::
Http
::
Endpoint
::
options
().
threads
(
thr
);
opts
.
flags
(
Pistache
::
Tcp
::
Options
::
ReuseAddr
);
opts
.
max
Payload
(
PISTACHE_SERVER_MAX_PAYLOAD
);
opts
.
max
RequestSize
(
PISTACHE_SERVER_MAX_PAYLOAD
);
m_httpEndpoint
->
init
(
opts
);
m_individualSubscriptionDocumentApiImpl
->
init
();
m_individualUeContextDocumentApiImpl
->
init
();
...
...
src/utils/backtrace.c
View file @
99ab773d
...
...
@@ -48,7 +48,7 @@ void display_backtrace(void) {
size
=
backtrace
(
array
,
10
);
strings
=
backtrace_symbols
(
array
,
size
);
printf
(
"Obtained %d stack frames.
\n
"
,
size
);
printf
(
"Obtained %
l
d stack frames.
\n
"
,
size
);
for
(
i
=
0
;
i
<
size
;
i
++
)
printf
(
"%s
\n
"
,
strings
[
i
]);
...
...
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