Skip to content

Commit

Permalink
[SMF] copy UE ip address to uplink PDR rules.
Browse files Browse the repository at this point in the history
This helps UPF to add ACL based on src ip

Signed-off-by: Networkmama <networkmama12@gmail.com>
  • Loading branch information
Networkmama authored and acetcom committed Jul 4, 2022
1 parent af4021b commit 29525b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/smf/npcf-handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,10 @@ bool smf_npcf_smpolicycontrol_handle_create(
up2cp_far = sess->up2cp_far;
ogs_assert(up2cp_far);

ogs_assert(OGS_OK ==
ogs_pfcp_paa_to_ue_ip_addr(&sess->session.paa,
&ul_pdr->ue_ip_addr, &ul_pdr->ue_ip_addr_len));

ogs_assert(OGS_OK ==
ogs_pfcp_paa_to_ue_ip_addr(&sess->session.paa,
&dl_pdr->ue_ip_addr, &dl_pdr->ue_ip_addr_len));
Expand Down

0 comments on commit 29525b2

Please sign in to comment.