pespin has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/libosmo-netif/+/34083 )


Change subject: stream_srv: sctp: Log error cause of COMM_LOST event
......................................................................

stream_srv: sctp: Log error cause of COMM_LOST event

RFC 6458 6.1.1:
"""
sac_error:  If the state was reached due to an error condition (e.g.,
SCTP_COMM_LOST), any relevant error information is available in
this field.  This corresponds to the protocol error codes defined
in [RFC4960].
"""
Change-Id: Ie48360d22ce1e35eefb1a305dde106948dfa80e8
---
M src/stream_srv.c
1 file changed, 18 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmo-netif refs/changes/83/34083/1

diff --git a/src/stream_srv.c b/src/stream_srv.c
index c1d3739..970ea65 100644
--- a/src/stream_srv.c
+++ b/src/stream_srv.c
@@ -856,7 +856,8 @@
                                LOGPC(DLINP, LOGL_INFO, " UP\n");
                                break;
                        case SCTP_COMM_LOST:
-                               LOGPC(DLINP, LOGL_INFO, " LOST\n");
+                               LOGPC(DLINP, LOGL_INFO, " COMM_LOST (err: 
%s)\n",
+                                     
osmo_sctp_sn_error_str(notif->sn_assoc_change.sac_error));
                                /* Handle this like a regular disconnect */
                                return 0;
                        case SCTP_RESTART:

--
To view, visit https://gerrit.osmocom.org/c/libosmo-netif/+/34083
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-Change-Id: Ie48360d22ce1e35eefb1a305dde106948dfa80e8
Gerrit-Change-Number: 34083
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>
Gerrit-MessageType: newchange

Reply via email to