[PFCP] Support associating multiple URRs to a PDR (#1456)

* [PFCP] Fix trailing whitespace in message generation files

* [PFCP] message gen: Support multiple URR ID IEs in Create PDR group

* [PFCP] Support associating multiple URRs to a PDR

According to 3GPP TS 29.244:
"""
A PDR shall contain:
- zero, one or more URRs, which contains instructions related to traffic measurement and reporting.
"""
This commit is contained in:
Pau Espin Pedrol 2022-03-28 14:56:58 +02:00 committed by GitHub
parent 825b06b6e0
commit 4b8d3a845a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 59 additions and 38 deletions

View file

@ -339,9 +339,10 @@ void ogs_pfcp_build_create_pdr(
message->far_id.u32 = pdr->far->id;
}
if (pdr->urr) {
message->urr_id.presence = 1;
message->urr_id.u32 = pdr->urr->id;
ogs_assert(pdr->num_of_urr <= OGS_ARRAY_SIZE(message->urr_id));
for (i = 0; i < pdr->num_of_urr; i++) {
message->urr_id[i].presence = 1;
message->urr_id[i].u32 = pdr->urr[i]->id;
}
if (pdr->qer) {