Commit f80616c6 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

update configuration files, smf header file

parent 76b14805
......@@ -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.
......
......@@ -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
......@@ -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;
};
......
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment