path: root/include
diff options
authorHarald Welte <>2019-10-29 21:55:49 +0100
committerlaforge <>2019-11-05 20:50:51 +0000
commit1a822635f8e5a389aaae68d2d4fed3e310739129 (patch)
tree4425e2bfea8139c19841cc6884032405ae0e318e /include
parent79fb8a66f3f68a387c75312e08572589846e89c0 (diff)
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
Diffstat (limited to 'include')
1 files changed, 2 insertions, 0 deletions
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;