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
8ac80d61
Commit
8ac80d61
authored
May 19, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create InitialContextSetupRequest message
parent
1d292816
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
src/amf-app/amf_n2.cpp
src/amf-app/amf_n2.cpp
+7
-10
No files found.
src/amf-app/amf_n2.cpp
View file @
8ac80d61
...
...
@@ -708,7 +708,7 @@ void amf_n2::handle_itti_message(itti_initial_context_setup_request& itti_msg) {
0xe000
);
// TODO: remove hardcoded value
msg
->
setSecurityKey
((
uint8_t
*
)
bdata
(
itti_msg
.
kgnb
));
msg
->
setNasPdu
((
uint8_t
*
)
bdata
(
itti_msg
.
nas
),
blength
(
itti_msg
.
nas
));
//
TODO: get the allowed NSSAIs from conf file
//
Allowed NSSAI
std
::
vector
<
S_Nssai
>
list
;
for
(
auto
p
:
amf_cfg
.
plmn_list
)
{
for
(
auto
s
:
p
.
slice_list
)
{
...
...
@@ -718,18 +718,11 @@ void amf_n2::handle_itti_message(itti_initial_context_setup_request& itti_msg) {
list
.
push_back
(
item
);
}
}
// std::vector<S_Nssai> list;
/* S_Nssai item;
item.sst = "01";
item.sd = "None";
list.push_back(item);
*/
msg
->
setAllowedNssai
(
list
);
bdestroy
(
itti_msg
.
nas
);
bdestroy
(
itti_msg
.
kgnb
);
if
(
itti_msg
.
is_sr
or
itti_msg
.
is_pdu_exist
)
{
// TODO: to add UEAggregateMaximumBitRate
bstring
ueCapability
=
gc
.
get
()
->
ue_radio_cap_ind
;
uint8_t
*
uecap
=
(
uint8_t
*
)
calloc
(
1
,
blength
(
ueCapability
)
+
1
);
memcpy
(
uecap
,
(
uint8_t
*
)
bdata
(
ueCapability
),
blength
(
ueCapability
));
...
...
@@ -790,12 +783,16 @@ void amf_n2::handle_itti_message(itti_initial_context_setup_request& itti_msg) {
}
list
.
push_back
(
item
);
msg
->
setPduSessionResourceSetupRequestList
(
list
);
// UEAggregateMaximumBitRate
msg
->
setUEAggregateMaxBitRate
(
0x08a7d8c0
,
0x20989680
);
// TODO: remove hardcoded value
// TODO: Mobility RestrictionList
}
}
uint8_t
buffer
[
20000
];
uint8_t
buffer
[
20000
];
// TODO: remove hardcoded value
int
encoded_size
=
msg
->
encode2buffer
(
buffer
,
10000
);
bstring
b
=
blk2bstr
(
buffer
,
encoded_size
);
sctp_s_38412
.
sctp_send_msg
(
...
...
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