sctp.h (1913c7f3fc2514e09262baf2267a82dfdb215c39) | sctp.h (b6e6b5f1da7e8d092f86a4351802c27c0170c5a5) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ 2/* SCTP kernel implementation 3 * (C) Copyright IBM Corp. 2001, 2004 4 * Copyright (c) 1999-2000 Cisco, Inc. 5 * Copyright (c) 1999-2001 Motorola, Inc. 6 * Copyright (c) 2002 Intel Corp. 7 * 8 * This file is part of the SCTP kernel implementation --- 435 unchanged lines hidden (view full) --- 444 __u16 ssf_flags; 445 __u32 ssf_length; 446 __u32 ssf_error; 447 struct sctp_sndrcvinfo ssf_info; 448 sctp_assoc_t ssf_assoc_id; 449 __u8 ssf_data[0]; 450}; 451 | 1/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ 2/* SCTP kernel implementation 3 * (C) Copyright IBM Corp. 2001, 2004 4 * Copyright (c) 1999-2000 Cisco, Inc. 5 * Copyright (c) 1999-2001 Motorola, Inc. 6 * Copyright (c) 2002 Intel Corp. 7 * 8 * This file is part of the SCTP kernel implementation --- 435 unchanged lines hidden (view full) --- 444 __u16 ssf_flags; 445 __u32 ssf_length; 446 __u32 ssf_error; 447 struct sctp_sndrcvinfo ssf_info; 448 sctp_assoc_t ssf_assoc_id; 449 __u8 ssf_data[0]; 450}; 451 |
452struct sctp_send_failed_event { 453 __u16 ssf_type; 454 __u16 ssf_flags; 455 __u32 ssf_length; 456 __u32 ssf_error; 457 struct sctp_sndinfo ssfe_info; 458 sctp_assoc_t ssf_assoc_id; 459 __u8 ssf_data[0]; 460}; 461 |
|
452/* 453 * ssf_flags: 16 bits (unsigned integer) 454 * 455 * The flag value will take one of the following values 456 * 457 * SCTP_DATA_UNSENT - Indicates that the data was never put on 458 * the wire. 459 * --- 140 unchanged lines hidden (view full) --- 600 __u8 sctp_shutdown_event; 601 __u8 sctp_partial_delivery_event; 602 __u8 sctp_adaptation_layer_event; 603 __u8 sctp_authentication_event; 604 __u8 sctp_sender_dry_event; 605 __u8 sctp_stream_reset_event; 606 __u8 sctp_assoc_reset_event; 607 __u8 sctp_stream_change_event; | 462/* 463 * ssf_flags: 16 bits (unsigned integer) 464 * 465 * The flag value will take one of the following values 466 * 467 * SCTP_DATA_UNSENT - Indicates that the data was never put on 468 * the wire. 469 * --- 140 unchanged lines hidden (view full) --- 610 __u8 sctp_shutdown_event; 611 __u8 sctp_partial_delivery_event; 612 __u8 sctp_adaptation_layer_event; 613 __u8 sctp_authentication_event; 614 __u8 sctp_sender_dry_event; 615 __u8 sctp_stream_reset_event; 616 __u8 sctp_assoc_reset_event; 617 __u8 sctp_stream_change_event; |
618 __u8 sctp_send_failure_event_event; |
|
608}; 609 610/* 611 * 5.3.1 SCTP Notification Structure 612 * 613 * The notification structure is defined as the union of all 614 * notification types. 615 * --- 11 unchanged lines hidden (view full) --- 627 struct sctp_shutdown_event sn_shutdown_event; 628 struct sctp_adaptation_event sn_adaptation_event; 629 struct sctp_pdapi_event sn_pdapi_event; 630 struct sctp_authkey_event sn_authkey_event; 631 struct sctp_sender_dry_event sn_sender_dry_event; 632 struct sctp_stream_reset_event sn_strreset_event; 633 struct sctp_assoc_reset_event sn_assocreset_event; 634 struct sctp_stream_change_event sn_strchange_event; | 619}; 620 621/* 622 * 5.3.1 SCTP Notification Structure 623 * 624 * The notification structure is defined as the union of all 625 * notification types. 626 * --- 11 unchanged lines hidden (view full) --- 638 struct sctp_shutdown_event sn_shutdown_event; 639 struct sctp_adaptation_event sn_adaptation_event; 640 struct sctp_pdapi_event sn_pdapi_event; 641 struct sctp_authkey_event sn_authkey_event; 642 struct sctp_sender_dry_event sn_sender_dry_event; 643 struct sctp_stream_reset_event sn_strreset_event; 644 struct sctp_assoc_reset_event sn_assocreset_event; 645 struct sctp_stream_change_event sn_strchange_event; |
646 struct sctp_send_failed_event sn_send_failed_event; |
|
635}; 636 637/* Section 5.3.1 638 * All standard values for sn_type flags are greater than 2^15. 639 * Values from 2^15 and down are reserved. 640 */ 641 642enum sctp_sn_type { --- 19 unchanged lines hidden (view full) --- 662 SCTP_SENDER_DRY_EVENT, 663#define SCTP_SENDER_DRY_EVENT SCTP_SENDER_DRY_EVENT 664 SCTP_STREAM_RESET_EVENT, 665#define SCTP_STREAM_RESET_EVENT SCTP_STREAM_RESET_EVENT 666 SCTP_ASSOC_RESET_EVENT, 667#define SCTP_ASSOC_RESET_EVENT SCTP_ASSOC_RESET_EVENT 668 SCTP_STREAM_CHANGE_EVENT, 669#define SCTP_STREAM_CHANGE_EVENT SCTP_STREAM_CHANGE_EVENT | 647}; 648 649/* Section 5.3.1 650 * All standard values for sn_type flags are greater than 2^15. 651 * Values from 2^15 and down are reserved. 652 */ 653 654enum sctp_sn_type { --- 19 unchanged lines hidden (view full) --- 674 SCTP_SENDER_DRY_EVENT, 675#define SCTP_SENDER_DRY_EVENT SCTP_SENDER_DRY_EVENT 676 SCTP_STREAM_RESET_EVENT, 677#define SCTP_STREAM_RESET_EVENT SCTP_STREAM_RESET_EVENT 678 SCTP_ASSOC_RESET_EVENT, 679#define SCTP_ASSOC_RESET_EVENT SCTP_ASSOC_RESET_EVENT 680 SCTP_STREAM_CHANGE_EVENT, 681#define SCTP_STREAM_CHANGE_EVENT SCTP_STREAM_CHANGE_EVENT |
670 SCTP_SN_TYPE_MAX = SCTP_STREAM_CHANGE_EVENT, | 682 SCTP_SEND_FAILED_EVENT, 683#define SCTP_SEND_FAILED_EVENT SCTP_SEND_FAILED_EVENT 684 SCTP_SN_TYPE_MAX = SCTP_SEND_FAILED_EVENT, |
671#define SCTP_SN_TYPE_MAX SCTP_SN_TYPE_MAX 672}; 673 674/* Notification error codes used to fill up the error fields in some 675 * notifications. 676 * SCTP_PEER_ADDRESS_CHAGE : spc_error 677 * SCTP_ASSOC_CHANGE : sac_error 678 * These names should be potentially included in the draft 04 of the SCTP --- 502 unchanged lines hidden --- | 685#define SCTP_SN_TYPE_MAX SCTP_SN_TYPE_MAX 686}; 687 688/* Notification error codes used to fill up the error fields in some 689 * notifications. 690 * SCTP_PEER_ADDRESS_CHAGE : spc_error 691 * SCTP_ASSOC_CHANGE : sac_error 692 * These names should be potentially included in the draft 04 of the SCTP --- 502 unchanged lines hidden --- |