diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2023-08-04 19:37:26 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2023-08-07 19:16:24 +0200 |
commit | a49a2b4d704a502513cd012add3d0a1f7576e7b0 (patch) | |
tree | bd611e89c3b70ee73a2eff76a40a2e918581d4ab /src/stream_srv.c | |
parent | bcfa37ade0a8ec3e325347adb23ba3cc102e0554 (diff) |
stream_srv: Log SCTP REMOTE_ERROR events
The event was enabled but was not being logged.
Change-Id: I49f5a648fd474e320101424fb6873a37442339bf
Diffstat (limited to 'src/stream_srv.c')
-rw-r--r-- | src/stream_srv.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/stream_srv.c b/src/stream_srv.c index 6c50a69..3625ffd 100644 --- a/src/stream_srv.c +++ b/src/stream_srv.c @@ -891,6 +891,10 @@ static int _sctp_recvmsg_wrapper(int fd, struct msgb *msg) /* RFC6458 3.1.4: Any attempt to send more data will cause sendmsg() * to return with an ESHUTDOWN error. */ break; + case SCTP_REMOTE_ERROR: + LOGP(DLINP, LOGL_DEBUG, "===> REMOTE ERROR: %s\n", + osmo_sctp_op_error_str(ntohs(notif->sn_remote_error.sre_error))); + break; } return -EAGAIN; } |