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
fa6aa1a7
Commit
fa6aa1a7
authored
Sep 16, 2022
by
Tien Thinh NGUYEN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix CI warnings
parent
42f17859
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
7 deletions
+28
-7
src/common/conversions.cpp
src/common/conversions.cpp
+21
-5
src/ngap/ngapIEs/PDUSessionResourceFailedToSetupItemCxtFail.hpp
...ap/ngapIEs/PDUSessionResourceFailedToSetupItemCxtFail.hpp
+2
-1
src/ngap/ngapMsgs/HandoverCommandMsg.cpp
src/ngap/ngapMsgs/HandoverCommandMsg.cpp
+3
-1
src/ngap/ngapMsgs/HandoverPreparationFailure.cpp
src/ngap/ngapMsgs/HandoverPreparationFailure.cpp
+1
-0
src/sbi/amf_server/model/AmfEventReport.cpp
src/sbi/amf_server/model/AmfEventReport.cpp
+1
-0
No files found.
src/common/conversions.cpp
View file @
fa6aa1a7
...
...
@@ -157,7 +157,10 @@ std::string conv::toString(const struct in6_addr& in6addr) {
void
conv
::
convert_string_2_hex
(
std
::
string
&
input_str
,
std
::
string
&
output_str
)
{
unsigned
char
*
data
=
(
unsigned
char
*
)
malloc
(
input_str
.
length
()
+
1
);
if
(
!
data
)
return
;
if
(
!
data
)
{
free_wrapper
((
void
**
)
&
data
);
return
;
}
memset
(
data
,
0
,
input_str
.
length
()
+
1
);
memcpy
((
void
*
)
data
,
(
void
*
)
input_str
.
c_str
(),
input_str
.
length
());
...
...
@@ -167,7 +170,11 @@ void conv::convert_string_2_hex(
printf
(
"
\n
"
);
char
*
datahex
=
(
char
*
)
malloc
(
input_str
.
length
()
*
2
+
1
);
if
(
!
datahex
)
return
;
if
(
!
datahex
)
{
free_wrapper
((
void
**
)
&
datahex
);
free_wrapper
((
void
**
)
&
data
);
return
;
}
memset
(
datahex
,
0
,
input_str
.
length
()
*
2
+
1
);
for
(
int
i
=
0
;
i
<
input_str
.
length
();
i
++
)
...
...
@@ -185,7 +192,10 @@ unsigned char* conv::format_string_as_hex(std::string str) {
if
(
!
datavalue
)
return
nullptr
;
unsigned
char
*
data
=
(
unsigned
char
*
)
malloc
(
str_len
+
1
);
if
(
!
data
)
return
nullptr
;
if
(
!
data
)
{
free_wrapper
((
void
**
)
&
data
);
return
nullptr
;
}
memset
(
data
,
0
,
str_len
+
1
);
memcpy
((
void
*
)
data
,
(
void
*
)
str
.
c_str
(),
str_len
);
...
...
@@ -238,13 +248,19 @@ void conv::msg_str_2_msg_hex(std::string msg, bstring& b) {
printf
(
"tmp string: %s
\n
"
,
msg_hex_str
.
c_str
());
unsigned
int
msg_len
=
msg_hex_str
.
length
();
char
*
data
=
(
char
*
)
malloc
(
msg_len
+
1
);
if
(
!
data
)
return
;
if
(
!
data
)
{
free_wrapper
((
void
**
)
&
data
);
return
;
}
memset
(
data
,
0
,
msg_len
+
1
);
memcpy
((
void
*
)
data
,
(
void
*
)
msg_hex_str
.
c_str
(),
msg_len
);
printf
(
"data: %s
\n
"
,
data
);
uint8_t
*
msg_hex
=
(
uint8_t
*
)
malloc
(
msg_len
/
2
+
1
);
if
(
!
msg_hex
)
return
;
if
(
!
msg_hex
)
{
free_wrapper
((
void
**
)
&
msg_hex
);
return
;
}
conv
::
ascii_to_hex
(
msg_hex
,
(
const
char
*
)
data
);
b
=
blk2bstr
(
msg_hex
,
(
msg_len
/
2
));
...
...
src/ngap/ngapIEs/PDUSessionResourceFailedToSetupItemCxtFail.hpp
View file @
fa6aa1a7
...
...
@@ -49,7 +49,8 @@ class PDUSessionResourceFailedToSetupItemCxtFail {
private:
PDUSessionID
pdu_session_id_
;
// Mandatory
OCTET_STRING_t
pdu_session_resource_setup_unsuccessful_transfer_
;
// Mandatory
OCTET_STRING_t
pdu_session_resource_setup_unsuccessful_transfer_
;
// Mandatory
};
}
// namespace ngap
...
...
src/ngap/ngapMsgs/HandoverCommandMsg.cpp
View file @
fa6aa1a7
...
...
@@ -128,8 +128,10 @@ void HandoverCommandMsg::setNASSecurityParametersFromNGRAN(
Ngap_HandoverCommandIEs__value_PR_NASSecurityParametersFromNGRAN
;
if
(
!
conv
::
octet_string_copy
(
ie
->
value
.
choice
.
NASSecurityParametersFromNGRAN
,
nASSecurityParametersFromNGRAN
.
value
()))
nASSecurityParametersFromNGRAN
.
value
()))
{
free_wrapper
((
void
**
)
&
ie
);
return
;
}
int
ret
=
ASN_SEQUENCE_ADD
(
&
handoverCommandIEs
->
protocolIEs
.
list
,
ie
);
if
(
ret
!=
0
)
...
...
src/ngap/ngapMsgs/HandoverPreparationFailure.cpp
View file @
fa6aa1a7
...
...
@@ -34,6 +34,7 @@ namespace ngap {
//------------------------------------------------------------------------------
HandoverPreparationFailure
::
HandoverPreparationFailure
()
:
NgapUEMessage
()
{
hoPreparationFailureIEs
=
nullptr
;
criticalityDiagnostics
=
nullptr
;
setMessageType
(
NgapMessageType
::
HANDOVER_PREPARATION_FAILURE
);
initialize
();
...
...
src/sbi/amf_server/model/AmfEventReport.cpp
View file @
fa6aa1a7
...
...
@@ -23,6 +23,7 @@ AmfEventReport::AmfEventReport() {
m_SubscriptionId
=
""
;
m_SubscriptionIdIsSet
=
false
;
m_AnyUe
=
false
;
m_AmfUeNgapId
=
0
;
m_AnyUeIsSet
=
false
;
m_Supi
=
""
;
m_SupiIsSet
=
false
;
...
...
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