laforge has uploaded this change for review.
xua_asp_fsm: Log ERROR message when we send a MGMT:ERR message
We've always been logging received MGMT:ERR messages, but we somehow
didn't log the transmission of them. So whenever osmo-stp generates
some error to a connected peer, the peer would show it, but not osmo-stp
itself. Let's fix that.
Change-Id: I50c05409646fd47e70d904fb95bbc2fa15703b3e
---
M src/xua_asp_fsm.c
1 file changed, 16 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmo-sccp refs/changes/37/35937/1
diff --git a/src/xua_asp_fsm.c b/src/xua_asp_fsm.c
index 701e081..8bb5b64 100644
--- a/src/xua_asp_fsm.c
+++ b/src/xua_asp_fsm.c
@@ -293,6 +293,8 @@
struct xua_msg *xua = xua_msg_alloc();
struct msgb *msg;
+ LOGPFSML(fi, LOGL_ERROR, "Tx MGMT_ERR '%s'\n", get_value_string(m3ua_err_names, err_code));
+
xua->hdr = XUA_HDR(SUA_MSGC_MGMT, SUA_MGMT_ERR);
xua->hdr.version = SUA_VERSION;
xua_msg_add_u32(xua, SUA_IEI_ERR_CODE, err_code);
To view, visit change 35937. To unsubscribe, or for help writing mail filters, visit settings.