Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-SMF
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
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-SMF
Commits
845b2301
Commit
845b2301
authored
Oct 31, 2019
by
wangyongshou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compile problem
parent
ab5bbfb8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
0 deletions
+35
-0
src/api-server/impl/SMContextsCollectionApiImpl.cpp
src/api-server/impl/SMContextsCollectionApiImpl.cpp
+4
-0
src/smf_app/smf_app.cpp
src/smf_app/smf_app.cpp
+31
-0
No files found.
src/api-server/impl/SMContextsCollectionApiImpl.cpp
100644 → 100755
View file @
845b2301
...
@@ -37,6 +37,10 @@ void SMContextsCollectionApiImpl::post_sm_contexts(const SmContextMessage &smCon
...
@@ -37,6 +37,10 @@ void SMContextsCollectionApiImpl::post_sm_contexts(const SmContextMessage &smCon
Logger
::
smf_api_server
().
info
(
"post_sm_contexts..."
);
Logger
::
smf_api_server
().
info
(
"post_sm_contexts..."
);
std
::
string
ngap_msg_str
=
"hello world"
;
m_smf_app
->
create_n2_sm_information
(
NULL
,
0
,
0
,
ngap_msg_str
);
return
;
//decode NAS message and assign the necessary informations to smf::pdu_session_create_sm_context_request
//decode NAS message and assign the necessary informations to smf::pdu_session_create_sm_context_request
//and pass this message to SMF to handle this message
//and pass this message to SMF to handle this message
...
...
src/smf_app/smf_app.cpp
100644 → 100755
View file @
845b2301
...
@@ -2361,11 +2361,42 @@ void smf_app::create_n1_sm_container(std::shared_ptr<itti_n11_create_sm_context_
...
@@ -2361,11 +2361,42 @@ void smf_app::create_n1_sm_container(std::shared_ptr<itti_n11_create_sm_context_
//TODO: should work with BUPT to finish this function
//TODO: should work with BUPT to finish this function
}
}
#include "Ngap_ProtocolIE-Field.h"
#include "Ngap_NGAP-PDU.h"
#include "Ngap_ProcedureCode.h"
//#include "Ngap_InitiatingMessage.h"
#include "Ngap_Criticality.h"
#include "Ngap_PDUSessionResourceSetupRequest.h"
#include "Ngap_ProtocolIE-Field.h"
#include "Ngap_NGAP-PDU.h"
//#include "Ngap_InitiatingMessage.h"
#include "INTEGER.h"
#include "asn_SEQUENCE_OF.h"
void
add_pdu_session_resource_setup_request_ie
(
Ngap_PDUSessionResourceSetupRequest_t
*
ngapPDUSessionResourceSetupRequest
,
Ngap_PDUSessionResourceSetupRequestIEs_t
*
ie
)
{
int
ret
;
ret
=
ASN_SEQUENCE_ADD
(
&
ngapPDUSessionResourceSetupRequest
->
protocolIEs
.
list
,
ie
);
if
(
ret
!=
0
)
{
fprintf
(
stderr
,
"Failed to add ie
\n
"
);
return
;
}
return
;
}
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
void
smf_app
::
create_n2_sm_information
(
std
::
shared_ptr
<
itti_n11_create_sm_context_response
>
sm_context_res
,
uint8_t
ngap_msg_type
,
uint8_t
ngap_ie_type
,
std
::
string
&
ngap_msg_str
)
void
smf_app
::
create_n2_sm_information
(
std
::
shared_ptr
<
itti_n11_create_sm_context_response
>
sm_context_res
,
uint8_t
ngap_msg_type
,
uint8_t
ngap_ie_type
,
std
::
string
&
ngap_msg_str
)
{
{
//TODO: should work with BUPT to finish this function
//TODO: should work with BUPT to finish this function
Logger
::
smf_app
().
info
(
"Create N2 SM Information, ngap message type %d, ie type %d
\n
"
,
ngap_msg_type
,
ngap_ie_type
);
Logger
::
smf_app
().
info
(
"Create N2 SM Information, ngap message type %d, ie type %d
\n
"
,
ngap_msg_type
,
ngap_ie_type
);
Ngap_PDUSessionResourceSetupRequest_t
*
ngapPDUSessionResourceSetupRequest
=
NULL
;;
Ngap_PDUSessionResourceSetupRequestIEs_t
*
ie
=
NULL
;
add_pdu_session_resource_setup_request_ie
(
ngapPDUSessionResourceSetupRequest
,
ie
);
}
}
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
...
...
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