mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-upf.git
synced 2025-11-02 21:13:46 +00:00
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
This commit is contained in:
@@ -237,12 +237,8 @@ static int far_to_str_buf(char *buf, size_t len, const struct far *far)
|
||||
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, "}");
|
||||
|
||||
Reference in New Issue
Block a user