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:
Neels Janosch Hofmeyr
2022-12-01 00:45:54 +01:00
parent 6d17c43c42
commit 391259bd8c

View File

@@ -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, "}");