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
456b4a22
Commit
456b4a22
authored
Mar 15, 2023
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix_n2_ho_request' into 'fix_n2_handover'
HO Request Fix See merge request oai/cn5g/oai-cn5g-amf!194
parents
98fbae87
809cc5dc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
src/common/conversions.cpp
src/common/conversions.cpp
+6
-6
src/ngap/ngapMsgs/NgapMessage.cpp
src/ngap/ngapMsgs/NgapMessage.cpp
+2
-1
No files found.
src/common/conversions.cpp
View file @
456b4a22
...
...
@@ -306,10 +306,10 @@ bool conv::octet_string_2_bit_string(
//------------------------------------------------------------------------------
bool
conv
::
bstring_2_bit_string
(
const
bstring
&
b_str
,
BIT_STRING_t
&
bit_str
)
{
OCTET_STRING_t
octet_str
;
bstring_2_octet_string
(
b_str
,
octet_str
);
octet_string_2_bit_string
(
octet_str
,
bit_str
,
0
);
/*
//
OCTET_STRING_t octet_str;
//
bstring_2_octet_string(b_str, octet_str);
//
octet_string_2_bit_string(octet_str, bit_str, 0);
int
size
=
blength
(
b_str
);
if
(
!
b_str
or
size
<=
0
)
return
false
;
...
...
@@ -318,13 +318,13 @@ bool conv::bstring_2_bit_string(const bstring& b_str, BIT_STRING_t& bit_str) {
bit_str
.
buf
=
(
uint8_t
*
)
calloc
(
size
+
1
,
sizeof
(
uint8_t
));
if
(
!
bit_str
.
buf
)
return
false
;
if (check_bstring (b_str)) memcpy((void*) bit_str.buf, (char*)
octet_str.buf
,
if
(
check_bstring
(
b_str
))
memcpy
((
void
*
)
bit_str
.
buf
,
(
char
*
)
b_str
->
data
,
blength
(
b_str
));
((
uint8_t
*
)
bit_str
.
buf
)[
size
]
=
'\0'
;
bit_str
.
size
=
size
;
bit_str
.
bits_unused
=
0
;
*/
return
true
;
}
...
...
src/ngap/ngapMsgs/NgapMessage.cpp
View file @
456b4a22
...
...
@@ -41,7 +41,8 @@ NgapMessage::NgapMessage() {
//------------------------------------------------------------------------------
NgapMessage
::~
NgapMessage
()
{
ASN_STRUCT_FREE
(
asn_DEF_Ngap_NGAP_PDU
,
ngapPdu
);
if
(
ngapPdu
)
ASN_STRUCT_FREE
(
asn_DEF_Ngap_NGAP_PDU
,
ngapPdu
);
Logger
::
ngap
().
debug
(
"Free NGAP Message PDU"
);
}
...
...
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