-
Notifications
You must be signed in to change notification settings - Fork 0
/
quickref.txt
225 lines (109 loc) · 5.5 KB
/
quickref.txt
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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
1. General Functions
(sctp-send common-header chunk-vector destination-address) -> #t or #f
(sctp-send common-header chunk-vector destination-address source-address) -> #t or #f
(sctp-receive) -> (common-header chunk-vector destination-address source-address) or
(#f #f #f #f)
(sctp-receive milli_seconds) -> (common-header chunk-vector destination-address source-address) or
(#f #f #f #f)
(sctp-reset) -> #t
2. Address related Functions
(make-ipv4-address string) -> #<address> or #f
(make-ipv6-address string) -> #<address> or #f
3. Error Cause related Functions
(make-cause code info) -> #<cause>
(cause? object) -> #t or #f
(get-cause-code #<cause>) -> code
(get-cause-length #<cause>) -> length
(get-cause-info #<cause>) -> info
4. Parameter related Functions
(make-parameter type value) -> #<parameter>
(parameter? object) -> #t or #f
(get-parameter-type #<parameter>) -> type
(get-parameter-length #<parameter>) -> length
(get-parameter-value #<parameter>) -> value
(make-heartbeat-parameter info) -> #<parameter>
(get-heartbeat-info #<parameter>) -> info
(make-ipv4-address-parameter #<address>) -> #<parameter>
(get-ipv4-address #<parameter>) -> #<address>
(make-ipv6-address-parameter #<address>) -> #<parameter>
(get-ipv6-address #<parameter>) -> #<address>
(make-cookie-parameter info) -> #<parameter>
(get-cookie-parameter-cookie #<parameter>) -> cookie
(make-unrecognized-parameter-parameter parameter_string) -> #<parameter>
(get-unrecognized-parameter #<parameter>) -> #<unrecognized_parameter>
(make-cookie-preservative-parameter life) -> #<parameter>
(get-life-time #<parameter>) -> life
(make-hostname-parameter string) -> #<parameter>
(get-hostname #<parameter>) -> string
(make-supported-address-type-parameter type_vector) -> #<parameter>
(get-supported-address-types #<parameter>) -> type_vector
(make-ecn-capable-parameter) -> #<parameter>
(make-forward-tsn-supported-parameter) -> #<parameter>
(make-add-ip-address-parameter correlation_id address_parameter) -> #<parameter>
(get-correlation-id #<parameter) -> correlation_id
(get-address-parameter #<parameter>) -> #<address_parameter>
(make-delete-ip-address-parameter correlation_id address_parameter) -> #<parameter>
(make-set-primary-address-parameter correlation_id address_parameter) -> #<parameter>
(make-adaption-layer-indication-parameter code_point) -> #<parameter>
(get-code-point #<parameter>) -> code_point
(make-success-indication-parameter correlation_id) -> #<parameter>
(make-error-cause-indication-parameter correlation_id cause_vector) -> #<parameter>
(get-asconf-error-causes #<parameter>) -> cause_vector
5. Chunk related Functions
(make-data-chunk tsn sid ssn ppi user_data_vector unordered begin end) -> #<data_chunk>
(get-tsn #<chunk>) -> tsn
(get-sid #<chunk>) -> sid
(get-ssn #<chunk>) -> ssn
(get-ppi #<chunk>) -> ppi
(get-user-data #<chunk>) -> user_data_vector
(get-u-bit #<chunk>) #t or #f
(get-e-bit #<chunk>) #t or #f
(get-b-bit #<chunk>) #t or #f
(make-init-chunk init_tag a_rwnd MOS MIS init_TSN parameter_vector) -> #<init_chunk>
(make-init-ack-chunk init_tag a_rwnd MOS MIS init_TSN parameter_vector) -> #<init_ack_chunk>
(get-initiate-tag #<chunk>) -> init_tag
(get-a-rwnd #<chunk>) -> a_rwnd
(get-mos #<chunk>) -> MOS
(get-mis #<chunk>) -> MIS
(get-initial-tsn #<chunk>) -> init_TSN
(get-parameters #<chunk>) -> parameter_vector
(make-sack-chunk cum_tsn_ack a_rwnd gap_vector dup_tsn_vector nr_of_gaps nr_of_dups) -> #<sack_chunk>
(get-cumulative-tsn-ack #<chunk>) -> cum_tsn_ack
(get-number-of-gaps #<chunk>) -> nr_of_gaps
(get-number-of-dups #<chunk>) -> nr_of_dups
(get-gaps #<chunk>) -> gap_vector
(get-dups #<chunk>) -> dup_tsn_vector
(make-heartbeat-chunk parameter) -> #<chunk>
(make-heartbeat-ack-chunk parameter) -> #<chunk>
(get-heartbeat-parameter #<chunk>) -> #<parameter>
(make-abort-chunk t_flag cause_vector) -> #<chunk>
(get-t-bit #<chunk>) -> #t or #f
(make-shutdown-chunk cum_tsn) -> #<shutdown_chunk>
(make-shutdown-ack-chunk) -> #<shutdown_ack_chunk>
(make-error-chunk cause_vector) -> #<chunk>
(get-causes #<chunk>) -> cause_vector
(make-cookie-echo-chunk state_cookie) -> #<cookie_echo_chunk>
(get-cookie-echo-chunk-cookie #<chunk>) -> state_cookie
(make-cookie-ack-chunk) -> #<cookie_ack_chunk>
(make-ecne-chunk lowest_tsn) -> #<chunk>
(make-cwr-chunk lowest_tsn) -> #<chunk>
("get-lowest-tsn #<chunk>) -> lowest_tsn
(make-shutdown-complete-chunk t_flag) -> #<shutdown_complete_chunk>
(make-forward-tsn-chunk cum_tsn stream_info_vector) -> #<forward_tsn_chunk>
(get-new-cummulative-tsn #<chunk>) -> cum_tsn
(get-new-stream-info #<chunk>) -> stream_info_vector
(make-asconf-chunk serial_number parameter_vector) -> #<chunk>
(make-asconf-ack-chunk serial_number parameter_vector) -> #<chunk>
(get-serial-number #<chunk>) -> serial_number
(make-chunk type flags data_vector) -> #<chunk>
(chunk? object) -> #t or #f
(get-chunk-type #<chunk>) -> type
(get-chunk-flags #<chunk>) -> flags
(get-chunk-length #<chunk>) -> length
(get-chunk-data #<chunk>) -> data_vector
6. Header related Functions
(make-common-header source_port destination_port verification_tag) -> #<common_header>
(common-header? #<chunk>) -> #t or #f
(get-source-port #<common_header>) -> source_port
(get-destination-port #<common_header>) -> destination_port
(get-verification-tag #<common_header>) -> verification_tag