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
1b1a7ea9
Commit
1b1a7ea9
authored
Dec 03, 2023
by
liuyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
complete json
parent
0bfbd32a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
10 deletions
+9
-10
src/amf-app/amf_n2.cpp
src/amf-app/amf_n2.cpp
+7
-7
src/ngap/ngap_app/udp.cpp
src/ngap/ngap_app/udp.cpp
+2
-3
No files found.
src/amf-app/amf_n2.cpp
View file @
1b1a7ea9
...
...
@@ -581,7 +581,7 @@ void amf_n2::handle_itti_message(itti_ng_reset& itti_msg) {
{
nlohmann
::
json
aggregation
=
{};
std
::
string
hex_str
;
for
(
int
i
=
0
;
i
<
BUFFER_SIZE_
1024
;
++
i
)
{
for
(
int
i
=
0
;
i
<
BUFFER_SIZE_
512
;
++
i
)
{
char
hex
[
3
];
snprintf
(
hex
,
sizeof
(
hex
),
"%02X"
,
buffer
[
i
]);
hex_str
+=
hex
;
...
...
@@ -1064,7 +1064,7 @@ void amf_n2::handle_itti_message(itti_initial_context_setup_request& itti_msg) {
{
nlohmann
::
json
aggregation
=
{};
std
::
string
hex_str
;
for
(
int
i
=
0
;
i
<
BUFFER_SIZE_
1024
;
++
i
)
{
for
(
int
i
=
0
;
i
<
BUFFER_SIZE_
2048
;
++
i
)
{
char
hex
[
3
];
snprintf
(
hex
,
sizeof
(
hex
),
"%02X"
,
buffer
[
i
]);
hex_str
+=
hex
;
...
...
@@ -1169,7 +1169,7 @@ void amf_n2::handle_itti_message(
{
nlohmann
::
json
aggregation
=
{};
std
::
string
hex_str
;
for
(
int
i
=
0
;
i
<
BUFFER_SIZE_
1024
;
++
i
)
{
for
(
int
i
=
0
;
i
<
BUFFER_SIZE_
4096
;
++
i
)
{
char
hex
[
3
];
snprintf
(
hex
,
sizeof
(
hex
),
"%02X"
,
buffer
[
i
]);
hex_str
+=
hex
;
...
...
@@ -1254,7 +1254,7 @@ void amf_n2::handle_itti_message(
{
nlohmann
::
json
aggregation
=
{};
std
::
string
hex_str
;
for
(
int
i
=
0
;
i
<
BUFFER_SIZE_
1024
;
++
i
)
{
for
(
int
i
=
0
;
i
<
BUFFER_SIZE_
4096
;
++
i
)
{
char
hex
[
3
];
snprintf
(
hex
,
sizeof
(
hex
),
"%02X"
,
buffer
[
i
]);
hex_str
+=
hex
;
...
...
@@ -1329,7 +1329,7 @@ void amf_n2::handle_itti_message(
{
nlohmann
::
json
aggregation
=
{};
std
::
string
hex_str
;
for
(
int
i
=
0
;
i
<
BUFFER_SIZE_
1024
;
++
i
)
{
for
(
int
i
=
0
;
i
<
BUFFER_SIZE_
4096
;
++
i
)
{
char
hex
[
3
];
snprintf
(
hex
,
sizeof
(
hex
),
"%02X"
,
buffer
[
i
]);
hex_str
+=
hex
;
...
...
@@ -1373,7 +1373,7 @@ void amf_n2::handle_itti_message(itti_ue_context_release_request& itti_msg) {
{
nlohmann
::
json
aggregation
=
{};
std
::
string
hex_str
;
for
(
int
i
=
0
;
i
<
BUFFER_SIZE_
1024
;
++
i
)
{
for
(
int
i
=
0
;
i
<
BUFFER_SIZE_
512
;
++
i
)
{
char
hex
[
3
];
snprintf
(
hex
,
sizeof
(
hex
),
"%02X"
,
buffer
[
i
]);
hex_str
+=
hex
;
...
...
@@ -1440,7 +1440,7 @@ void amf_n2::handle_itti_message(itti_ue_context_release_command& itti_msg) {
{
nlohmann
::
json
aggregation
=
{};
std
::
string
hex_str
;
for
(
int
i
=
0
;
i
<
BUFFER_SIZE_
1024
;
++
i
)
{
for
(
int
i
=
0
;
i
<
BUFFER_SIZE_
256
;
++
i
)
{
char
hex
[
3
];
snprintf
(
hex
,
sizeof
(
hex
),
"%02X"
,
buffer
[
i
]);
hex_str
+=
hex
;
...
...
src/ngap/ngap_app/udp.cpp
View file @
1b1a7ea9
...
...
@@ -181,8 +181,7 @@ void udp_server::handle_receive_udp(int r,uint8_t udp_recv[]){
Logger
::
ngap
().
debug
(
"Satellite AMF had gNB context with assoc_id (%d)"
,
assoc_id
);
}
// 同步uengapcontxt,建立ranid,gnbid与uengapcontext关系/
uint32_t
ran_ue_ngap_id
=
0
;
// ran_ue_ngap_id = udp_recv[r-2];
uint32_t
ran_ue_ngap_id
=
aggregation
[
"ran_ue_ngap_id"
];
std
::
shared_ptr
<
ue_ngap_context
>
unc
=
{};
if
(
!
amf_n2_inst
->
ran_ue_id_2_ue_ngap_context
(
ran_ue_ngap_id
,
gc
->
gnb_id
,
unc
))
{
Logger
::
amf_n2
().
debug
(
"Create a new UE NGAP context with ran_ue_ngap_id "
GNB_UE_NGAP_ID_FMT
,
ran_ue_ngap_id
);
...
...
@@ -196,7 +195,7 @@ void udp_server::handle_receive_udp(int r,uint8_t udp_recv[]){
// 同步nascontext,建立uengapid与naxcontext关系。
std
::
shared_ptr
<
nas_context
>
nc
=
{};
long
amf_ue_ngap_id
;
// amf_ue_ngap_id = udp_recv[r-2
];
amf_ue_ngap_id
=
aggregation
[
"amf_ue_ngap_id"
];
if
(
amf_n1_inst
->
amf_ue_id_2_nas_context
(
amf_ue_ngap_id
,
nc
))
{
Logger
::
amf_n1
().
debug
(
"Find nas_context by amf_ue_ngap_id ("
AMF_UE_NGAP_ID_FMT
")"
,
amf_ue_ngap_id
);
}
else
{
...
...
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