From 8dca1eacd8de51cb4b14896e570cf974befdf586 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Tue, 30 Jul 2019 00:23:55 +0200 Subject: [PATCH] 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 --- src/mme/mme-fd-path.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/mme/mme-fd-path.c b/src/mme/mme-fd-path.c index 01f1e9252..ec016574d 100644 --- a/src/mme/mme-fd-path.c +++ b/src/mme/mme-fd-path.c @@ -806,8 +806,7 @@ static void mme_s6a_ula_cb(void *data, struct msg **msg) pdn->qos.arp.pre_emption_capability = hdr->avp_value->i32; } else { - ogs_error("no_Preemption-Capability"); - error++; + pdn->qos.arp.pre_emption_capability = 1; /* disabled */ } 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 = hdr->avp_value->i32; } else { - ogs_error("no_Preemption-Vulnerability"); - error++; + pdn->qos.arp.pre_emption_vulnerability = 0; /* enabled */ } } else {