libosmo-sigtran 2.2.0 Osmocom SIGTRAN library

sccp_scoc_fsm.h
Go to the documentation of this file.
1#pragma once
2
3#include <osmocom/core/fsm.h>
4
5 enum sccp_scoc_fsm_state {
6 S_IDLE,
7 S_CONN_PEND_IN,
8 S_CONN_PEND_OUT,
9 S_ACTIVE,
10 S_DISCONN_PEND,
11 S_RESET_IN,
12 S_RESET_OUT,
13 S_BOTHWAY_RESET,
14 S_WAIT_CONN_CONF,
15};
16
17/* Events that this FSM can process */
18 enum sccp_scoc_fsm_event {
19 /* Primitives from SCCP-User */
20 SCOC_E_SCU_N_CONN_REQ,
21 SCOC_E_SCU_N_CONN_RESP,
22 SCOC_E_SCU_N_DISC_REQ,
23 SCOC_E_SCU_N_DATA_REQ,
24 SCOC_E_SCU_N_EXP_DATA_REQ,
25
26 /* Events from RCOC (Routing for Connection Oriented) */
27 SCOC_E_RCOC_CONN_IND,
28 SCOC_E_RCOC_ROUT_FAIL_IND,
29 SCOC_E_RCOC_RLSD_IND,
30 SCOC_E_RCOC_REL_COMPL_IND,
31 SCOC_E_RCOC_CREF_IND,
32 SCOC_E_RCOC_CC_IND,
33 SCOC_E_RCOC_DT1_IND,
34 SCOC_E_RCOC_DT2_IND,
35 SCOC_E_RCOC_IT_IND,
36 SCOC_E_RCOC_OTHER_NPDU,
37 SCOC_E_RCOC_ERROR_IND,
38
39 /* Timer Events */
40 SCOC_E_T_IAR_EXP,
41 SCOC_E_T_IAS_EXP,
42
43 SCOC_E_CONN_TMR_EXP,
44
45 SCOC_E_T_REL_EXP,
46 SCOC_E_T_INT_EXP,
47 SCOC_E_T_REP_REL_EXP,
48};
49
50 extern struct osmo_fsm sccp_scoc_fsm;
sccp_scoc_fsm_state
sccp_scoc_fsm_state
Definition: sccp_scoc_fsm.h:5
S_CONN_PEND_OUT
@ S_CONN_PEND_OUT
Definition: sccp_scoc_fsm.h:8
S_RESET_IN
@ S_RESET_IN
Definition: sccp_scoc_fsm.h:11
S_RESET_OUT
@ S_RESET_OUT
Definition: sccp_scoc_fsm.h:12
S_IDLE
@ S_IDLE
Definition: sccp_scoc_fsm.h:6
S_WAIT_CONN_CONF
@ S_WAIT_CONN_CONF
Definition: sccp_scoc_fsm.h:14
S_CONN_PEND_IN
@ S_CONN_PEND_IN
Definition: sccp_scoc_fsm.h:7
S_BOTHWAY_RESET
@ S_BOTHWAY_RESET
Definition: sccp_scoc_fsm.h:13
S_ACTIVE
@ S_ACTIVE
Definition: sccp_scoc_fsm.h:9
S_DISCONN_PEND
@ S_DISCONN_PEND
Definition: sccp_scoc_fsm.h:10
sccp_scoc_fsm_event
sccp_scoc_fsm_event
Definition: sccp_scoc_fsm.h:18
SCOC_E_SCU_N_DISC_REQ
@ SCOC_E_SCU_N_DISC_REQ
Definition: sccp_scoc_fsm.h:22
SCOC_E_RCOC_RLSD_IND
@ SCOC_E_RCOC_RLSD_IND
Definition: sccp_scoc_fsm.h:29
SCOC_E_CONN_TMR_EXP
@ SCOC_E_CONN_TMR_EXP
Definition: sccp_scoc_fsm.h:43
SCOC_E_RCOC_CC_IND
@ SCOC_E_RCOC_CC_IND
Definition: sccp_scoc_fsm.h:32
SCOC_E_T_INT_EXP
@ SCOC_E_T_INT_EXP
Definition: sccp_scoc_fsm.h:46
SCOC_E_RCOC_REL_COMPL_IND
@ SCOC_E_RCOC_REL_COMPL_IND
Definition: sccp_scoc_fsm.h:30
SCOC_E_T_IAS_EXP
@ SCOC_E_T_IAS_EXP
Definition: sccp_scoc_fsm.h:41
SCOC_E_T_IAR_EXP
@ SCOC_E_T_IAR_EXP
Definition: sccp_scoc_fsm.h:40
SCOC_E_RCOC_IT_IND
@ SCOC_E_RCOC_IT_IND
Definition: sccp_scoc_fsm.h:35
SCOC_E_SCU_N_CONN_RESP
@ SCOC_E_SCU_N_CONN_RESP
Definition: sccp_scoc_fsm.h:21
SCOC_E_RCOC_DT1_IND
@ SCOC_E_RCOC_DT1_IND
Definition: sccp_scoc_fsm.h:33
SCOC_E_RCOC_DT2_IND
@ SCOC_E_RCOC_DT2_IND
Definition: sccp_scoc_fsm.h:34
SCOC_E_RCOC_OTHER_NPDU
@ SCOC_E_RCOC_OTHER_NPDU
Definition: sccp_scoc_fsm.h:36
SCOC_E_SCU_N_DATA_REQ
@ SCOC_E_SCU_N_DATA_REQ
Definition: sccp_scoc_fsm.h:23
SCOC_E_RCOC_CONN_IND
@ SCOC_E_RCOC_CONN_IND
Definition: sccp_scoc_fsm.h:27
SCOC_E_SCU_N_CONN_REQ
@ SCOC_E_SCU_N_CONN_REQ
Definition: sccp_scoc_fsm.h:20
SCOC_E_T_REL_EXP
@ SCOC_E_T_REL_EXP
Definition: sccp_scoc_fsm.h:45
SCOC_E_RCOC_ROUT_FAIL_IND
@ SCOC_E_RCOC_ROUT_FAIL_IND
Definition: sccp_scoc_fsm.h:28
SCOC_E_T_REP_REL_EXP
@ SCOC_E_T_REP_REL_EXP
Definition: sccp_scoc_fsm.h:47
SCOC_E_RCOC_CREF_IND
@ SCOC_E_RCOC_CREF_IND
Definition: sccp_scoc_fsm.h:31
SCOC_E_SCU_N_EXP_DATA_REQ
@ SCOC_E_SCU_N_EXP_DATA_REQ
Definition: sccp_scoc_fsm.h:24
SCOC_E_RCOC_ERROR_IND
@ SCOC_E_RCOC_ERROR_IND
Definition: sccp_scoc_fsm.h:37
sccp_scoc_fsm
struct osmo_fsm sccp_scoc_fsm
Definition: sccp_scoc_fsm.c:609