@@ -221,7 +221,7 @@ struct sctp_datahdr {
221
221
__be16 stream ;
222
222
__be16 ssn ;
223
223
__u32 ppid ;
224
- __u8 payload [0 ];
224
+ __u8 payload [];
225
225
};
226
226
227
227
struct sctp_data_chunk {
@@ -269,7 +269,7 @@ struct sctp_inithdr {
269
269
__be16 num_outbound_streams ;
270
270
__be16 num_inbound_streams ;
271
271
__be32 initial_tsn ;
272
- __u8 params [0 ];
272
+ __u8 params [];
273
273
};
274
274
275
275
struct sctp_init_chunk {
@@ -299,13 +299,13 @@ struct sctp_cookie_preserve_param {
299
299
/* Section 3.3.2.1 Host Name Address (11) */
300
300
struct sctp_hostname_param {
301
301
struct sctp_paramhdr param_hdr ;
302
- uint8_t hostname [0 ];
302
+ uint8_t hostname [];
303
303
};
304
304
305
305
/* Section 3.3.2.1 Supported Address Types (12) */
306
306
struct sctp_supported_addrs_param {
307
307
struct sctp_paramhdr param_hdr ;
308
- __be16 types [0 ];
308
+ __be16 types [];
309
309
};
310
310
311
311
/* ADDIP Section 3.2.6 Adaptation Layer Indication */
@@ -317,25 +317,25 @@ struct sctp_adaptation_ind_param {
317
317
/* ADDIP Section 4.2.7 Supported Extensions Parameter */
318
318
struct sctp_supported_ext_param {
319
319
struct sctp_paramhdr param_hdr ;
320
- __u8 chunks [0 ];
320
+ __u8 chunks [];
321
321
};
322
322
323
323
/* AUTH Section 3.1 Random */
324
324
struct sctp_random_param {
325
325
struct sctp_paramhdr param_hdr ;
326
- __u8 random_val [0 ];
326
+ __u8 random_val [];
327
327
};
328
328
329
329
/* AUTH Section 3.2 Chunk List */
330
330
struct sctp_chunks_param {
331
331
struct sctp_paramhdr param_hdr ;
332
- __u8 chunks [0 ];
332
+ __u8 chunks [];
333
333
};
334
334
335
335
/* AUTH Section 3.3 HMAC Algorithm */
336
336
struct sctp_hmac_algo_param {
337
337
struct sctp_paramhdr param_hdr ;
338
- __be16 hmac_ids [0 ];
338
+ __be16 hmac_ids [];
339
339
};
340
340
341
341
/* RFC 2960. Section 3.3.3 Initiation Acknowledgement (INIT ACK) (2):
@@ -350,7 +350,7 @@ struct sctp_initack_chunk {
350
350
/* Section 3.3.3.1 State Cookie (7) */
351
351
struct sctp_cookie_param {
352
352
struct sctp_paramhdr p ;
353
- __u8 body [0 ];
353
+ __u8 body [];
354
354
};
355
355
356
356
/* Section 3.3.3.1 Unrecognized Parameters (8) */
@@ -384,7 +384,7 @@ struct sctp_sackhdr {
384
384
__be32 a_rwnd ;
385
385
__be16 num_gap_ack_blocks ;
386
386
__be16 num_dup_tsns ;
387
- union sctp_sack_variable variable [0 ];
387
+ union sctp_sack_variable variable [];
388
388
};
389
389
390
390
struct sctp_sack_chunk {
@@ -436,7 +436,7 @@ struct sctp_shutdown_chunk {
436
436
struct sctp_errhdr {
437
437
__be16 cause ;
438
438
__be16 length ;
439
- __u8 variable [0 ];
439
+ __u8 variable [];
440
440
};
441
441
442
442
struct sctp_operr_chunk {
@@ -594,7 +594,7 @@ struct sctp_fwdtsn_skip {
594
594
595
595
struct sctp_fwdtsn_hdr {
596
596
__be32 new_cum_tsn ;
597
- struct sctp_fwdtsn_skip skip [0 ];
597
+ struct sctp_fwdtsn_skip skip [];
598
598
};
599
599
600
600
struct sctp_fwdtsn_chunk {
@@ -611,7 +611,7 @@ struct sctp_ifwdtsn_skip {
611
611
612
612
struct sctp_ifwdtsn_hdr {
613
613
__be32 new_cum_tsn ;
614
- struct sctp_ifwdtsn_skip skip [0 ];
614
+ struct sctp_ifwdtsn_skip skip [];
615
615
};
616
616
617
617
struct sctp_ifwdtsn_chunk {
@@ -658,7 +658,7 @@ struct sctp_addip_param {
658
658
659
659
struct sctp_addiphdr {
660
660
__be32 serial ;
661
- __u8 params [0 ];
661
+ __u8 params [];
662
662
};
663
663
664
664
struct sctp_addip_chunk {
@@ -718,7 +718,7 @@ struct sctp_addip_chunk {
718
718
struct sctp_authhdr {
719
719
__be16 shkey_id ;
720
720
__be16 hmac_id ;
721
- __u8 hmac [0 ];
721
+ __u8 hmac [];
722
722
};
723
723
724
724
struct sctp_auth_chunk {
@@ -733,21 +733,21 @@ struct sctp_infox {
733
733
734
734
struct sctp_reconf_chunk {
735
735
struct sctp_chunkhdr chunk_hdr ;
736
- __u8 params [0 ];
736
+ __u8 params [];
737
737
};
738
738
739
739
struct sctp_strreset_outreq {
740
740
struct sctp_paramhdr param_hdr ;
741
741
__be32 request_seq ;
742
742
__be32 response_seq ;
743
743
__be32 send_reset_at_tsn ;
744
- __be16 list_of_streams [0 ];
744
+ __be16 list_of_streams [];
745
745
};
746
746
747
747
struct sctp_strreset_inreq {
748
748
struct sctp_paramhdr param_hdr ;
749
749
__be32 request_seq ;
750
- __be16 list_of_streams [0 ];
750
+ __be16 list_of_streams [];
751
751
};
752
752
753
753
struct sctp_strreset_tsnreq {
0 commit comments