neels has submitted this change. ( 
https://gerrit.osmocom.org/c/osmo-upf/+/30464 )

Change subject: fix PFCP Session Mod: Update FAR
......................................................................

fix PFCP Session Mod: Update FAR

Fix parsing of the Update FAR information so that a Session Modification
Request properly causes a GTP action to become active:

Add missing forw_params_present = true, and copy the information from
the incoming message instead of the current state.

Related: SYS#6192
Change-Id: I2a2c015d5615bb461b4d7b476a7c9830dc8e130f
---
M src/osmo-upf/up_session.c
1 file changed, 5 insertions(+), 4 deletions(-)

Approvals:
  neels: Looks good to me, approved
  pespin: Looks good to me, but someone else must approve
  arehbein: Looks good to me, but someone else must approve
  Jenkins Builder: Verified



diff --git a/src/osmo-upf/up_session.c b/src/osmo-upf/up_session.c
index b3b74f2..fe3d359 100644
--- a/src/osmo-upf/up_session.c
+++ b/src/osmo-upf/up_session.c
@@ -257,22 +257,23 @@
        if (upd->upd_forw_params_present) {
                const struct osmo_pfcp_ie_upd_forw_params *u = 
&upd->upd_forw_params;
                struct osmo_pfcp_ie_forw_params *p = &far->desc.forw_params;
+               far->desc.forw_params_present = true;
                if (u->destination_iface_present)
                        p->destination_iface = u->destination_iface;
                if (u->network_inst_present) {
-                       p->network_inst = p->network_inst;
+                       p->network_inst = u->network_inst;
                        p->network_inst_present = true;
                }
                if (u->outer_header_creation_present) {
-                       p->outer_header_creation = p->outer_header_creation;
+                       p->outer_header_creation = u->outer_header_creation;
                        p->outer_header_creation_present = true;
                }
                if (u->linked_te_id_present) {
-                       p->linked_te_id = p->linked_te_id;
+                       p->linked_te_id = u->linked_te_id;
                        p->linked_te_id_present = true;
                }
                if (u->destination_iface_type_present) {
-                       p->destination_iface_type = p->destination_iface_type;
+                       p->destination_iface_type = u->destination_iface_type;
                        p->destination_iface_type_present = true;
                }
        }



1 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted 
one.
--
To view, visit https://gerrit.osmocom.org/c/osmo-upf/+/30464
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-upf
Gerrit-Branch: master
Gerrit-Change-Id: I2a2c015d5615bb461b4d7b476a7c9830dc8e130f
Gerrit-Change-Number: 30464
Gerrit-PatchSet: 3
Gerrit-Owner: neels <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: arehbein <[email protected]>
Gerrit-Reviewer: neels <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>
Gerrit-CC: laforge <[email protected]>
Gerrit-MessageType: merged

Reply via email to