pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmo-sigtran/+/42239?usp=email )
Change subject: Use new libosmo-asn1-tcap API osmo_asn1_tcap_TCMessage_decode() ......................................................................
Use new libosmo-asn1-tcap API osmo_asn1_tcap_TCMessage_decode()
This allows passing a talloc context used to allocate memory when decoding the message.
Related: SYS#5423 Related: OS#6965 Change-Id: Iebeb2808c54c5b82026a1b31d985aa73f602b42a --- M TODO-RELEASE M src/tcap_as_loadshare.c 2 files changed, 2 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/libosmo-sigtran refs/changes/39/42239/1
diff --git a/TODO-RELEASE b/TODO-RELEASE index 0ed7189..ef38361 100644 --- a/TODO-RELEASE +++ b/TODO-RELEASE @@ -7,3 +7,4 @@ # If any interfaces have been added since the last public release: c:r:a + 1. # If any interfaces have been removed or changed since the last public release: c:r:0. #library what description / commit summary line +libosmo-asn1-tcap >0.2.1 osmo_asn1_tcap_TCMessage_decode() diff --git a/src/tcap_as_loadshare.c b/src/tcap_as_loadshare.c index 5a52f83..f7ae3b8 100644 --- a/src/tcap_as_loadshare.c +++ b/src/tcap_as_loadshare.c @@ -96,7 +96,7 @@
OSMO_ASSERT(ids);
- rc = osmo_asn1_tcap_decode(tcapmsg, data, len); + rc = osmo_asn1_tcap_TCMessage_decode(tcapmsg, data, len, as); if (rc < 0) { LOGPAS(as, DLTCAP, LOGL_NOTICE, "Error decoding TCAP message rc: %d, message: %s\n", rc, osmo_hexdump(data, len));