@@ -416,27 +416,27 @@ struct sctp_abort_chunk {
416
416
/* For the graceful shutdown we must carry the tag (in common header)
417
417
* and the highest consecutive acking value.
418
418
*/
419
- typedef struct sctp_shutdownhdr {
419
+ struct sctp_shutdownhdr {
420
420
__be32 cum_tsn_ack ;
421
- } sctp_shutdownhdr_t ;
421
+ };
422
422
423
- struct sctp_shutdown_chunk_t {
423
+ struct sctp_shutdown_chunk {
424
424
struct sctp_chunkhdr chunk_hdr ;
425
- sctp_shutdownhdr_t shutdown_hdr ;
425
+ struct sctp_shutdownhdr shutdown_hdr ;
426
426
};
427
427
428
428
/* RFC 2960. Section 3.3.10 Operation Error (ERROR) (9) */
429
429
430
- typedef struct sctp_errhdr {
430
+ struct sctp_errhdr {
431
431
__be16 cause ;
432
432
__be16 length ;
433
433
__u8 variable [0 ];
434
- } sctp_errhdr_t ;
434
+ };
435
435
436
- typedef struct sctp_operr_chunk {
436
+ struct sctp_operr_chunk {
437
437
struct sctp_chunkhdr chunk_hdr ;
438
- sctp_errhdr_t err_hdr ;
439
- } sctp_operr_chunk_t ;
438
+ struct sctp_errhdr err_hdr ;
439
+ };
440
440
441
441
/* RFC 2960 3.3.10 - Operation Error
442
442
*
@@ -457,7 +457,7 @@ typedef struct sctp_operr_chunk {
457
457
* 9 No User Data
458
458
* 10 Cookie Received While Shutting Down
459
459
*/
460
- typedef enum {
460
+ enum sctp_error {
461
461
462
462
SCTP_ERROR_NO_ERROR = cpu_to_be16 (0x00 ),
463
463
SCTP_ERROR_INV_STRM = cpu_to_be16 (0x01 ),
@@ -512,33 +512,28 @@ typedef enum {
512
512
* 0x0105 Unsupported HMAC Identifier
513
513
*/
514
514
SCTP_ERROR_UNSUP_HMAC = cpu_to_be16 (0x0105 )
515
- } sctp_error_t ;
515
+ };
516
516
517
517
518
518
519
519
/* RFC 2960. Appendix A. Explicit Congestion Notification.
520
520
* Explicit Congestion Notification Echo (ECNE) (12)
521
521
*/
522
- typedef struct sctp_ecnehdr {
522
+ struct sctp_ecnehdr {
523
523
__be32 lowest_tsn ;
524
- } sctp_ecnehdr_t ;
524
+ };
525
525
526
- typedef struct sctp_ecne_chunk {
526
+ struct sctp_ecne_chunk {
527
527
struct sctp_chunkhdr chunk_hdr ;
528
- sctp_ecnehdr_t ence_hdr ;
529
- } sctp_ecne_chunk_t ;
528
+ struct sctp_ecnehdr ence_hdr ;
529
+ };
530
530
531
531
/* RFC 2960. Appendix A. Explicit Congestion Notification.
532
532
* Congestion Window Reduced (CWR) (13)
533
533
*/
534
- typedef struct sctp_cwrhdr {
534
+ struct sctp_cwrhdr {
535
535
__be32 lowest_tsn ;
536
- } sctp_cwrhdr_t ;
537
-
538
- typedef struct sctp_cwr_chunk {
539
- struct sctp_chunkhdr chunk_hdr ;
540
- sctp_cwrhdr_t cwr_hdr ;
541
- } sctp_cwr_chunk_t ;
536
+ };
542
537
543
538
/* PR-SCTP
544
539
* 3.2 Forward Cumulative TSN Chunk Definition (FORWARD TSN)
@@ -634,20 +629,20 @@ struct sctp_fwdtsn_chunk {
634
629
* The ASCONF Parameter Response is used in the ASCONF-ACK to
635
630
* report status of ASCONF processing.
636
631
*/
637
- typedef struct sctp_addip_param {
638
- struct sctp_paramhdr param_hdr ;
639
- __be32 crr_id ;
640
- } sctp_addip_param_t ;
632
+ struct sctp_addip_param {
633
+ struct sctp_paramhdr param_hdr ;
634
+ __be32 crr_id ;
635
+ };
641
636
642
- typedef struct sctp_addiphdr {
637
+ struct sctp_addiphdr {
643
638
__be32 serial ;
644
639
__u8 params [0 ];
645
- } sctp_addiphdr_t ;
640
+ };
646
641
647
- typedef struct sctp_addip_chunk {
642
+ struct sctp_addip_chunk {
648
643
struct sctp_chunkhdr chunk_hdr ;
649
- sctp_addiphdr_t addip_hdr ;
650
- } sctp_addip_chunk_t ;
644
+ struct sctp_addiphdr addip_hdr ;
645
+ };
651
646
652
647
/* AUTH
653
648
* Section 4.1 Authentication Chunk (AUTH)
@@ -698,16 +693,16 @@ typedef struct sctp_addip_chunk {
698
693
* HMAC: n bytes (unsigned integer) This hold the result of the HMAC
699
694
* calculation.
700
695
*/
701
- typedef struct sctp_authhdr {
696
+ struct sctp_authhdr {
702
697
__be16 shkey_id ;
703
698
__be16 hmac_id ;
704
699
__u8 hmac [0 ];
705
- } sctp_authhdr_t ;
700
+ };
706
701
707
- typedef struct sctp_auth_chunk {
702
+ struct sctp_auth_chunk {
708
703
struct sctp_chunkhdr chunk_hdr ;
709
- sctp_authhdr_t auth_hdr ;
710
- } sctp_auth_chunk_t ;
704
+ struct sctp_authhdr auth_hdr ;
705
+ };
711
706
712
707
struct sctp_infox {
713
708
struct sctp_info * sctpinfo ;
0 commit comments