[MERGED] libosmo-sccp[master]: osmo_ss7: Generate M-SCTP_RESTART.ind towards Layer Manager

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.org
Tue Apr 11 22:27:01 UTC 2017


Harald Welte has submitted this change and it was merged.

Change subject: osmo_ss7: Generate M-SCTP_RESTART.ind towards Layer Manager
......................................................................


osmo_ss7: Generate M-SCTP_RESTART.ind towards Layer Manager

The M3UA RFC defines this primitive to the layer manager, but we so far
didn't generate it.  Let's inform the Layer Manager about such events,
in case it wants to take appropriate action.

Change-Id: I4e4e86f9b9d8ef4639c835878749ce8d8cc76f7c
---
M src/osmo_ss7.c
1 file changed, 9 insertions(+), 0 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/osmo_ss7.c b/src/osmo_ss7.c
index 7da9ba3..1bcc5c8 100644
--- a/src/osmo_ss7.c
+++ b/src/osmo_ss7.c
@@ -1203,6 +1203,11 @@
 			osmo_stream_srv_destroy(conn);
 			osmo_fsm_inst_dispatch(asp->fi, XUA_ASP_E_SCTP_COMM_DOWN_IND, asp);
 			break;
+		case SCTP_ASSOC_CHANGE:
+			if (notif->sn_assoc_change.sac_state == SCTP_RESTART)
+				xua_asp_send_xlm_prim_simple(asp, OSMO_XLM_PRIM_M_SCTP_RESTART,
+							     PRIM_OP_INDICATION);
+			break;
 		default:
 			break;
 		}
@@ -1306,6 +1311,10 @@
 			osmo_fsm_inst_dispatch(asp->fi, XUA_ASP_E_SCTP_COMM_DOWN_IND, asp);
 			xua_cli_close_and_reconnect(conn);
 			break;
+		case SCTP_ASSOC_CHANGE:
+			if (notif->sn_assoc_change.sac_state == SCTP_RESTART)
+				xua_asp_send_xlm_prim_simple(asp, OSMO_XLM_PRIM_M_SCTP_RESTART,
+							     PRIM_OP_INDICATION);
 		default:
 			break;
 		}

-- 
To view, visit https://gerrit.osmocom.org/2302
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I4e4e86f9b9d8ef4639c835878749ce8d8cc76f7c
Gerrit-PatchSet: 3
Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list