mme: Apply default values for Pre-Emption Capability + Vulnerability

Section 7.3.40 of 3GPP TS 29.272 states default values to be used if
those AVPs are not present in the DIAMETER message.

Closes: #239
This commit is contained in:
Harald Welte
2019-07-30 00:23:55 +02:00
parent a8c14916a7
commit 8dca1eacd8

View File

@@ -806,8 +806,7 @@ static void mme_s6a_ula_cb(void *data, struct msg **msg)
pdn->qos.arp.pre_emption_capability = pdn->qos.arp.pre_emption_capability =
hdr->avp_value->i32; hdr->avp_value->i32;
} else { } else {
ogs_error("no_Preemption-Capability"); pdn->qos.arp.pre_emption_capability = 1; /* disabled */
error++;
} }
ret = fd_avp_search_avp(avpch4, ret = fd_avp_search_avp(avpch4,
@@ -819,8 +818,7 @@ static void mme_s6a_ula_cb(void *data, struct msg **msg)
pdn->qos.arp.pre_emption_vulnerability = pdn->qos.arp.pre_emption_vulnerability =
hdr->avp_value->i32; hdr->avp_value->i32;
} else { } else {
ogs_error("no_Preemption-Vulnerability"); pdn->qos.arp.pre_emption_vulnerability = 0; /* enabled */
error++;
} }
} else { } else {