Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Variables
sctp.h File Reference
#include <linux/in.h>
#include <linux/in6.h>

Go to the source code of this file.

Data Structures

struct  sctphdr
 
struct  sctp_chunkhdr
 
struct  sctp_paramhdr
 
struct  sctp_datahdr
 
struct  sctp_data_chunk
 
struct  sctp_inithdr
 
struct  sctp_init_chunk
 
struct  sctp_ipv4addr_param
 
struct  sctp_ipv6addr_param
 
struct  sctp_cookie_preserve_param
 
struct  sctp_hostname_param
 
struct  sctp_supported_addrs_param
 
struct  sctp_ecn_capable_param
 
struct  sctp_adaptation_ind_param
 
struct  sctp_supported_ext_param
 
struct  sctp_random_param
 
struct  sctp_chunks_param
 
struct  sctp_hmac_algo_param
 
struct  sctp_cookie_param
 
struct  sctp_unrecognized_param
 
struct  sctp_gap_ack_block
 
union  sctp_sack_variable_t
 
struct  sctp_sackhdr
 
struct  sctp_sack_chunk
 
struct  sctp_heartbeathdr
 
struct  sctp_heartbeat_chunk
 
struct  sctp_abort_chunk
 
struct  sctp_shutdownhdr
 
struct  sctp_shutdown_chunk_t
 
struct  sctp_errhdr
 
struct  sctp_operr_chunk
 
struct  sctp_ecnehdr
 
struct  sctp_ecne_chunk
 
struct  sctp_cwrhdr
 
struct  sctp_cwr_chunk
 
struct  sctp_fwdtsn_skip
 
struct  sctp_fwdtsn_hdr
 
struct  sctp_fwdtsn_chunk
 
struct  sctp_addip_param
 
struct  sctp_addiphdr
 
struct  sctp_addip_chunk
 
struct  sctp_authhdr
 
struct  sctp_auth_chunk
 

Macros

#define sctp_test_T_bit(c)   ((c)->chunk_hdr->flags & SCTP_CHUNK_FLAG_T)
 

Typedefs

typedef struct sctphdr sctp_sctphdr_t
 
typedef struct sctp_chunkhdr sctp_chunkhdr_t
 
typedef struct sctp_paramhdr sctp_paramhdr_t
 
typedef struct sctp_datahdr sctp_datahdr_t
 
typedef struct sctp_data_chunk sctp_data_chunk_t
 
typedef struct sctp_inithdr sctp_inithdr_t
 
typedef struct sctp_init_chunk sctp_init_chunk_t
 
typedef struct sctp_ipv4addr_param sctp_ipv4addr_param_t
 
typedef struct sctp_ipv6addr_param sctp_ipv6addr_param_t
 
typedef struct
sctp_cookie_preserve_param 
sctp_cookie_preserve_param_t
 
typedef struct sctp_hostname_param sctp_hostname_param_t
 
typedef struct
sctp_supported_addrs_param 
sctp_supported_addrs_param_t
 
typedef struct
sctp_ecn_capable_param 
sctp_ecn_capable_param_t
 
typedef struct
sctp_adaptation_ind_param 
sctp_adaptation_ind_param_t
 
typedef struct
sctp_supported_ext_param 
sctp_supported_ext_param_t
 
typedef struct sctp_random_param sctp_random_param_t
 
typedef struct sctp_chunks_param sctp_chunks_param_t
 
typedef struct sctp_hmac_algo_param sctp_hmac_algo_param_t
 
typedef sctp_init_chunk_t sctp_initack_chunk_t
 
typedef struct sctp_cookie_param sctp_cookie_param_t
 
typedef struct
sctp_unrecognized_param 
sctp_unrecognized_param_t
 
typedef struct sctp_gap_ack_block sctp_gap_ack_block_t
 
typedef __be32 sctp_dup_tsn_t
 
typedef struct sctp_sackhdr sctp_sackhdr_t
 
typedef struct sctp_sack_chunk sctp_sack_chunk_t
 
typedef struct sctp_heartbeathdr sctp_heartbeathdr_t
 
typedef struct sctp_heartbeat_chunk sctp_heartbeat_chunk_t
 
typedef struct sctp_abort_chunk sctp_abort_chunk_t
 
typedef struct sctp_shutdownhdr sctp_shutdownhdr_t
 
typedef struct sctp_errhdr sctp_errhdr_t
 
typedef struct sctp_operr_chunk sctp_operr_chunk_t
 
typedef struct sctp_ecnehdr sctp_ecnehdr_t
 
typedef struct sctp_ecne_chunk sctp_ecne_chunk_t
 
typedef struct sctp_cwrhdr sctp_cwrhdr_t
 
typedef struct sctp_cwr_chunk sctp_cwr_chunk_t
 
typedef struct sctp_addip_param sctp_addip_param_t
 
typedef struct sctp_addiphdr sctp_addiphdr_t
 
typedef struct sctp_addip_chunk sctp_addip_chunk_t
 
typedef struct sctp_authhdr sctp_authhdr_t
 
typedef struct sctp_auth_chunk sctp_auth_chunk_t
 

Enumerations

enum  sctp_cid_t {
  SCTP_CID_DATA = 0, SCTP_CID_INIT = 1, SCTP_CID_INIT_ACK = 2, SCTP_CID_SACK = 3,
  SCTP_CID_HEARTBEAT = 4, SCTP_CID_HEARTBEAT_ACK = 5, SCTP_CID_ABORT = 6, SCTP_CID_SHUTDOWN = 7,
  SCTP_CID_SHUTDOWN_ACK = 8, SCTP_CID_ERROR = 9, SCTP_CID_COOKIE_ECHO = 10, SCTP_CID_COOKIE_ACK = 11,
  SCTP_CID_ECN_ECNE = 12, SCTP_CID_ECN_CWR = 13, SCTP_CID_SHUTDOWN_COMPLETE = 14, SCTP_CID_AUTH = 0x0F,
  SCTP_CID_FWD_TSN = 0xC0, SCTP_CID_ASCONF = 0xC1, SCTP_CID_ASCONF_ACK = 0x80
}
 
enum  sctp_cid_action_t { SCTP_CID_ACTION_DISCARD = 0x00, SCTP_CID_ACTION_DISCARD_ERR = 0x40, SCTP_CID_ACTION_SKIP = 0x80, SCTP_CID_ACTION_SKIP_ERR = 0xc0 }
 
enum  { SCTP_CID_ACTION_MASK = 0xc0 }
 
enum  { SCTP_CHUNK_FLAG_T = 0x01 }
 
enum  sctp_param_t {
  SCTP_PARAM_HEARTBEAT_INFO = cpu_to_be16(1), SCTP_PARAM_IPV4_ADDRESS = cpu_to_be16(5), SCTP_PARAM_IPV6_ADDRESS = cpu_to_be16(6), SCTP_PARAM_STATE_COOKIE = cpu_to_be16(7),
  SCTP_PARAM_UNRECOGNIZED_PARAMETERS = cpu_to_be16(8), SCTP_PARAM_COOKIE_PRESERVATIVE = cpu_to_be16(9), SCTP_PARAM_HOST_NAME_ADDRESS = cpu_to_be16(11), SCTP_PARAM_SUPPORTED_ADDRESS_TYPES = cpu_to_be16(12),
  SCTP_PARAM_ECN_CAPABLE = cpu_to_be16(0x8000), SCTP_PARAM_RANDOM = cpu_to_be16(0x8002), SCTP_PARAM_CHUNKS = cpu_to_be16(0x8003), SCTP_PARAM_HMAC_ALGO = cpu_to_be16(0x8004),
  SCTP_PARAM_SUPPORTED_EXT = cpu_to_be16(0x8008), SCTP_PARAM_FWD_TSN_SUPPORT = cpu_to_be16(0xc000), SCTP_PARAM_ADD_IP = cpu_to_be16(0xc001), SCTP_PARAM_DEL_IP = cpu_to_be16(0xc002),
  SCTP_PARAM_ERR_CAUSE = cpu_to_be16(0xc003), SCTP_PARAM_SET_PRIMARY = cpu_to_be16(0xc004), SCTP_PARAM_SUCCESS_REPORT = cpu_to_be16(0xc005), SCTP_PARAM_ADAPTATION_LAYER_IND = cpu_to_be16(0xc006)
}
 
enum  sctp_param_action_t { SCTP_PARAM_ACTION_DISCARD = cpu_to_be16(0x0000), SCTP_PARAM_ACTION_DISCARD_ERR = cpu_to_be16(0x4000), SCTP_PARAM_ACTION_SKIP = cpu_to_be16(0x8000), SCTP_PARAM_ACTION_SKIP_ERR = cpu_to_be16(0xc000) }
 
enum  { SCTP_PARAM_ACTION_MASK = cpu_to_be16(0xc000) }
 
enum  {
  SCTP_DATA_MIDDLE_FRAG = 0x00, SCTP_DATA_LAST_FRAG = 0x01, SCTP_DATA_FIRST_FRAG = 0x02, SCTP_DATA_NOT_FRAG = 0x03,
  SCTP_DATA_UNORDERED = 0x04, SCTP_DATA_SACK_IMM = 0x08
}
 
enum  { SCTP_DATA_FRAG_MASK = 0x03 }
 
enum  sctp_error_t {
  SCTP_ERROR_NO_ERROR = cpu_to_be16(0x00), SCTP_ERROR_INV_STRM = cpu_to_be16(0x01), SCTP_ERROR_MISS_PARAM = cpu_to_be16(0x02), SCTP_ERROR_STALE_COOKIE = cpu_to_be16(0x03),
  SCTP_ERROR_NO_RESOURCE = cpu_to_be16(0x04), SCTP_ERROR_DNS_FAILED = cpu_to_be16(0x05), SCTP_ERROR_UNKNOWN_CHUNK = cpu_to_be16(0x06), SCTP_ERROR_INV_PARAM = cpu_to_be16(0x07),
  SCTP_ERROR_UNKNOWN_PARAM = cpu_to_be16(0x08), SCTP_ERROR_NO_DATA = cpu_to_be16(0x09), SCTP_ERROR_COOKIE_IN_SHUTDOWN = cpu_to_be16(0x0a), SCTP_ERROR_RESTART = cpu_to_be16(0x0b),
  SCTP_ERROR_USER_ABORT = cpu_to_be16(0x0c), SCTP_ERROR_PROTO_VIOLATION = cpu_to_be16(0x0d), SCTP_ERROR_DEL_LAST_IP = cpu_to_be16(0x00A0), SCTP_ERROR_RSRC_LOW = cpu_to_be16(0x00A1),
  SCTP_ERROR_DEL_SRC_IP = cpu_to_be16(0x00A2), SCTP_ERROR_ASCONF_ACK = cpu_to_be16(0x00A3), SCTP_ERROR_REQ_REFUSED = cpu_to_be16(0x00A4), SCTP_ERROR_UNSUP_HMAC = cpu_to_be16(0x0105)
}
 

Variables

struct sctp_shutdown_chunk_t __packed
 

Macro Definition Documentation

#define sctp_test_T_bit (   c)    ((c)->chunk_hdr->flags & SCTP_CHUNK_FLAG_T)

Definition at line 161 of file sctp.h.

Typedef Documentation

Definition at line 368 of file sctp.h.

Definition at line 339 of file sctp.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
SCTP_CID_ACTION_MASK 

Definition at line 129 of file sctp.h.

anonymous enum
Enumerator:
SCTP_CHUNK_FLAG_T 

Definition at line 137 of file sctp.h.

anonymous enum
Enumerator:
SCTP_PARAM_ACTION_MASK 

Definition at line 221 of file sctp.h.

anonymous enum
Enumerator:
SCTP_DATA_MIDDLE_FRAG 
SCTP_DATA_LAST_FRAG 
SCTP_DATA_FIRST_FRAG 
SCTP_DATA_NOT_FRAG 
SCTP_DATA_UNORDERED 
SCTP_DATA_SACK_IMM 

Definition at line 239 of file sctp.h.

anonymous enum
Enumerator:
SCTP_DATA_FRAG_MASK 

Definition at line 247 of file sctp.h.

Enumerator:
SCTP_CID_ACTION_DISCARD 
SCTP_CID_ACTION_DISCARD_ERR 
SCTP_CID_ACTION_SKIP 
SCTP_CID_ACTION_SKIP_ERR 

Definition at line 122 of file sctp.h.

enum sctp_cid_t
Enumerator:
SCTP_CID_DATA 
SCTP_CID_INIT 
SCTP_CID_INIT_ACK 
SCTP_CID_SACK 
SCTP_CID_HEARTBEAT 
SCTP_CID_HEARTBEAT_ACK 
SCTP_CID_ABORT 
SCTP_CID_SHUTDOWN 
SCTP_CID_SHUTDOWN_ACK 
SCTP_CID_ERROR 
SCTP_CID_COOKIE_ECHO 
SCTP_CID_COOKIE_ACK 
SCTP_CID_ECN_ECNE 
SCTP_CID_ECN_CWR 
SCTP_CID_SHUTDOWN_COMPLETE 
SCTP_CID_AUTH 
SCTP_CID_FWD_TSN 
SCTP_CID_ASCONF 
SCTP_CID_ASCONF_ACK 

Definition at line 88 of file sctp.h.

Enumerator:
SCTP_ERROR_NO_ERROR 
SCTP_ERROR_INV_STRM 
SCTP_ERROR_MISS_PARAM 
SCTP_ERROR_STALE_COOKIE 
SCTP_ERROR_NO_RESOURCE 
SCTP_ERROR_DNS_FAILED 
SCTP_ERROR_UNKNOWN_CHUNK 
SCTP_ERROR_INV_PARAM 
SCTP_ERROR_UNKNOWN_PARAM 
SCTP_ERROR_NO_DATA 
SCTP_ERROR_COOKIE_IN_SHUTDOWN 
SCTP_ERROR_RESTART 
SCTP_ERROR_USER_ABORT 
SCTP_ERROR_PROTO_VIOLATION 
SCTP_ERROR_DEL_LAST_IP 
SCTP_ERROR_RSRC_LOW 
SCTP_ERROR_DEL_SRC_IP 
SCTP_ERROR_ASCONF_ACK 
SCTP_ERROR_REQ_REFUSED 
SCTP_ERROR_UNSUP_HMAC 

Definition at line 459 of file sctp.h.

Enumerator:
SCTP_PARAM_ACTION_DISCARD 
SCTP_PARAM_ACTION_DISCARD_ERR 
SCTP_PARAM_ACTION_SKIP 
SCTP_PARAM_ACTION_SKIP_ERR 

Definition at line 214 of file sctp.h.

Enumerator:
SCTP_PARAM_HEARTBEAT_INFO 
SCTP_PARAM_IPV4_ADDRESS 
SCTP_PARAM_IPV6_ADDRESS 
SCTP_PARAM_STATE_COOKIE 
SCTP_PARAM_UNRECOGNIZED_PARAMETERS 
SCTP_PARAM_COOKIE_PRESERVATIVE 
SCTP_PARAM_HOST_NAME_ADDRESS 
SCTP_PARAM_SUPPORTED_ADDRESS_TYPES 
SCTP_PARAM_ECN_CAPABLE 
SCTP_PARAM_RANDOM 
SCTP_PARAM_CHUNKS 
SCTP_PARAM_HMAC_ALGO 
SCTP_PARAM_SUPPORTED_EXT 
SCTP_PARAM_FWD_TSN_SUPPORT 
SCTP_PARAM_ADD_IP 
SCTP_PARAM_DEL_IP 
SCTP_PARAM_ERR_CAUSE 
SCTP_PARAM_SET_PRIMARY 
SCTP_PARAM_SUCCESS_REPORT 
SCTP_PARAM_ADAPTATION_LAYER_IND 

Definition at line 172 of file sctp.h.

Variable Documentation