sctp.h (228653) | sctp.h (233660) |
---|---|
1/*- 2 * Copyright (c) 2001-2008, 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/* $KAME: sctp.h,v 1.18 2005/03/06 16:04:16 itojun Exp $ */ 33 34#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2001-2008, 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/* $KAME: sctp.h,v 1.18 2005/03/06 16:04:16 itojun Exp $ */ 33 34#include <sys/cdefs.h> |
35__FBSDID("$FreeBSD: head/sys/netinet/sctp.h 228653 2011-12-17 19:21:40Z tuexen $"); | 35__FBSDID("$FreeBSD: head/sys/netinet/sctp.h 233660 2012-03-29 13:36:53Z rrs $"); |
36 37#ifndef _NETINET_SCTP_H_ 38#define _NETINET_SCTP_H_ 39 40#include <sys/types.h> 41 42 43#define SCTP_PACKED __attribute__((packed)) --- 106 unchanged lines hidden (view full) --- 150 * is fine. It probably does NOT make sense to set this on SS_NBIO on a TCP 151 * model OR peeled off UDP model, but we do allow you to do so. You just use 152 * the normal syscall to toggle SS_NBIO the way you want. 153 * 154 * Blocking I/O is controlled by the SS_NBIO flag on the socket state so_state 155 * field. 156 */ 157 | 36 37#ifndef _NETINET_SCTP_H_ 38#define _NETINET_SCTP_H_ 39 40#include <sys/types.h> 41 42 43#define SCTP_PACKED __attribute__((packed)) --- 106 unchanged lines hidden (view full) --- 150 * is fine. It probably does NOT make sense to set this on SS_NBIO on a TCP 151 * model OR peeled off UDP model, but we do allow you to do so. You just use 152 * the normal syscall to toggle SS_NBIO the way you want. 153 * 154 * Blocking I/O is controlled by the SS_NBIO flag on the socket state so_state 155 * field. 156 */ 157 |
158/* these should probably go into sockets API */ 159#define SCTP_RESET_STREAMS 0x00001004 /* wo */ | 158#define SCTP_ENABLE_STREAM_RESET 0x00000900 /* struct 159 * sctp_assoc_value */ 160#define SCTP_RESET_STREAMS 0x00000901 /* struct 161 * sctp_reset_streams */ 162#define SCTP_RESET_ASSOC 0x00000902 /* sctp_assoc_t */ 163#define SCTP_ADD_STREAMS 0x00000903 /* struct 164 * sctp_add_streams */ |
160 | 165 |
166/* For enable stream reset */ 167#define SCTP_ENABLE_RESET_STREAM_REQ 0x00000001 168#define SCTP_ENABLE_RESET_ASSOC_REQ 0x00000002 169#define SCTP_ENABLE_CHANGE_ASSOC_REQ 0x00000004 170#define SCTP_ENABLE_VALUE_MASK 0x00000007 171/* For reset streams */ 172#define SCTP_STREAM_RESET_INCOMING 0x00000001 173#define SCTP_STREAM_RESET_OUTGOING 0x00000002 |
|
161 | 174 |
175 |
|
162/* here on down are more implementation specific */ 163#define SCTP_SET_DEBUG_LEVEL 0x00001005 164#define SCTP_CLR_STAT_LOG 0x00001007 165/* CMT ON/OFF socket option */ 166#define SCTP_CMT_ON_OFF 0x00001200 167#define SCTP_CMT_USE_DAC 0x00001201 168/* JRS - Pluggable Congestion Control Socket option */ 169#define SCTP_PLUGGABLE_CC 0x00001202 --- 429 unchanged lines hidden --- | 176/* here on down are more implementation specific */ 177#define SCTP_SET_DEBUG_LEVEL 0x00001005 178#define SCTP_CLR_STAT_LOG 0x00001007 179/* CMT ON/OFF socket option */ 180#define SCTP_CMT_ON_OFF 0x00001200 181#define SCTP_CMT_USE_DAC 0x00001201 182/* JRS - Pluggable Congestion Control Socket option */ 183#define SCTP_PLUGGABLE_CC 0x00001202 --- 429 unchanged lines hidden --- |