sctp_uio.h (235066) | sctp_uio.h (235075) |
---|---|
1/*- 2 * Copyright (c) 2001-2007, by Cisco Systems, Inc. All rights reserved. 3 * Copyright (c) 2008-2011, by Randall Stewart. All rights reserved. 4 * Copyright (c) 2008-2011, by Michael Tuexen. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are met: 8 * --- 18 unchanged lines hidden (view full) --- 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 */ 32 33/* $KAME: sctp_uio.h,v 1.11 2005/03/06 16:04:18 itojun Exp $ */ 34#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2001-2007, by Cisco Systems, Inc. All rights reserved. 3 * Copyright (c) 2008-2011, by Randall Stewart. All rights reserved. 4 * Copyright (c) 2008-2011, by Michael Tuexen. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are met: 8 * --- 18 unchanged lines hidden (view full) --- 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 */ 32 33/* $KAME: sctp_uio.h,v 1.11 2005/03/06 16:04:18 itojun Exp $ */ 34#include <sys/cdefs.h> |
35__FBSDID("$FreeBSD: head/sys/netinet/sctp_uio.h 235066 2012-05-05 21:41:16Z tuexen $"); | 35__FBSDID("$FreeBSD: head/sys/netinet/sctp_uio.h 235075 2012-05-06 11:02:53Z tuexen $"); |
36 37#ifndef __sctp_uio_h__ 38#define __sctp_uio_h__ 39 40 41#if ! defined(_KERNEL) 42#include <stdint.h> 43#endif --- 294 unchanged lines hidden (view full) --- 338 uint16_t sre_type; 339 uint16_t sre_flags; 340 uint32_t sre_length; 341 uint16_t sre_error; 342 sctp_assoc_t sre_assoc_id; 343 uint8_t sre_data[4]; 344}; 345 | 36 37#ifndef __sctp_uio_h__ 38#define __sctp_uio_h__ 39 40 41#if ! defined(_KERNEL) 42#include <stdint.h> 43#endif --- 294 unchanged lines hidden (view full) --- 338 uint16_t sre_type; 339 uint16_t sre_flags; 340 uint32_t sre_length; 341 uint16_t sre_error; 342 sctp_assoc_t sre_assoc_id; 343 uint8_t sre_data[4]; 344}; 345 |
346/* data send failure event */ | 346/* data send failure event (deprecated) */ |
347struct sctp_send_failed { 348 uint16_t ssf_type; 349 uint16_t ssf_flags; 350 uint32_t ssf_length; 351 uint32_t ssf_error; 352 struct sctp_sndrcvinfo ssf_info; 353 sctp_assoc_t ssf_assoc_id; 354 uint8_t ssf_data[]; 355}; 356 | 347struct sctp_send_failed { 348 uint16_t ssf_type; 349 uint16_t ssf_flags; 350 uint32_t ssf_length; 351 uint32_t ssf_error; 352 struct sctp_sndrcvinfo ssf_info; 353 sctp_assoc_t ssf_assoc_id; 354 uint8_t ssf_data[]; 355}; 356 |
357/* data send failure event (not deprecated) */ 358struct sctp_send_failed_event { 359 uint16_t ssfe_type; 360 uint16_t ssfe_flags; 361 uint32_t ssfe_length; 362 uint32_t ssfe_error; 363 struct sctp_sndinfo ssfe_info; 364 sctp_assoc_t ssfe_assoc_id; 365 uint8_t ssfe_data[]; 366}; 367 |
|
357/* flag that indicates state of data */ 358#define SCTP_DATA_UNSENT 0x0001 /* inqueue never on wire */ 359#define SCTP_DATA_SENT 0x0002 /* on wire at failure */ 360 361/* shutdown event */ 362struct sctp_shutdown_event { 363 uint16_t sse_type; 364 uint16_t sse_flags; --- 143 unchanged lines hidden (view full) --- 508 struct sctp_sender_dry_event sn_sender_dry_event; 509 struct sctp_stream_reset_event sn_strreset_event; 510 struct sctp_assoc_reset_event sn_assocreset_event; 511 struct sctp_stream_change_event sn_strchange_event; 512 513}; 514 515/* notification types */ | 368/* flag that indicates state of data */ 369#define SCTP_DATA_UNSENT 0x0001 /* inqueue never on wire */ 370#define SCTP_DATA_SENT 0x0002 /* on wire at failure */ 371 372/* shutdown event */ 373struct sctp_shutdown_event { 374 uint16_t sse_type; 375 uint16_t sse_flags; --- 143 unchanged lines hidden (view full) --- 519 struct sctp_sender_dry_event sn_sender_dry_event; 520 struct sctp_stream_reset_event sn_strreset_event; 521 struct sctp_assoc_reset_event sn_assocreset_event; 522 struct sctp_stream_change_event sn_strchange_event; 523 524}; 525 526/* notification types */ |
516#define SCTP_ASSOC_CHANGE 0x0001 517#define SCTP_PEER_ADDR_CHANGE 0x0002 518#define SCTP_REMOTE_ERROR 0x0003 519#define SCTP_SEND_FAILED 0x0004 520#define SCTP_SHUTDOWN_EVENT 0x0005 521#define SCTP_ADAPTATION_INDICATION 0x0006 | 527#define SCTP_ASSOC_CHANGE 0x0001 528#define SCTP_PEER_ADDR_CHANGE 0x0002 529#define SCTP_REMOTE_ERROR 0x0003 530#define SCTP_SEND_FAILED 0x0004 531#define SCTP_SHUTDOWN_EVENT 0x0005 532#define SCTP_ADAPTATION_INDICATION 0x0006 |
522/* same as above */ | 533/* same as above */ |
523#define SCTP_ADAPTION_INDICATION 0x0006 524#define SCTP_PARTIAL_DELIVERY_EVENT 0x0007 525#define SCTP_AUTHENTICATION_EVENT 0x0008 526#define SCTP_STREAM_RESET_EVENT 0x0009 527#define SCTP_SENDER_DRY_EVENT 0x000a 528#define SCTP_NOTIFICATIONS_STOPPED_EVENT 0x000b /* we don't send this */ 529#define SCTP_ASSOC_RESET_EVENT 0x000c 530#define SCTP_STREAM_CHANGE_EVENT 0x000d 531 | 534#define SCTP_ADAPTION_INDICATION 0x0006 535#define SCTP_PARTIAL_DELIVERY_EVENT 0x0007 536#define SCTP_AUTHENTICATION_EVENT 0x0008 537#define SCTP_STREAM_RESET_EVENT 0x0009 538#define SCTP_SENDER_DRY_EVENT 0x000a 539#define SCTP_NOTIFICATIONS_STOPPED_EVENT 0x000b /* we don't send this */ 540#define SCTP_ASSOC_RESET_EVENT 0x000c 541#define SCTP_STREAM_CHANGE_EVENT 0x000d 542#define SCTP_SEND_FAILED_EVENT 0x000e |
532/* 533 * socket option structs 534 */ 535 536struct sctp_paddrparams { 537 struct sockaddr_storage spp_address; 538 sctp_assoc_t spp_assoc_id; 539 uint32_t spp_hbinterval; --- 760 unchanged lines hidden --- | 543/* 544 * socket option structs 545 */ 546 547struct sctp_paddrparams { 548 struct sockaddr_storage spp_address; 549 sctp_assoc_t spp_assoc_id; 550 uint32_t spp_hbinterval; --- 760 unchanged lines hidden --- |