summaryrefslogtreecommitdiffstats
path: root/include/sua.hrl
blob: 84a2ddb703d01f2698f33be3e95ad3b0dcb20ce7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
% RFC 3868 SUA SCCP User Adaption

% (C) 2012 by Harald Welte <laforge@gnumonks.org>
%
% All Rights Reserved
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU Affero General Public License as
% published by the Free Software Foundation; either version 3 of the
% License, or (at your option) any later version.
%
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU Affero General Public License
% along with this program.  If not, see <http://www.gnu.org/licenses/>.

-define(SUA_PPID,	4).
-define(SUA_PORT, 	14001).

% 3.1.2 Message Classes
-define(SUA_MSGC_MGMT,	0).
-define(SUA_MSGC_SNM,	2).
-define(SUA_MSGC_ASPSM,	3).
-define(SUA_MSGC_ASPTM,	4).
-define(SUA_MSGC_CL,	7).
-define(SUA_MSGC_CO,	8).
-define(SUA_MSGC_RKM,	9).

% 3.1.3 Message Types
-define(SUA_MGMT_ERR,	0).
-define(SUA_MGMT_NTFY,	1).

-define(SUA_SNM_DUNA,	1).
-define(SUA_SNM_DAVA,	2).
-define(SUA_SNM_DAUD,	3).
-define(SUA_SNM_SCON,	4).
-define(SUA_SNM_DUPU,	5).
-define(SUA_SNM_DRST,	6).

-define(SUA_ASPSM_UP,	1).
-define(SUA_ASPSM_DOWN,	2).
-define(SUA_ASPSM_BEAT,	3).
-define(SUA_ASPSM_UP_ACK, 	4).
-define(SUA_ASPSM_DOWN_ACK,	5).
-define(SUA_ASPSM_BEAT_ACK,	6).

-define(SUA_ASPTM_ACTIVE,	1).
-define(SUA_ASPTM_INACTIVE,	2).
-define(SUA_ASPTM_ACTIVE_ACK,	3).
-define(SUA_ASPTM_INACTIVE_ACK,	4).

-define(SUA_RKM_REG_REQ,	1).
-define(SUA_RKM_REG_RSP,	2).
-define(SUA_RKM_DEREG_REQ,	3).
-define(SUA_RKM_DEREG_RSP,	4).

-define(SUA_CL_CLDT,	 1).
-define(SUA_CL_CLDR,	 2).

-define(SUA_CO_CORE,	1).
-define(SUA_CO_COAK,	2).
-define(SUA_CO_COREF,	3).
-define(SUA_CO_RELRE,	4).
-define(SUA_CO_RELCO,	5).
-define(SUA_CO_RESCO,	6).
-define(SUA_CO_RESRE,	7).
-define(SUA_CO_CODT,	8).
-define(SUA_CO_CODA,	9).
-define(SUA_CO_COERR,	10).
-define(SUA_CO_COIT,	11).

-define(SUA_IEI_ROUTE_CTX,	16#0006).
-define(SUA_IEI_CORR_ID,	16#0013).
-define(SUA_IEI_REG_RESULT,	16#0014).
-define(SUA_IEI_DEREG_RESULT,	16#0015).

% 3.10 SUA specific parameters

-define(SUA_IEI_S7_HOP_CTR,	16#0101).
-define(SUA_IEI_SRC_ADDR,	16#0102).
-define(SUA_IEI_DEST_ADDR,	16#0103).
-define(SUA_IEI_SRC_REF,	16#0104).
-define(SUA_IEI_DEST_REF,	16#0105).
-define(SUA_IEI_CAUSE,		16#0106).
-define(SUA_IEI_SEQ_NR,		16#0107).
-define(SUA_IEI_RX_SEQ_NR,	16#0108).
-define(SUA_IEI_ASP_CAPA,	16#0109).
-define(SUA_IEI_CREDIT,		16#010A).
-define(SUA_IEI_DATA,		16#010B).
-define(SUA_IEI_USER_CAUSE,	16#010C).
-define(SUA_IEI_NET_APPEARANCE,	16#010D).
-define(SUA_IEI_ROUTING_KEY,	16#010E).
-define(SUA_IEI_DRN,		16#010F).
-define(SUA_IEI_TID,		16#0110).
-define(SUA_IEI_SMI,		16#0112).
-define(SUA_IEI_IMPORTANCE,	16#0113).
-define(SUA_IEI_MSG_PRIO,	16#0114).
-define(SUA_IEI_PROTO_CLASS,	16#0115).
-define(SUA_IEI_SEQ_CTRL,	16#0116).
-define(SUA_IEI_SEGMENTATION,	16#0117).
-define(SUA_IEI_CONG_LEVEL,	16#0118).

-define(SUA_IEI_GT,	16#8001).
-define(SUA_IEI_PC,	16#8002).
-define(SUA_IEI_SSN,	16#8003).
-define(SUA_IEI_IPv4,	16#8004).
-define(SUA_IEI_HOST,	16#8005).
-define(SUA_IEI_IPv6,	16#8006).

-define(SUA_RI_GT,	1).
-define(SUA_RI_SSN_PC,	2).
-define(SUA_RI_HOST,	3).
-define(SUA_RI_SSN_IP,	4).