From 1a822635f8e5a389aaae68d2d4fed3e310739129 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Tue, 29 Oct 2019 21:55:49 +0100 Subject: Allow ASP role to be configured So far, we had a static role model: * SCTP servers (listening, such as OsmoSTP) are role SGW * SCTP clients (connecting, such as OsmoMSC) are role ASP While this is customary, it is not actually required by the specification. The SGW can establish the SCTP connection to an ASP but still remain "SG" role. Let's make things more flexible by having the role configurable. Related: OS#2005 Change-Id: I2df9cd9747ad5c9a05d567d9a71bab6184c53674 --- include/osmocom/sigtran/osmo_ss7.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/osmocom/sigtran/osmo_ss7.h b/include/osmocom/sigtran/osmo_ss7.h index 87336a8..826b890 100644 --- a/include/osmocom/sigtran/osmo_ss7.h +++ b/include/osmocom/sigtran/osmo_ss7.h @@ -418,6 +418,8 @@ struct osmo_ss7_asp { enum osmo_ss7_asp_protocol proto; enum osmo_ss7_asp_admin_state adm_state; bool is_server; + enum osmo_ss7_asp_role role; + bool role_set_by_vty; struct osmo_ss7_asp_peer local; struct osmo_ss7_asp_peer remote; -- cgit v1.2.3