This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Harald Welte gerrit-no-reply at lists.osmocom.orgReview at https://gerrit.osmocom.org/2257 xua_msg: Add xua_from_nested() helper function for nested IEs Change-Id: If664ac20f43eb5c8e11bca6e61eb372e25613789 --- M include/osmocom/sigtran/xua_msg.h M src/xua_msg.c 2 files changed, 7 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/libosmo-sccp refs/changes/57/2257/1 diff --git a/include/osmocom/sigtran/xua_msg.h b/include/osmocom/sigtran/xua_msg.h index e0e1bcf..423adbc 100644 --- a/include/osmocom/sigtran/xua_msg.h +++ b/include/osmocom/sigtran/xua_msg.h @@ -82,6 +82,8 @@ struct xua_msg *xua_from_msg(const int version, uint16_t len, uint8_t *data); struct msgb *xua_to_msg(const int version, struct xua_msg *msg); +struct xua_msg *xua_from_nested(struct xua_msg_part *outer); + int msgb_t16l16vp_put(struct msgb *msg, uint16_t tag, uint16_t len, const uint8_t *data); int msgb_t16l16vp_put_u32(struct msgb *msg, uint16_t tag, uint32_t val); int xua_msg_add_u32(struct xua_msg *xua, uint16_t iei, uint32_t val); diff --git a/src/xua_msg.c b/src/xua_msg.c index cb487c8..a5b7560 100644 --- a/src/xua_msg.c +++ b/src/xua_msg.c @@ -163,6 +163,11 @@ return NULL; } +struct xua_msg *xua_from_nested(struct xua_msg_part *outer) +{ + return xua_from_msg(0, outer->len, outer->dat); +} + struct msgb *xua_to_msg(const int version, struct xua_msg *xua) { struct xua_msg_part *part; -- To view, visit https://gerrit.osmocom.org/2257 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: If664ac20f43eb5c8e11bca6e61eb372e25613789 Gerrit-PatchSet: 1 Gerrit-Project: libosmo-sccp Gerrit-Branch: master Gerrit-Owner: Harald Welte <laforge at gnumonks.org>