[PATCH] 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 20:48:39 UTC 2017


Hello Jenkins Builder,

I'd like you to reexamine a change.  Please visit

    https://gerrit.osmocom.org/2302

to look at the new patch set (#2).

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(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmo-sccp refs/changes/02/2302/2

diff --git a/src/osmo_ss7.c b/src/osmo_ss7.c
index ff53317..79b0272 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: newpatchset
Gerrit-Change-Id: I4e4e86f9b9d8ef4639c835878749ce8d8cc76f7c
Gerrit-PatchSet: 2
Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list