libosmo-sigtran 2.2.1.6-907ee Osmocom SIGTRAN library

xua_asp_fsm.h
Go to the documentation of this file.
1#pragma once
2
3 enum xua_asp_state {
4 XUA_ASP_S_DOWN,
5 XUA_ASP_S_INACTIVE,
6 XUA_ASP_S_ACTIVE,
7};
8
9 enum xua_asp_event {
10 XUA_ASP_E_M_ASP_UP_REQ,
11 XUA_ASP_E_M_ASP_ACTIVE_REQ,
12 XUA_ASP_E_M_ASP_DOWN_REQ,
13 XUA_ASP_E_M_ASP_INACTIVE_REQ,
14
15 XUA_ASP_E_SCTP_COMM_DOWN_IND,
16 XUA_ASP_E_SCTP_RESTART_IND,
17 XUA_ASP_E_SCTP_EST_IND,
18
19 XUA_ASP_E_ASPSM_ASPUP,
20 XUA_ASP_E_ASPSM_ASPUP_ACK,
21 XUA_ASP_E_ASPTM_ASPAC,
22 XUA_ASP_E_ASPTM_ASPAC_ACK,
23 XUA_ASP_E_ASPSM_ASPDN,
24 XUA_ASP_E_ASPSM_ASPDN_ACK,
25 XUA_ASP_E_ASPTM_ASPIA,
26 XUA_ASP_E_ASPTM_ASPIA_ACK,
27
28 XUA_ASP_E_ASPSM_BEAT,
29 XUA_ASP_E_ASPSM_BEAT_ACK,
30
31 /* The ASP was added to an AS. data: (struct osmo_ss7_as *) */
32 XUA_ASP_E_AS_ASSIGNED,
33
34 /* IPA specific */
35 IPA_ASP_E_ID_RESP,
36 IPA_ASP_E_ID_ACK,
37 IPA_ASP_E_ID_GET,
38
39 _NUM_XUA_ASP_E
40};
41
42extern struct osmo_fsm xua_asp_fsm;
43extern struct osmo_fsm ipa_asp_fsm;
44
45int xua_asp_fsm_start(struct osmo_ss7_asp *asp,
46 enum osmo_ss7_asp_role role, int log_level);
osmo_ss7_asp_role
osmo_ss7_asp_role
Definition: osmo_ss7.h:253
osmo_ss7_asp
Definition: ss7_asp.h:45
xua_asp_event
xua_asp_event
Definition: xua_asp_fsm.h:9
XUA_ASP_E_SCTP_EST_IND
@ XUA_ASP_E_SCTP_EST_IND
Definition: xua_asp_fsm.h:17
XUA_ASP_E_ASPTM_ASPAC_ACK
@ XUA_ASP_E_ASPTM_ASPAC_ACK
Definition: xua_asp_fsm.h:22
XUA_ASP_E_ASPSM_BEAT_ACK
@ XUA_ASP_E_ASPSM_BEAT_ACK
Definition: xua_asp_fsm.h:29
IPA_ASP_E_ID_RESP
@ IPA_ASP_E_ID_RESP
Definition: xua_asp_fsm.h:35
XUA_ASP_E_ASPSM_ASPDN
@ XUA_ASP_E_ASPSM_ASPDN
Definition: xua_asp_fsm.h:23
IPA_ASP_E_ID_ACK
@ IPA_ASP_E_ID_ACK
Definition: xua_asp_fsm.h:36
XUA_ASP_E_SCTP_RESTART_IND
@ XUA_ASP_E_SCTP_RESTART_IND
Definition: xua_asp_fsm.h:16
XUA_ASP_E_ASPSM_ASPUP
@ XUA_ASP_E_ASPSM_ASPUP
Definition: xua_asp_fsm.h:19
XUA_ASP_E_ASPSM_ASPDN_ACK
@ XUA_ASP_E_ASPSM_ASPDN_ACK
Definition: xua_asp_fsm.h:24
XUA_ASP_E_M_ASP_INACTIVE_REQ
@ XUA_ASP_E_M_ASP_INACTIVE_REQ
Definition: xua_asp_fsm.h:13
XUA_ASP_E_ASPSM_ASPUP_ACK
@ XUA_ASP_E_ASPSM_ASPUP_ACK
Definition: xua_asp_fsm.h:20
XUA_ASP_E_ASPTM_ASPAC
@ XUA_ASP_E_ASPTM_ASPAC
Definition: xua_asp_fsm.h:21
XUA_ASP_E_M_ASP_ACTIVE_REQ
@ XUA_ASP_E_M_ASP_ACTIVE_REQ
Definition: xua_asp_fsm.h:11
XUA_ASP_E_ASPTM_ASPIA_ACK
@ XUA_ASP_E_ASPTM_ASPIA_ACK
Definition: xua_asp_fsm.h:26
XUA_ASP_E_SCTP_COMM_DOWN_IND
@ XUA_ASP_E_SCTP_COMM_DOWN_IND
Definition: xua_asp_fsm.h:15
IPA_ASP_E_ID_GET
@ IPA_ASP_E_ID_GET
Definition: xua_asp_fsm.h:37
XUA_ASP_E_ASPTM_ASPIA
@ XUA_ASP_E_ASPTM_ASPIA
Definition: xua_asp_fsm.h:25
XUA_ASP_E_ASPSM_BEAT
@ XUA_ASP_E_ASPSM_BEAT
Definition: xua_asp_fsm.h:28
XUA_ASP_E_M_ASP_UP_REQ
@ XUA_ASP_E_M_ASP_UP_REQ
Definition: xua_asp_fsm.h:10
XUA_ASP_E_M_ASP_DOWN_REQ
@ XUA_ASP_E_M_ASP_DOWN_REQ
Definition: xua_asp_fsm.h:12
_NUM_XUA_ASP_E
@ _NUM_XUA_ASP_E
Definition: xua_asp_fsm.h:39
XUA_ASP_E_AS_ASSIGNED
@ XUA_ASP_E_AS_ASSIGNED
Definition: xua_asp_fsm.h:32
xua_asp_fsm
struct osmo_fsm xua_asp_fsm
Definition: xua_asp_fsm.c:946
ipa_asp_fsm
struct osmo_fsm ipa_asp_fsm
Definition: xua_asp_fsm.c:1506
xua_asp_fsm_start
int xua_asp_fsm_start(struct osmo_ss7_asp *asp, enum osmo_ss7_asp_role role, int log_level)
Start a new ASP finite state machine for given ASP (stored in asp->fi)
Definition: xua_asp_fsm.c:970
xua_asp_state
xua_asp_state
Definition: xua_asp_fsm.h:3
XUA_ASP_S_DOWN
@ XUA_ASP_S_DOWN
Definition: xua_asp_fsm.h:4
XUA_ASP_S_ACTIVE
@ XUA_ASP_S_ACTIVE
Definition: xua_asp_fsm.h:6
XUA_ASP_S_INACTIVE
@ XUA_ASP_S_INACTIVE
Definition: xua_asp_fsm.h:5