neels has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-upf/+/30458 )


Change subject: use osmo_pfcp_ie_outer_header_creation_to_str_buf()
......................................................................

use osmo_pfcp_ie_outer_header_creation_to_str_buf()

Fix missing IP address in to-string of Outer Header Creation IE: Use
osmo_pfcp_ie_outer_header_creation_to_str_buf() from libosmo-pfcp
instead of re-inventing.

Depends: I4ad1570485c8081b82284e4e6b4de4d7eed414b0 (libosmo-pfcp)
Change-Id: I0d4d9edcfc94b61bdc74cfd4ff837f151d1c28ae
---
M src/osmo-upf/up_session.c
1 file changed, 2 insertions(+), 6 deletions(-)



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

diff --git a/src/osmo-upf/up_session.c b/src/osmo-upf/up_session.c
index e77fe6b..157f0c3 100644
--- a/src/osmo-upf/up_session.c
+++ b/src/osmo-upf/up_session.c
@@ -237,12 +237,8 @@
        if (f->forw_params_present) {
                OSMO_STRBUF_PRINTF(sb, " dst:%s", 
osmo_pfcp_dest_iface_str(f->forw_params.destination_iface));
                if (f->forw_params.outer_header_creation_present) {
-                       OSMO_STRBUF_PRINTF(sb, " encaps-");
-                       OSMO_STRBUF_APPEND(sb, osmo_pfcp_bits_to_str_buf,
-                                          
f->forw_params.outer_header_creation.desc_bits,
-                                          
osmo_pfcp_outer_header_creation_strs);
-                       if (f->forw_params.outer_header_creation.teid_present)
-                               OSMO_STRBUF_PRINTF(sb, " TEID-0x%x", 
f->forw_params.outer_header_creation.teid);
+                       OSMO_STRBUF_APPEND(sb, 
osmo_pfcp_ie_outer_header_creation_to_str_buf,
+                                          
&f->forw_params.outer_header_creation);
                }
        }
        OSMO_STRBUF_PRINTF(sb, "}");

--
To view, visit https://gerrit.osmocom.org/c/osmo-upf/+/30458
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-upf
Gerrit-Branch: master
Gerrit-Change-Id: I0d4d9edcfc94b61bdc74cfd4ff837f151d1c28ae
Gerrit-Change-Number: 30458
Gerrit-PatchSet: 1
Gerrit-Owner: neels <[email protected]>
Gerrit-MessageType: newchange

Reply via email to