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
3300c1ec
Commit
3300c1ec
authored
Aug 25, 2022
by
Tien Thinh NGUYEN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue for NSSAI
parent
c02e7838
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
14 additions
and
20 deletions
+14
-20
src/ngap/ngapIEs/AllowedNssai.cpp
src/ngap/ngapIEs/AllowedNssai.cpp
+2
-3
src/ngap/ngapIEs/BroadcastPLMNItem.cpp
src/ngap/ngapIEs/BroadcastPLMNItem.cpp
+2
-3
src/ngap/ngapIEs/PDUSessionResourceSetupItemCxtReq.cpp
src/ngap/ngapIEs/PDUSessionResourceSetupItemCxtReq.cpp
+2
-2
src/ngap/ngapIEs/PDUSessionResourceSetupItemHOReq.cpp
src/ngap/ngapIEs/PDUSessionResourceSetupItemHOReq.cpp
+2
-2
src/ngap/ngapIEs/PDUSessionResourceSetupItemSUReq.cpp
src/ngap/ngapIEs/PDUSessionResourceSetupItemSUReq.cpp
+2
-4
src/ngap/ngapMsgs/HandoverRequest.cpp
src/ngap/ngapMsgs/HandoverRequest.cpp
+1
-1
src/ngap/ngapMsgs/NGSetupFailure.hpp
src/ngap/ngapMsgs/NGSetupFailure.hpp
+3
-5
No files found.
src/ngap/ngapIEs/AllowedNssai.cpp
View file @
3300c1ec
...
...
@@ -49,7 +49,7 @@ bool AllowedNSSAI::encode2AllowedNSSAI(Ngap_AllowedNSSAI_t* allowedNssaiList) {
Ngap_AllowedNSSAI_Item_t
*
allowednssaiitem
=
(
Ngap_AllowedNSSAI_Item_t
*
)
calloc
(
1
,
sizeof
(
Ngap_AllowedNSSAI_Item_t
));
if
(
!
allowednssaiitem
)
return
false
;
if
(
!
it
->
encode
2S_NSSAI
(
&
allowednssaiitem
->
s_NSSAI
))
return
false
;
if
(
!
it
->
encode
(
&
allowednssaiitem
->
s_NSSAI
))
return
false
;
if
(
ASN_SEQUENCE_ADD
(
&
allowedNssaiList
->
list
,
allowednssaiitem
)
!=
0
)
return
false
;
}
...
...
@@ -61,8 +61,7 @@ bool AllowedNSSAI::decodefromAllowedNSSAI(
Ngap_AllowedNSSAI_t
*
allowedNssaiList
)
{
for
(
int
i
=
0
;
i
<
allowedNssaiList
->
list
.
count
;
i
++
)
{
S_NSSAI
snssai
=
{};
if
(
!
snssai
.
decodefromS_NSSAI
(
&
allowedNssaiList
->
list
.
array
[
i
]
->
s_NSSAI
))
return
false
;
if
(
!
snssai
.
decode
(
&
allowedNssaiList
->
list
.
array
[
i
]
->
s_NSSAI
))
return
false
;
allowedSnssaiList
.
push_back
(
snssai
);
}
return
true
;
...
...
src/ngap/ngapIEs/BroadcastPLMNItem.cpp
View file @
3300c1ec
...
...
@@ -64,7 +64,7 @@ bool BroadcastPLMNItem::encode2BroadcastPLMNItem(
Ngap_SliceSupportItem_t
*
slice
=
(
Ngap_SliceSupportItem_t
*
)
calloc
(
1
,
sizeof
(
Ngap_SliceSupportItem_t
));
if
(
!
slice
)
return
false
;
if
(
!
it
->
encode
2S_NSSAI
(
&
slice
->
s_NSSAI
))
return
false
;
if
(
!
it
->
encode
(
&
slice
->
s_NSSAI
))
return
false
;
if
(
ASN_SEQUENCE_ADD
(
&
plmnItem
->
tAISliceSupportList
.
list
,
slice
)
!=
0
)
return
false
;
}
...
...
@@ -77,8 +77,7 @@ bool BroadcastPLMNItem::decodefromBroadcastPLMNItem(
if
(
!
plmn
.
decode
(
pdu
->
pLMNIdentity
))
return
false
;
for
(
int
i
=
0
;
i
<
pdu
->
tAISliceSupportList
.
list
.
count
;
i
++
)
{
S_NSSAI
snssai
=
{};
if
(
!
snssai
.
decodefromS_NSSAI
(
&
pdu
->
tAISliceSupportList
.
list
.
array
[
i
]
->
s_NSSAI
))
if
(
!
snssai
.
decode
(
&
pdu
->
tAISliceSupportList
.
list
.
array
[
i
]
->
s_NSSAI
))
return
false
;
supportedSliceList
.
push_back
(
snssai
);
}
...
...
src/ngap/ngapIEs/PDUSessionResourceSetupItemCxtReq.cpp
View file @
3300c1ec
...
...
@@ -79,7 +79,7 @@ bool PDUSessionResourceSetupItemCxtReq::
pduSessionResourceSetupItemCxtReq
->
nAS_PDU
=
naspdu
;
}
if
(
!
s_NSSAI
.
encode
2S_NSSAI
(
&
pduSessionResourceSetupItemCxtReq
->
s_NSSAI
))
if
(
!
s_NSSAI
.
encode
(
&
pduSessionResourceSetupItemCxtReq
->
s_NSSAI
))
return
false
;
pduSessionResourceSetupItemCxtReq
->
pDUSessionResourceSetupRequestTransfer
=
pDUSessionResourceSetupRequestTransfer
;
...
...
@@ -95,7 +95,7 @@ bool PDUSessionResourceSetupItemCxtReq::
if
(
!
pDUSessionID
.
decodefromPDUSessionID
(
pduSessionResourceSetupItemCxtReq
->
pDUSessionID
))
return
false
;
if
(
!
s_NSSAI
.
decode
fromS_NSSAI
(
&
(
pduSessionResourceSetupItemCxtReq
->
s_NSSAI
)))
if
(
!
s_NSSAI
.
decode
(
&
(
pduSessionResourceSetupItemCxtReq
->
s_NSSAI
)))
return
false
;
if
(
pduSessionResourceSetupItemCxtReq
->
nAS_PDU
)
{
...
...
src/ngap/ngapIEs/PDUSessionResourceSetupItemHOReq.cpp
View file @
3300c1ec
...
...
@@ -44,7 +44,7 @@ bool PDUSessionResourceSetupItemHOReq::encode2PDUSessionResourceSetupItemHOReq(
if
(
!
pDUSessionID
->
encode2PDUSessionID
(
pduSessionResourceSetupItemHOReq
->
pDUSessionID
))
return
false
;
if
(
!
s_NSSAI
->
encode
2S_NSSAI
(
&
pduSessionResourceSetupItemHOReq
->
s_NSSAI
))
if
(
!
s_NSSAI
->
encode
(
&
pduSessionResourceSetupItemHOReq
->
s_NSSAI
))
return
false
;
pduSessionResourceSetupItemHOReq
->
handoverRequestTransfer
=
pDUSessionResourceSetupRequestTransfer
;
...
...
@@ -60,7 +60,7 @@ bool PDUSessionResourceSetupItemHOReq::
if
(
!
pDUSessionID
->
decodefromPDUSessionID
(
pduSessionResourceSetupItemHOReq
->
pDUSessionID
))
return
false
;
if
(
!
s_NSSAI
->
decode
fromS_NSSAI
(
&
pduSessionResourceSetupItemHOReq
->
s_NSSAI
))
if
(
!
s_NSSAI
->
decode
(
&
pduSessionResourceSetupItemHOReq
->
s_NSSAI
))
return
false
;
pDUSessionResourceSetupRequestTransfer
=
pduSessionResourceSetupItemHOReq
->
handoverRequestTransfer
;
...
...
src/ngap/ngapIEs/PDUSessionResourceSetupItemSUReq.cpp
View file @
3300c1ec
...
...
@@ -74,8 +74,7 @@ bool PDUSessionResourceSetupItemSUReq::encode2PDUSessionResourceSetupItemSUReq(
}
pduSessionResourceSetupItemSUReq
->
pDUSessionNAS_PDU
=
naspdu
;
}
if
(
!
s_NSSAI
.
encode2S_NSSAI
(
&
pduSessionResourceSetupItemSUReq
->
s_NSSAI
))
return
false
;
if
(
!
s_NSSAI
.
encode
(
&
pduSessionResourceSetupItemSUReq
->
s_NSSAI
))
return
false
;
pduSessionResourceSetupItemSUReq
->
pDUSessionResourceSetupRequestTransfer
=
pDUSessionResourceSetupRequestTransfer
;
...
...
@@ -90,8 +89,7 @@ bool PDUSessionResourceSetupItemSUReq::
if
(
!
pDUSessionID
.
decodefromPDUSessionID
(
pduSessionResourceSetupItemSUReq
->
pDUSessionID
))
return
false
;
if
(
!
s_NSSAI
.
decodefromS_NSSAI
(
&
pduSessionResourceSetupItemSUReq
->
s_NSSAI
))
return
false
;
if
(
!
s_NSSAI
.
decode
(
&
pduSessionResourceSetupItemSUReq
->
s_NSSAI
))
return
false
;
if
(
pduSessionResourceSetupItemSUReq
->
pDUSessionNAS_PDU
)
{
nAS_PDU
=
new
NAS_PDU
();
...
...
src/ngap/ngapMsgs/HandoverRequest.cpp
View file @
3300c1ec
...
...
@@ -242,7 +242,7 @@ void HandoverRequest::setAllowedNSSAI(std::vector<S_NSSAI>& list) {
for
(
auto
&
it
:
list
)
{
Ngap_AllowedNSSAI_Item_t
*
item
=
(
Ngap_AllowedNSSAI_Item_t
*
)
calloc
(
1
,
sizeof
(
Ngap_AllowedNSSAI_Item_t
));
it
.
encode
2S_NSSAI
(
&
item
->
s_NSSAI
);
it
.
encode
(
&
item
->
s_NSSAI
);
int
ret
=
ASN_SEQUENCE_ADD
(
&
allowedNSSAI
.
list
,
item
);
if
(
ret
!=
0
)
Logger
::
ngap
().
error
(
...
...
src/ngap/ngapMsgs/NGSetupFailure.hpp
View file @
3300c1ec
...
...
@@ -25,7 +25,6 @@
#include "Cause.hpp"
#include "MessageType.hpp"
#include "TimeToWait.hpp"
//#include "CriticalityDiagnostics.hpp"
#include "NgapMessage.hpp"
namespace
ngap
{
...
...
@@ -72,16 +71,15 @@ class NGSetupFailureMsg : public NgapMessage {
bool
decodeFromPdu
(
Ngap_NGAP_PDU_t
*
ngapMsgPdu
)
override
;
void
addCauseIE
();
void
addTimeToWaitIE
();
private:
Ngap_NGSetupFailure_t
*
ngSetupFailureIEs
;
Cause
cause
;
// Mandatory
TimeToWait
timeToWait
;
// Mandatory
// TODO: CriticalityDiagnostics *criticalityDiagnostics; //Optional
void
addCauseIE
();
void
addTimeToWaitIE
();
};
}
// namespace ngap
#endif
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