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
f80616c6
Commit
f80616c6
authored
Mar 25, 2020
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update configuration files, smf header file
parent
76b14805
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
14 deletions
+44
-14
etc/smf.conf
etc/smf.conf
+5
-6
src/common/3gpp_29.571.h
src/common/3gpp_29.571.h
+9
-0
src/common/msg/itti_msg_n11.hpp
src/common/msg/itti_msg_n11.hpp
+2
-0
src/common/smf.h
src/common/smf.h
+28
-8
No files found.
etc/smf.conf
View file @
f80616c6
...
...
@@ -80,12 +80,11 @@ SMF =
IP_ADDRESS_POOL
:
{
IPV4_LIST
= (
# {RANGE = "12.1.1.2 - 12.1.1.128";}, # STRING, IPv4 RANGE IP_start - IP_end, YOUR NETWORK CONFIG HERE.
# {RANGE = "12.1.1.129 - 12.1.1.224";}, # STRING, IPv4 RANGE IP_start - IP_end, YOUR NETWORK CONFIG HERE.
# {RANGE = "192.169.0.2 - 192.169.255.253";}, # STRING, IPv4 RANGE IP_start - IP_end, YOUR NETWORK CONFIG HERE.
# {RANGE = "192.170.0.2 - 192.170.255.253";}, # STRING, IPv4 RANGE IP_start - IP_end, YOUR NETWORK CONFIG HERE.
# {RANGE = "192.171.0.2 - 192.171.255.253";} # STRING, IPv4 RANGE IP_start - IP_end, YOUR NETWORK CONFIG HERE.
{
RANGE
=
"10.0.0.3 - 10.0.0.4"
;}
{
RANGE
=
"12.1.1.2 - 12.1.1.128"
;},
# STRING, IPv4 RANGE IP_start - IP_end, YOUR NETWORK CONFIG HERE.
{
RANGE
=
"12.1.1.129 - 12.1.1.224"
;},
# STRING, IPv4 RANGE IP_start - IP_end, YOUR NETWORK CONFIG HERE.
{
RANGE
=
"192.169.0.2 - 192.169.255.253"
;},
# STRING, IPv4 RANGE IP_start - IP_end, YOUR NETWORK CONFIG HERE.
{
RANGE
=
"192.170.0.2 - 192.170.255.253"
;},
# STRING, IPv4 RANGE IP_start - IP_end, YOUR NETWORK CONFIG HERE.
{
RANGE
=
"192.171.0.2 - 192.171.255.253"
;}
# STRING, IPv4 RANGE IP_start - IP_end, YOUR NETWORK CONFIG HERE.
);
IPV6_LIST
= (
{
PREFIX
=
"2001:1:2::/64"
;},
# STRING, IPv6 prefix, YOUR NETWORK CONFIG HERE.
...
...
src/common/3gpp_29.571.h
View file @
f80616c6
...
...
@@ -36,6 +36,7 @@ enum preemtion_capability_e {
static
const
std
::
vector
<
std
::
string
>
preemtion_capability_e2str
=
{
"Error"
,
"NOT_PREEMPT"
,
"MAY_PREEMPT"
};
//see section 5.5.4.1@TS 29.571
typedef
struct
arp_5gc_s
{
uint8_t
priority_level
;
// (integer 1-15)
std
::
string
preempt_cap
;
...
...
@@ -43,6 +44,7 @@ typedef struct arp_5gc_s {
}
arp_5gc_t
;
//see section 5.4.4.1@TS 29.571
typedef
struct
subscribed_default_qos_s
{
uint8_t
_5qi
;
arp_5gc_t
arp
;
...
...
@@ -50,4 +52,11 @@ typedef struct subscribed_default_qos_s{
}
subscribed_default_qos_t
;
enum
reflective_qos_attribute_e
{
RQOS
=
1
,
NO_RQOS
=
2
};
static
const
std
::
vector
<
std
::
string
>
reflective_qos_attribute_e2str
=
{
"ERROR"
,
"RQOS"
,
"NO_RQOS"
};
#endif
src/common/msg/itti_msg_n11.hpp
View file @
f80616c6
...
...
@@ -108,6 +108,8 @@ public:
const
char
*
get_msg_name
()
{
return
"N11_SESSION_UPDATE_SM_CONTEXT_RESPONSE"
;};
smf
::
pdu_session_update_sm_context_response
res
;
Pistache
::
Http
::
ResponseWriter
http_response
;
session_management_procedures_type_e
session_procedure_type
;
};
...
...
src/common/smf.h
View file @
f80616c6
...
...
@@ -24,6 +24,8 @@
#define FILE_SMF_SEEN
#include"3gpp_29.274.h"
#include"3gpp_29.571.h"
#include"3gpp_24.501.h"
typedef
uint64_t
supi64_t
;
#define SUPI_64_FMT "%" SCNu64
...
...
@@ -137,14 +139,13 @@ enum class http_response_codes_e {
//From 23.502
enum
class
session_management_procedures_type_e
{
PDU_SESSION_ESTABLISHMENT_UE_REQUESTED
=
0
,
PDU_SESSION_MODIFICATION_UE_INITIATED
=
1
,
PDU_SESSION_MODIFICATION_SMF_REQUESTED
=
2
,
PDU_SESSION_MODIFICATION_AN_REQUESTED
=
3
,
PDU_SESSION_RELEASE_UE_REQUESTED
=
4
,
PDU_SESSION_RELEASE_NETWORK_REQUESTED
=
5
,
SERVICE_REQUEST_UE_TRIGGERED
=
6
,
SERVICE_REQUEST_NETWORK_TRIGGERED
=
7
SERVICE_REQUEST_UE_TRIGGERED
=
1
,
SERVICE_REQUEST_NETWORK_TRIGGERED
=
2
,
PDU_SESSION_MODIFICATION_UE_INITIATED
=
3
,
PDU_SESSION_MODIFICATION_SMF_REQUESTED
=
4
,
PDU_SESSION_MODIFICATION_AN_REQUESTED
=
5
,
PDU_SESSION_RELEASE_UE_REQUESTED
=
6
,
PDU_SESSION_RELEASE_NETWORK_REQUESTED
=
7
};
static
const
std
::
vector
<
std
::
string
>
session_management_procedures_type_e2str
=
{
...
...
@@ -158,4 +159,23 @@ static const std::vector<std::string> session_management_procedures_type_e2str =
"SERVICE_REQUEST_NETWORK_TRIGGERED"
};
typedef
struct
qos_profile_gbr_s
{
gfbr_t
gfbr
;
//Guaranteed Flow Bit Rate
mfbr_t
mfbr
;
// Maximum Flow Bit Rate
// Notification Control
// Maximum Packet Loss Rate (UL/DL)
}
qos_profile_gbr_t
;
//
typedef
struct
qos_profile_s
{
uint8_t
_5qi
;
arp_5gc_t
arp
;
//union flow_bit_rate_type{
// reflective_qos_attribute_e rqa; //Reflective QoS Attribute (RQA)
// qos_profile_gbr_t qos_profile_gbr; //Attributes for GBR
// };
}
qos_profile_t
;
#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