/
SCTPasp_Types.ttcn
201 lines (159 loc) · 3.67 KB
/
SCTPasp_Types.ttcn
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
/******************************************************************************
* Copyright (c) 2000-2019 Ericsson Telecom AB
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
*
* Contributors:
* Peter Dimitrov- initial implementation and initial documentation
* Adam Delic
* Eduard Czimbalmos
* Endre Kulcsar
* Gabor Bettesch
* Gabor Szalai
* Tamas Buti
* Zoltan Medve
******************************************************************************/
//
// File: SCTPasp_Types.ttcn
// Description: SCTP ASP definition file
// Rev: R11A
// Prodnr: CNL 113 469
//
module SCTPasp_Types
{
//=========================================================================
// Data Types
//=========================================================================
type octetstring PDU_SCTP;
type record ASP_SCTP
{
integer client_id optional,
integer sinfo_stream,
integer sinfo_ppid,
PDU_SCTP data
}
type record ASP_SCTP_Connect
{
charstring peer_hostname optional,
integer peer_portnumber (1..65535) optional
}
type record ASP_SCTP_ConnectFrom
{
charstring local_hostname optional,
integer local_portnumber (1..65535),
charstring peer_hostname optional,
integer peer_portnumber (1..65535) optional
}
type record ASP_SCTP_Listen
{
charstring local_hostname optional,
integer local_portnumber (1..65535)
}
type record SCTP_INIT
{
integer sinit_num_ostreams,
integer sinit_max_instreams,
integer sinit_max_attempts,
integer sinit_max_init_timeo
}
type record SCTP_EVENTS
{
boolean sctp_data_io_event,
boolean sctp_association_event,
boolean sctp_address_event,
boolean sctp_send_failure_event,
boolean sctp_peer_error_event,
boolean sctp_shutdown_event,
boolean sctp_partial_delivery_event,
boolean sctp_adaption_layer_event
}
type record SO_LINGER
{
integer l_onoff,
integer l_linger
}
type record SCTP_RTOINFO
{
integer client_id,
integer srto_initial,
integer srto_max,
integer srto_min
}
type union ASP_SCTP_SetSocketOptions
{
SCTP_INIT Sctp_init,
SCTP_EVENTS Sctp_events,
SO_LINGER So_linger,
SCTP_RTOINFO Sctp_rtoinfo
}
type record ASP_SCTP_Close
{
integer client_id optional
}
type enumerated SAC_STATE
{
SCTP_COMM_UP, SCTP_COMM_LOST, SCTP_RESTART,
SCTP_SHUTDOWN_COMP, SCTP_CANT_STR_ASSOC, SCTP_UNKNOWN_SAC_STATE
}
type record ASP_SCTP_ASSOC_CHANGE
{
integer client_id,
SAC_STATE sac_state
}
type enumerated SPC_STATE
{
SCTP_ADDR_AVAILABLE, SCTP_ADDR_UNREACHABLE, SCTP_ADDR_REMOVED,
SCTP_ADDR_ADDED, SCTP_ADDR_MADE_PRIM, SCTP_ADDR_CONFIRMED, SCTP_UNKNOWN_SPC_STATE
}
type record ASP_SCTP_PEER_ADDR_CHANGE
{
integer client_id,
SPC_STATE spc_state
}
type record ASP_SCTP_SEND_FAILED
{
integer client_id
}
type record ASP_SCTP_REMOTE_ERROR
{
integer client_id
}
type record ASP_SCTP_SHUTDOWN_EVENT
{
integer client_id
}
type record ASP_SCTP_PARTIAL_DELIVERY_EVENT
{
integer client_id
}
type record ASP_SCTP_ADAPTION_INDICATION
{
integer client_id
}
type record ASP_SCTP_Connected
{
integer client_id,
charstring local_hostname,
integer local_portnumber (1..65535),
charstring peer_hostname,
integer peer_portnumber (1..65535)
}
type record ASP_SCTP_SENDMSG_ERROR
{
integer client_id optional,
integer sinfo_stream,
integer sinfo_ppid,
PDU_SCTP data
}
type record ASP_SCTP_RESULT
{
integer client_id optional,
boolean error_status,
charstring error_message optional
}
}//end of module
with {
extension "version R11A"
}