update it
This commit is contained in:
parent
a9cb373f47
commit
ec147b1bbe
|
@ -55,10 +55,8 @@ status_t hss_context_init(void)
|
||||||
profile->access_restriction_data = 0;
|
profile->access_restriction_data = 0;
|
||||||
profile->subscriber_status = HSS_SUBSCRIBER_STATUS_SERVICE_GRANTED;
|
profile->subscriber_status = HSS_SUBSCRIBER_STATUS_SERVICE_GRANTED;
|
||||||
profile->network_access_mode = HSS_NETWORK_ACCESS_MODE_ONLY_PACKET;
|
profile->network_access_mode = HSS_NETWORK_ACCESS_MODE_ONLY_PACKET;
|
||||||
#if HSS_DISABLE_MAX_BANDWIDTH_PER_UE == 0
|
|
||||||
profile->max_bandwidth_ul = 102400; /* Kbps */
|
profile->max_bandwidth_ul = 102400; /* Kbps */
|
||||||
profile->max_bandwidth_dl = 102400; /* Kbps */
|
profile->max_bandwidth_dl = 102400; /* Kbps */
|
||||||
#endif
|
|
||||||
|
|
||||||
profile->subscribed_rau_tau_timer = 12; /* minutes */
|
profile->subscribed_rau_tau_timer = 12; /* minutes */
|
||||||
|
|
||||||
|
@ -303,10 +301,8 @@ hss_ue_t* hss_ue_add(hss_profile_id_t id, c_int8_t *imsi_bcd)
|
||||||
ue->access_restriction_data = profile->access_restriction_data;
|
ue->access_restriction_data = profile->access_restriction_data;
|
||||||
ue->subscriber_status = profile->subscriber_status;
|
ue->subscriber_status = profile->subscriber_status;
|
||||||
ue->network_access_mode = profile->network_access_mode;
|
ue->network_access_mode = profile->network_access_mode;
|
||||||
#if HSS_DISABLE_MAX_BANDWIDTH_PER_UE == 0
|
|
||||||
ue->max_bandwidth_ul = profile->max_bandwidth_ul;
|
ue->max_bandwidth_ul = profile->max_bandwidth_ul;
|
||||||
ue->max_bandwidth_dl = profile->max_bandwidth_dl;
|
ue->max_bandwidth_dl = profile->max_bandwidth_dl;
|
||||||
#endif
|
|
||||||
|
|
||||||
ue->subscribed_rau_tau_timer = profile->subscribed_rau_tau_timer;
|
ue->subscribed_rau_tau_timer = profile->subscribed_rau_tau_timer;
|
||||||
|
|
||||||
|
|
|
@ -14,9 +14,6 @@ extern "C" {
|
||||||
#define HSS_KEY_LEN 16
|
#define HSS_KEY_LEN 16
|
||||||
#define HSS_AMF_LEN 2
|
#define HSS_AMF_LEN 2
|
||||||
|
|
||||||
/* FIXME : Does it needed? */
|
|
||||||
#define HSS_DISABLE_MAX_BANDWIDTH_PER_UE 1
|
|
||||||
|
|
||||||
typedef c_uint32_t hss_profile_id_t;
|
typedef c_uint32_t hss_profile_id_t;
|
||||||
typedef struct _hss_profile_t {
|
typedef struct _hss_profile_t {
|
||||||
lnode_t node; /**< A node of list_t */
|
lnode_t node; /**< A node of list_t */
|
||||||
|
@ -34,10 +31,8 @@ typedef struct _hss_profile_t {
|
||||||
c_uint32_t subscriber_status;
|
c_uint32_t subscriber_status;
|
||||||
c_uint32_t network_access_mode;
|
c_uint32_t network_access_mode;
|
||||||
|
|
||||||
#if HSS_DISABLE_MAX_BANDWIDTH_PER_UE == 0
|
|
||||||
c_uint32_t max_bandwidth_ul; /* Kbps */
|
c_uint32_t max_bandwidth_ul; /* Kbps */
|
||||||
c_uint32_t max_bandwidth_dl; /* Kbps */
|
c_uint32_t max_bandwidth_dl; /* Kbps */
|
||||||
#endif
|
|
||||||
|
|
||||||
c_uint32_t subscribed_rau_tau_timer; /* minutes */
|
c_uint32_t subscribed_rau_tau_timer; /* minutes */
|
||||||
} hss_profile_t;
|
} hss_profile_t;
|
||||||
|
@ -70,10 +65,8 @@ typedef struct _hss_ue_t {
|
||||||
#define HSS_NETWORK_ACCESS_MODE_ONLY_PACKET 2
|
#define HSS_NETWORK_ACCESS_MODE_ONLY_PACKET 2
|
||||||
c_uint32_t network_access_mode;
|
c_uint32_t network_access_mode;
|
||||||
|
|
||||||
#if HSS_DISABLE_MAX_BANDWIDTH_PER_UE == 0
|
|
||||||
c_uint32_t max_bandwidth_ul; /* Kbps */
|
c_uint32_t max_bandwidth_ul; /* Kbps */
|
||||||
c_uint32_t max_bandwidth_dl; /* Kbps */
|
c_uint32_t max_bandwidth_dl; /* Kbps */
|
||||||
#endif
|
|
||||||
|
|
||||||
c_uint32_t subscribed_rau_tau_timer; /* minutes */
|
c_uint32_t subscribed_rau_tau_timer; /* minutes */
|
||||||
|
|
||||||
|
|
|
@ -257,7 +257,6 @@ static int hss_ulr_cb( struct msg **msg, struct avp *avp,
|
||||||
avp_network_access_mode) == 0, goto out,);
|
avp_network_access_mode) == 0, goto out,);
|
||||||
|
|
||||||
/* Set the AMBR */
|
/* Set the AMBR */
|
||||||
#if HSS_DISABLE_MAX_BANDWIDTH_PER_UE == 0
|
|
||||||
d_assert(fd_msg_avp_new(s6a_ambr, 0, &avp_ambr) == 0, goto out,);
|
d_assert(fd_msg_avp_new(s6a_ambr, 0, &avp_ambr) == 0, goto out,);
|
||||||
d_assert(fd_msg_avp_new(s6a_max_bandwidth_ul, 0,
|
d_assert(fd_msg_avp_new(s6a_max_bandwidth_ul, 0,
|
||||||
&avp_max_bandwidth_ul) == 0, goto out,);
|
&avp_max_bandwidth_ul) == 0, goto out,);
|
||||||
|
@ -275,7 +274,6 @@ static int hss_ulr_cb( struct msg **msg, struct avp *avp,
|
||||||
avp_max_bandwidth_dl) == 0, goto out,);
|
avp_max_bandwidth_dl) == 0, goto out,);
|
||||||
d_assert(fd_msg_avp_add(avp, MSG_BRW_LAST_CHILD, avp_ambr) == 0,
|
d_assert(fd_msg_avp_add(avp, MSG_BRW_LAST_CHILD, avp_ambr) == 0,
|
||||||
goto out,);
|
goto out,);
|
||||||
#endif
|
|
||||||
|
|
||||||
if (ue->num_of_pdn && ue->pdn[0])
|
if (ue->num_of_pdn && ue->pdn[0])
|
||||||
{
|
{
|
||||||
|
|
|
@ -18,8 +18,6 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
#define MME_DISABLE_MAX_BANDWIDTH_PER_UE 1
|
|
||||||
|
|
||||||
#define MAX_PLMN_ID 6
|
#define MAX_PLMN_ID 6
|
||||||
#define GRP_PER_MME 256 /* According to spec it is 65535 */
|
#define GRP_PER_MME 256 /* According to spec it is 65535 */
|
||||||
#define CODE_PER_MME 256 /* According to spec it is 256 */
|
#define CODE_PER_MME 256 /* According to spec it is 256 */
|
||||||
|
@ -142,10 +140,8 @@ typedef struct _mme_ue_t {
|
||||||
/* HSS Info */
|
/* HSS Info */
|
||||||
c_uint32_t ula_flags;
|
c_uint32_t ula_flags;
|
||||||
|
|
||||||
#if MME_DISABLE_MAX_BANDWIDTH_PER_UE == 0
|
|
||||||
c_uint32_t max_bandwidth_ul; /* bits per seconds */
|
c_uint32_t max_bandwidth_ul; /* bits per seconds */
|
||||||
c_uint32_t max_bandwidth_dl; /* bits per seconds */
|
c_uint32_t max_bandwidth_dl; /* bits per seconds */
|
||||||
#endif
|
|
||||||
|
|
||||||
pdn_t *pdn[MAX_NUM_OF_PDN];
|
pdn_t *pdn[MAX_NUM_OF_PDN];
|
||||||
int num_of_pdn;
|
int num_of_pdn;
|
||||||
|
|
|
@ -300,7 +300,6 @@ static void mme_s6a_ula_cb(void *data, struct msg **msg)
|
||||||
ue->msisdn_len = hdr->avp_value->os.len;
|
ue->msisdn_len = hdr->avp_value->os.len;
|
||||||
memcpy(ue->msisdn, hdr->avp_value->os.data, ue->msisdn_len);
|
memcpy(ue->msisdn, hdr->avp_value->os.data, ue->msisdn_len);
|
||||||
|
|
||||||
#if MME_DISABLE_MAX_BANDWIDTH_PER_UE == 0
|
|
||||||
d_assert(fd_avp_search_avp(avp, s6a_ambr, &avpch1) == 0 && avpch1,
|
d_assert(fd_avp_search_avp(avp, s6a_ambr, &avpch1) == 0 && avpch1,
|
||||||
error++; goto out,);
|
error++; goto out,);
|
||||||
d_assert(fd_avp_search_avp(avpch1, s6a_max_bandwidth_ul, &avpch2) == 0 &&
|
d_assert(fd_avp_search_avp(avpch1, s6a_max_bandwidth_ul, &avpch2) == 0 &&
|
||||||
|
@ -311,7 +310,6 @@ static void mme_s6a_ula_cb(void *data, struct msg **msg)
|
||||||
avpch2, error++; goto out,);
|
avpch2, error++; goto out,);
|
||||||
d_assert(fd_msg_avp_hdr(avpch2, &hdr) == 0 && hdr, error++; goto out,);
|
d_assert(fd_msg_avp_hdr(avpch2, &hdr) == 0 && hdr, error++; goto out,);
|
||||||
ue->max_bandwidth_dl = hdr->avp_value->i32;
|
ue->max_bandwidth_dl = hdr->avp_value->i32;
|
||||||
#endif
|
|
||||||
|
|
||||||
d_assert(fd_avp_search_avp(avp, s6a_apn_configuration_profile, &avpch1)
|
d_assert(fd_avp_search_avp(avp, s6a_apn_configuration_profile, &avpch1)
|
||||||
== 0 && avpch1, error++; goto out,);
|
== 0 && avpch1, error++; goto out,);
|
||||||
|
|
Loading…
Reference in New Issue