Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
spbro
OpenXG-RAN
Commits
f660bd63
Commit
f660bd63
authored
Mar 11, 2024
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
F1AP: CU QoS refactor NSSAI enc into function
parent
2ae8a7b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
18 deletions
+13
-18
openair2/F1AP/f1ap_cu_ue_context_management.c
openair2/F1AP/f1ap_cu_ue_context_management.c
+13
-18
No files found.
openair2/F1AP/f1ap_cu_ue_context_management.c
View file @
f660bd63
...
...
@@ -64,6 +64,15 @@ static void setQos(F1AP_NonDynamic5QIDescriptor_t **toFill)
}
}
static
void
f1ap_write_drb_nssai
(
const
nssai_t
*
nssai
,
F1AP_SNSSAI_t
*
asn1_nssai
)
{
OCTET_STRING_fromBuf
(
&
asn1_nssai
->
sST
,
(
char
*
)
&
nssai
->
sst
,
1
);
/* OPTIONAL */
if
(
nssai
->
sd
!=
0xffffff
)
OCTET_STRING_fromBuf
(
asn1_nssai
->
sD
,
(
char
*
)
&
nssai
->
sd
,
3
);
}
int
CU_send_UE_CONTEXT_SETUP_REQUEST
(
sctp_assoc_t
assoc_id
,
f1ap_ue_context_setup_t
*
f1ap_ue_context_setup_req
)
{
F1AP_F1AP_PDU_t
pdu
=
{
0
};
...
...
@@ -393,16 +402,9 @@ int CU_send_UE_CONTEXT_SETUP_REQUEST(sctp_assoc_t assoc_id, f1ap_ue_context_setu
asn1cCallocOne
(
DRB_Information
->
dRB_QoS
.
reflective_QoS_Attribute
,
1L
);
}
}
// dRB_QoS
/* 12.1.2.2 sNSSAI */
{
/* sST */
OCTET_STRING_fromBuf
(
&
DRB_Information
->
sNSSAI
.
sST
,
(
char
*
)
&
f1ap_ue_context_setup_req
->
drbs_to_be_setup
[
i
].
nssai
.
sst
,
1
);
/* OPTIONAL */
const
uint32_t
sd
=
(
f1ap_ue_context_setup_req
->
drbs_to_be_setup
[
i
].
nssai
.
sd
&
0xffffff
);
if
(
sd
!=
0xffffff
)
OCTET_STRING_fromBuf
(
DRB_Information
->
sNSSAI
.
sD
,
(
char
*
)
&
sd
,
3
);
}
/* 12.1.2.2 sNSSAI */
f1ap_write_drb_nssai
(
&
drb
->
nssai
,
&
DRB_Information
->
sNSSAI
);
/* OPTIONAL */
/* 12.1.2.3 notificationControl */
...
...
@@ -1300,16 +1302,9 @@ int CU_send_UE_CONTEXT_MODIFICATION_REQUEST(sctp_assoc_t assoc_id, f1ap_ue_conte
asn1cCallocOne
(
DRB_Information
->
dRB_QoS
.
reflective_QoS_Attribute
,
1L
);
}
}
// dRB_QoS
/* 12.1.2.2 sNSSAI */
{
/* sST */
OCTET_STRING_fromBuf
(
&
DRB_Information
->
sNSSAI
.
sST
,
(
char
*
)
&
f1ap_ue_context_modification_req
->
drbs_to_be_setup
[
i
].
nssai
.
sst
,
1
);
/* OPTIONAL */
const
uint32_t
sd
=
(
f1ap_ue_context_modification_req
->
drbs_to_be_setup
[
i
].
nssai
.
sd
&
0xffffff
);
if
(
sd
!=
0xffffff
)
OCTET_STRING_fromBuf
(
DRB_Information
->
sNSSAI
.
sD
,
(
char
*
)
&
sd
,
3
);
}
/* 12.1.2.2 sNSSAI */
f1ap_write_drb_nssai
(
&
drb
->
nssai
,
&
DRB_Information
->
sNSSAI
);
/* OPTIONAL */
/* 12.1.2.3 notificationControl */
...
...
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