blob: f63637fa82b1cc1dbdd4bf6ffd80f8b6d573527e [file] [log] [blame]
Vadim Yanitskiy741aa572024-06-12 06:16:43 +07001module SCTP_Templates {
2
3/* (C) 2024 by sysmocom - s.f.m.c. GmbH <info@sysmocom.de>
4 *
5 * All rights reserved.
6 *
7 * Released under the terms of GNU General Public License, Version 2 or
8 * (at your option) any later version.
9 *
10 * SPDX-License-Identifier: GPL-2.0-or-later
11 */
12
13import from Socket_API_Definitions all;
14
15template (value) SctpTuple
16ts_SctpTuple(template (omit) integer ppid := omit,
17 template (omit) AssociationId assoc_id := omit) := {
18 sinfo_stream := omit,
19 sinfo_ppid := ppid,
20 remSocks := omit,
21 assocId := assoc_id
22};
23template SctpTuple
24tr_SctpTuple(template integer ppid := *,
25 template AssociationId assoc_id := *) := {
26 sinfo_stream := *,
27 sinfo_ppid := ppid,
28 remSocks := *,
29 assocId := assoc_id
30};
31
32
33template Socket_API_Definitions.PortEvent
34tr_SctpAssocChange(template (present) SAC_STATE state := ?,
35 template (present) ConnectionId conn_id := ?,
36 template (present) SctpTuple sctp := ?) := {
37 sctpEvent := {
38 sctpAssocChange := {
39 clientId := conn_id,
40 proto := {
41 sctp := sctp
42 },
43 sac_state := state
44 }
45 }
46}
47
48template Socket_API_Definitions.PortEvent
49tr_SctpPeerAddrChange(template (present) SPC_STATE state := ?,
50 template (present) ConnectionId conn_id := ?) := {
51 sctpEvent := {
52 sctpPeerAddrChange := {
53 clientId := conn_id,
54 spc_state := state
55 }
56 }
57}
58
59template Socket_API_Definitions.PortEvent
60tr_SctpShutDownEvent(template (present) ConnectionId conn_id := ?) := {
61 sctpEvent := {
62 sctpShutDownEvent := {
63 clientId := conn_id
64 }
65 }
66}
67
68}