mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-05 07:08:11 +00:00
[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:
parent
825b06b6e0
commit
4b8d3a845a
8 changed files with 59 additions and 38 deletions
|
|
@ -471,12 +471,15 @@ ogs_pfcp_pdr_t *ogs_pfcp_handle_create_pdr(ogs_pfcp_sess_t *sess,
|
|||
ogs_pfcp_pdr_associate_far(pdr, far);
|
||||
}
|
||||
|
||||
pdr->urr = NULL;
|
||||
|
||||
if (message->urr_id.presence) {
|
||||
urr = ogs_pfcp_urr_find_or_add(sess, message->urr_id.u32);
|
||||
ogs_assert(urr);
|
||||
ogs_pfcp_pdr_associate_urr(pdr,urr);
|
||||
for (i = 0; i < OGS_ARRAY_SIZE(pdr->urr); i++)
|
||||
pdr->urr[i] = NULL;
|
||||
pdr->num_of_urr = 0;
|
||||
for (i = 0; i < OGS_ARRAY_SIZE(message->urr_id); i++) {
|
||||
if (message->urr_id[i].presence) {
|
||||
urr = ogs_pfcp_urr_find_or_add(sess, message->urr_id[i].u32);
|
||||
ogs_assert(urr);
|
||||
ogs_pfcp_pdr_associate_urr(pdr,urr);
|
||||
}
|
||||
}
|
||||
|
||||
pdr->qer = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue