#include <linux/sctp.h>
#include <linux/ipv6.h>
#include <net/sctp/user.h>
#include <net/tcp_states.h>
Go to the source code of this file.
|
enum | { SCTP_MAX_STREAM = 0xffff
} |
|
enum | { SCTP_DEFAULT_OUTSTREAMS = 10
} |
|
enum | { SCTP_DEFAULT_INSTREAMS = SCTP_MAX_STREAM
} |
|
enum | sctp_event_t { SCTP_EVENT_T_CHUNK = 1,
SCTP_EVENT_T_TIMEOUT,
SCTP_EVENT_T_OTHER,
SCTP_EVENT_T_PRIMITIVE
} |
|
enum | sctp_event_timeout_t {
SCTP_EVENT_TIMEOUT_NONE = 0,
SCTP_EVENT_TIMEOUT_T1_COOKIE,
SCTP_EVENT_TIMEOUT_T1_INIT,
SCTP_EVENT_TIMEOUT_T2_SHUTDOWN,
SCTP_EVENT_TIMEOUT_T3_RTX,
SCTP_EVENT_TIMEOUT_T4_RTO,
SCTP_EVENT_TIMEOUT_T5_SHUTDOWN_GUARD,
SCTP_EVENT_TIMEOUT_HEARTBEAT,
SCTP_EVENT_TIMEOUT_SACK,
SCTP_EVENT_TIMEOUT_AUTOCLOSE
} |
|
enum | sctp_event_other_t { SCTP_EVENT_NO_PENDING_TSN = 0,
SCTP_EVENT_ICMP_PROTO_UNREACH
} |
|
enum | sctp_event_primitive_t {
SCTP_PRIMITIVE_ASSOCIATE = 0,
SCTP_PRIMITIVE_SHUTDOWN,
SCTP_PRIMITIVE_ABORT,
SCTP_PRIMITIVE_SEND,
SCTP_PRIMITIVE_REQUESTHEARTBEAT,
SCTP_PRIMITIVE_ASCONF
} |
|
enum | sctp_ierror_t {
SCTP_IERROR_NO_ERROR = 0,
SCTP_IERROR_BASE = 1000,
SCTP_IERROR_NO_COOKIE,
SCTP_IERROR_BAD_SIG,
SCTP_IERROR_STALE_COOKIE,
SCTP_IERROR_NOMEM,
SCTP_IERROR_MALFORMED,
SCTP_IERROR_BAD_TAG,
SCTP_IERROR_BIG_GAP,
SCTP_IERROR_DUP_TSN,
SCTP_IERROR_HIGH_TSN,
SCTP_IERROR_IGNORE_TSN,
SCTP_IERROR_NO_DATA,
SCTP_IERROR_BAD_STREAM,
SCTP_IERROR_BAD_PORTS,
SCTP_IERROR_AUTH_BAD_HMAC,
SCTP_IERROR_AUTH_BAD_KEYID,
SCTP_IERROR_PROTO_VIOLATION,
SCTP_IERROR_ERROR,
SCTP_IERROR_ABORT
} |
|
enum | sctp_state_t {
SCTP_STATE_CLOSED = 0,
SCTP_STATE_COOKIE_WAIT = 1,
SCTP_STATE_COOKIE_ECHOED = 2,
SCTP_STATE_ESTABLISHED = 3,
SCTP_STATE_SHUTDOWN_PENDING = 4,
SCTP_STATE_SHUTDOWN_SENT = 5,
SCTP_STATE_SHUTDOWN_RECEIVED = 6,
SCTP_STATE_SHUTDOWN_ACK_SENT = 7
} |
|
enum | sctp_sock_state_t {
SCTP_SS_CLOSED = TCP_CLOSE,
SCTP_SS_LISTENING = TCP_LISTEN,
SCTP_SS_ESTABLISHING = TCP_SYN_SENT,
SCTP_SS_ESTABLISHED = TCP_ESTABLISHED,
SCTP_SS_CLOSING = TCP_CLOSING
} |
|
enum | { SCTP_MAX_CHUNK_LEN = ((1<<16) - sizeof(__u32))
} |
|
enum | { SCTP_ARBITRARY_COOKIE_ECHO_LEN = 200
} |
|
enum | { SCTP_MIN_PMTU = 576
} |
|
enum | { SCTP_MAX_DUP_TSNS = 16
} |
|
enum | { SCTP_MAX_GABS = 16
} |
|
enum | sctp_xmit_t { SCTP_XMIT_OK,
SCTP_XMIT_PMTU_FULL,
SCTP_XMIT_RWND_FULL,
SCTP_XMIT_NAGLE_DELAY
} |
|
enum | sctp_transport_cmd_t { SCTP_TRANSPORT_UP,
SCTP_TRANSPORT_DOWN,
SCTP_TRANSPORT_PF
} |
|
enum | sctp_scope_t {
SCTP_SCOPE_GLOBAL,
SCTP_SCOPE_PRIVATE,
SCTP_SCOPE_LINK,
SCTP_SCOPE_LOOPBACK,
SCTP_SCOPE_UNUSABLE
} |
|
enum | sctp_scope_policy_t { SCTP_SCOPE_POLICY_DISABLE,
SCTP_SCOPE_POLICY_ENABLE,
SCTP_SCOPE_POLICY_PRIVATE,
SCTP_SCOPE_POLICY_LINK
} |
|
enum | sctp_retransmit_reason_t { SCTP_RTXR_T3_RTX,
SCTP_RTXR_FAST_RTX,
SCTP_RTXR_PMTUD,
SCTP_RTXR_T1_RTX
} |
|
enum | sctp_lower_cwnd_t { SCTP_LOWER_CWND_T3_RTX,
SCTP_LOWER_CWND_FAST_RTX,
SCTP_LOWER_CWND_ECNE,
SCTP_LOWER_CWND_INACTIVE
} |
|
enum | { SCTP_AUTH_HMAC_ID_RESERVED_0,
SCTP_AUTH_HMAC_ID_SHA1,
SCTP_AUTH_HMAC_ID_RESERVED_2,
__SCTP_AUTH_HMAC_MAX
} |
|
#define IS_IPV4_UNUSABLE_ADDRESS |
( |
|
a | ) |
|
Value:
ipv4_is_multicast(
a) || \
Definition at line 361 of file constants.h.
#define SCTP_ADDR4_PEERSUPP |
#define SCTP_ADDR6_ALLOWED |
#define SCTP_ADDR6_PEERSUPP |
#define SCTP_AUTH_RANDOM_LENGTH 32 |
#define SCTP_CLOCK_GRANULARITY 1 /* 1 jiffy */ |
#define SCTP_COOKIE_HMAC_ALG NULL |
#define SCTP_COOKIE_MULTIPLE |
#define SCTP_DATA_SNDSIZE |
( |
|
c | ) |
|
Value:((
int)((
unsigned long)(
c->chunk_end)\
- (
unsigned long)(
c->chunk_hdr)\
Definition at line 156 of file constants.h.
#define SCTP_DEFAULT_COOKIE_LIFE (60 * 1000) /* 60 seconds */ |
#define SCTP_DEFAULT_MAX_BURST 4 |
#define SCTP_DEFAULT_MAXSEGMENT |
#define SCTP_DEFAULT_MAXWINDOW 65535 /* default rwnd size */ |
#define SCTP_DEFAULT_MINSEGMENT 512 /* MTU size ... if no mtu disc */ |
#define SCTP_DEFAULT_MINWINDOW 1500 /* default minimum rwnd size */ |
#define SCTP_DEFAULT_RWND_SHIFT |
#define SCTP_DEFAULT_TIMEOUT_HEARTBEAT (30*1000) |
#define SCTP_DEFAULT_TIMEOUT_SACK (200) |
#define SCTP_HOW_MANY_SECRETS 2 /* How many secrets I keep */ |
#define SCTP_NUM_ADDIP_CHUNK_TYPES 2 |
#define SCTP_NUM_AUTH_CHUNK_TYPES 1 |
#define SCTP_NUM_CHUNK_TYPES |
Value:
SCTP_NUM_ADDIP_CHUNK_TYPES +\
SCTP_NUM_PRSCTP_CHUNK_TYPES +\
SCTP_NUM_AUTH_CHUNK_TYPES)
Definition at line 73 of file constants.h.
#define SCTP_NUM_NOAUTH_CHUNKS 4 |
#define SCTP_NUM_PRSCTP_CHUNK_TYPES 1 |
#define SCTP_RTO_ALPHA 3 /* 1/8 when converted to right shifts. */ |
#define SCTP_RTO_BETA 2 /* 1/4 when converted to right shifts. */ |
#define SCTP_RTO_INITIAL (3 * 1000) |
#define SCTP_RTO_MAX (60 * 1000) |
#define SCTP_RTO_MIN (1 * 1000) |
#define SCTP_SECRET_SIZE 32 /* Number of octets in a 256 bits. */ |
#define SCTP_SHA1_SIG_SIZE 20 |
#define SCTP_SHA256_SIG_SIZE 32 |
#define SCTP_SUBTYPE_CONSTRUCTOR |
( |
|
_name, |
|
|
|
_type, |
|
|
|
_elt |
|
) |
| |
Value:static inline sctp_subtype_t \
SCTP_ST_## _name (_type _arg) \
Definition at line 142 of file constants.h.
#define SCTP_TSN_MAP_SIZE 4096 |
- Enumerator:
SCTP_ARBITRARY_COOKIE_ECHO_LEN |
|
Definition at line 245 of file constants.h.
- Enumerator:
SCTP_AUTH_HMAC_ID_RESERVED_0 |
|
SCTP_AUTH_HMAC_ID_SHA1 |
|
SCTP_AUTH_HMAC_ID_RESERVED_2 |
|
__SCTP_AUTH_HMAC_MAX |
|
Definition at line 406 of file constants.h.
- Enumerator:
SCTP_EVENT_NO_PENDING_TSN |
|
SCTP_EVENT_ICMP_PROTO_UNREACH |
|
Definition at line 108 of file constants.h.
- Enumerator:
SCTP_PRIMITIVE_ASSOCIATE |
|
SCTP_PRIMITIVE_SHUTDOWN |
|
SCTP_PRIMITIVE_ABORT |
|
SCTP_PRIMITIVE_SEND |
|
SCTP_PRIMITIVE_REQUESTHEARTBEAT |
|
SCTP_PRIMITIVE_ASCONF |
|
Definition at line 117 of file constants.h.
- Enumerator:
SCTP_EVENT_T_CHUNK |
|
SCTP_EVENT_T_TIMEOUT |
|
SCTP_EVENT_T_OTHER |
|
SCTP_EVENT_T_PRIMITIVE |
|
Definition at line 79 of file constants.h.
- Enumerator:
SCTP_EVENT_TIMEOUT_NONE |
|
SCTP_EVENT_TIMEOUT_T1_COOKIE |
|
SCTP_EVENT_TIMEOUT_T1_INIT |
|
SCTP_EVENT_TIMEOUT_T2_SHUTDOWN |
|
SCTP_EVENT_TIMEOUT_T3_RTX |
|
SCTP_EVENT_TIMEOUT_T4_RTO |
|
SCTP_EVENT_TIMEOUT_T5_SHUTDOWN_GUARD |
|
SCTP_EVENT_TIMEOUT_HEARTBEAT |
|
SCTP_EVENT_TIMEOUT_SACK |
|
SCTP_EVENT_TIMEOUT_AUTOCLOSE |
|
Definition at line 92 of file constants.h.
- Enumerator:
SCTP_IERROR_NO_ERROR |
|
SCTP_IERROR_BASE |
|
SCTP_IERROR_NO_COOKIE |
|
SCTP_IERROR_BAD_SIG |
|
SCTP_IERROR_STALE_COOKIE |
|
SCTP_IERROR_NOMEM |
|
SCTP_IERROR_MALFORMED |
|
SCTP_IERROR_BAD_TAG |
|
SCTP_IERROR_BIG_GAP |
|
SCTP_IERROR_DUP_TSN |
|
SCTP_IERROR_HIGH_TSN |
|
SCTP_IERROR_IGNORE_TSN |
|
SCTP_IERROR_NO_DATA |
|
SCTP_IERROR_BAD_STREAM |
|
SCTP_IERROR_BAD_PORTS |
|
SCTP_IERROR_AUTH_BAD_HMAC |
|
SCTP_IERROR_AUTH_BAD_KEYID |
|
SCTP_IERROR_PROTO_VIOLATION |
|
SCTP_IERROR_ERROR |
|
SCTP_IERROR_ABORT |
|
Definition at line 161 of file constants.h.
- Enumerator:
SCTP_LOWER_CWND_T3_RTX |
|
SCTP_LOWER_CWND_FAST_RTX |
|
SCTP_LOWER_CWND_ECNE |
|
SCTP_LOWER_CWND_INACTIVE |
|
Definition at line 382 of file constants.h.
- Enumerator:
SCTP_RTXR_T3_RTX |
|
SCTP_RTXR_FAST_RTX |
|
SCTP_RTXR_PMTUD |
|
SCTP_RTXR_T1_RTX |
|
Definition at line 374 of file constants.h.
- Enumerator:
SCTP_SCOPE_POLICY_DISABLE |
|
SCTP_SCOPE_POLICY_ENABLE |
|
SCTP_SCOPE_POLICY_PRIVATE |
|
SCTP_SCOPE_POLICY_LINK |
|
Definition at line 348 of file constants.h.
- Enumerator:
SCTP_SCOPE_GLOBAL |
|
SCTP_SCOPE_PRIVATE |
|
SCTP_SCOPE_LINK |
|
SCTP_SCOPE_LOOPBACK |
|
SCTP_SCOPE_UNUSABLE |
|
Definition at line 340 of file constants.h.
- Enumerator:
SCTP_SS_CLOSED |
|
SCTP_SS_LISTENING |
|
SCTP_SS_ESTABLISHING |
|
SCTP_SS_ESTABLISHED |
|
SCTP_SS_CLOSING |
|
Definition at line 220 of file constants.h.
- Enumerator:
SCTP_STATE_CLOSED |
|
SCTP_STATE_COOKIE_WAIT |
|
SCTP_STATE_COOKIE_ECHOED |
|
SCTP_STATE_ESTABLISHED |
|
SCTP_STATE_SHUTDOWN_PENDING |
|
SCTP_STATE_SHUTDOWN_SENT |
|
SCTP_STATE_SHUTDOWN_RECEIVED |
|
SCTP_STATE_SHUTDOWN_ACK_SENT |
|
Definition at line 188 of file constants.h.
- Enumerator:
SCTP_TRANSPORT_UP |
|
SCTP_TRANSPORT_DOWN |
|
SCTP_TRANSPORT_PF |
|
Definition at line 327 of file constants.h.
- Enumerator:
SCTP_XMIT_OK |
|
SCTP_XMIT_PMTU_FULL |
|
SCTP_XMIT_RWND_FULL |
|
SCTP_XMIT_NAGLE_DELAY |
|
Definition at line 319 of file constants.h.