aboutsummaryrefslogtreecommitdiffstats
path: root/src/xua_asp_fsm.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-04-03 17:37:10 +0200
committerHarald Welte <laforge@gnumonks.org>2017-04-10 10:41:16 +0200
commit2d3a709527c3ba3228d8c5aa14a236b5952079b9 (patch)
tree2e13bddad4c9466bfc81155561a9475c4ef707f2 /src/xua_asp_fsm.h
parentc96db7fa585d169eff600ebc291d45b427a6cb16 (diff)
Add new 'osmo_ss7' SS7 core code with M3UA, ASP/AS FSM, ...
This is what aims to be a rather complete/proper implementation of the SIGTRAN + SS7 protocol suite. It has proper abstraction between the layers with primitives, finite state machines for things like the AS and ASP state machines, support for point code routing, etc. What's not implemented at this point: * re-integration of pre-existing SUA (pending) * actual MTP2 and physical E1/T1 link support * different trafic modes like broadcast/fail-over/load-balance Change-Id: I375eb80f01acc013094851d91d1d3333ebc12bc7
Diffstat (limited to 'src/xua_asp_fsm.h')
-rw-r--r--src/xua_asp_fsm.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/xua_asp_fsm.h b/src/xua_asp_fsm.h
new file mode 100644
index 0000000..ea62484
--- /dev/null
+++ b/src/xua_asp_fsm.h
@@ -0,0 +1,42 @@
+#pragma once
+
+enum xua_asp_state {
+ XUA_ASP_S_DOWN,
+ XUA_ASP_S_INACTIVE,
+ XUA_ASP_S_ACTIVE,
+};
+
+enum xua_asp_event {
+ XUA_ASP_E_M_ASP_UP_REQ,
+ XUA_ASP_E_M_ASP_ACTIVE_REQ,
+ XUA_ASP_E_M_ASP_DOWN_REQ,
+ XUA_ASP_E_M_ASP_INACTIVE_REQ,
+
+ XUA_ASP_E_SCTP_COMM_DOWN_IND,
+ XUA_ASP_E_SCTP_RESTART_IND,
+
+ XUA_ASP_E_ASPSM_ASPUP,
+ XUA_ASP_E_ASPSM_ASPUP_ACK,
+ XUA_ASP_E_ASPTM_ASPAC,
+ XUA_ASP_E_ASPTM_ASPAC_ACK,
+ XUA_ASP_E_ASPSM_ASPDN,
+ XUA_ASP_E_ASPSM_ASPDN_ACK,
+ XUA_ASP_E_ASPTM_ASPIA,
+ XUA_ASP_E_ASPTM_ASPIA_ACK,
+
+ XUA_ASP_E_ASPSM_BEAT,
+ XUA_ASP_E_ASPSM_BEAT_ACK,
+
+ _NUM_XUA_ASP_E
+};
+
+enum xua_asp_role {
+ XUA_ASPFSM_ROLE_ASP,
+ XUA_ASPFSM_ROLE_SG,
+ XUA_ASPFSM_ROLE_IPSP,
+};
+
+extern struct osmo_fsm xua_asp_fsm;
+
+struct osmo_fsm_inst *xua_asp_fsm_start(struct osmo_ss7_asp *asp,
+ enum xua_asp_role role, int log_level);