neels has uploaded this change for review. ( 
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(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-upf refs/changes/64/30464/1

diff --git a/src/osmo-upf/up_session.c b/src/osmo-upf/up_session.c
index 38be5ff..915dd75 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;
                }
        }

--
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: 1
Gerrit-Owner: neels <[email protected]>
Gerrit-MessageType: newchange

Reply via email to