aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2022-12-10 12:51:47 +0100
committerHarald Welte <laforge@osmocom.org>2022-12-10 12:51:47 +0100
commit99b912f94a219a908cd1fc048d67c100abf143e7 (patch)
tree86d3b95b1f85adcaeb430bbb00bb29b164010efd
parent2f648b2dafa4b73e3d804d02e8d9a978e7ae87db (diff)
SCOC: dump SUA header when logging "mismatching remote pc"
Provide some more information in the logs when this happens Change-Id: Idd889b57e8f842e22e5ed54bea0821dcec0cd8ce
-rw-r--r--src/sccp_scoc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sccp_scoc.c b/src/sccp_scoc.c
index cff6e80..be13a8f 100644
--- a/src/sccp_scoc.c
+++ b/src/sccp_scoc.c
@@ -1726,7 +1726,8 @@ static void sccp_scoc_rx_inval_opc(struct sccp_connection *conn,
struct xua_msg *xua)
{
LOGP(DLSCCP, LOGL_NOTICE,
- "Received message for opc=%u=%s on conn with mismatching remote pc=%u=%s\n",
+ "Received message %s for opc=%u=%s on conn with mismatching remote pc=%u=%s\n",
+ xua_hdr_dump(xua, &xua_dialect_sua),
xua->mtp.opc, osmo_ss7_pointcode_print(conn->inst->ss7, xua->mtp.opc),
conn->remote_pc, osmo_ss7_pointcode_print2(conn->inst->ss7, conn->remote_pc));
/* we have received a message with invalid origin PC and thus