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

Go to the source code of this file.

Data Structures

struct  sctp_initmsg
 
struct  sctp_sndrcvinfo
 
struct  sctp_assoc_change
 
struct  sctp_paddr_change
 
struct  sctp_remote_error
 
struct  sctp_send_failed
 
struct  sctp_shutdown_event
 
struct  sctp_adaptation_event
 
struct  sctp_pdapi_event
 
struct  sctp_authkey_event
 
struct  sctp_sender_dry_event
 
struct  sctp_event_subscribe
 
union  sctp_notification
 
struct  sctp_rtoinfo
 
struct  sctp_assocparams
 
struct  sctp_setpeerprim
 
struct  sctp_prim
 
struct  sctp_setadaptation
 
struct  sctp_paddrparams
 
struct  sctp_authchunk
 
struct  sctp_hmacalgo
 
struct  sctp_authkey
 
struct  sctp_authkeyid
 
struct  sctp_sack_info
 
struct  sctp_assoc_value
 
struct  sctp_paddrinfo
 
struct  sctp_status
 
struct  sctp_authchunks
 
struct  sctp_assoc_ids
 
struct  sctp_getaddrs_old
 
struct  sctp_getaddrs
 
struct  sctp_peeloff_arg_t
 
struct  sctp_paddrthlds
 

Macros

#define SCTP_RTOINFO   0
 
#define SCTP_ASSOCINFO   1
 
#define SCTP_INITMSG   2
 
#define SCTP_NODELAY   3 /* Get/set nodelay option. */
 
#define SCTP_AUTOCLOSE   4
 
#define SCTP_SET_PEER_PRIMARY_ADDR   5
 
#define SCTP_PRIMARY_ADDR   6
 
#define SCTP_ADAPTATION_LAYER   7
 
#define SCTP_DISABLE_FRAGMENTS   8
 
#define SCTP_PEER_ADDR_PARAMS   9
 
#define SCTP_DEFAULT_SEND_PARAM   10
 
#define SCTP_EVENTS   11
 
#define SCTP_I_WANT_MAPPED_V4_ADDR   12 /* Turn on/off mapped v4 addresses */
 
#define SCTP_MAXSEG   13 /* Get/set maximum fragment. */
 
#define SCTP_STATUS   14
 
#define SCTP_GET_PEER_ADDR_INFO   15
 
#define SCTP_DELAYED_ACK_TIME   16
 
#define SCTP_DELAYED_ACK   SCTP_DELAYED_ACK_TIME
 
#define SCTP_DELAYED_SACK   SCTP_DELAYED_ACK_TIME
 
#define SCTP_CONTEXT   17
 
#define SCTP_FRAGMENT_INTERLEAVE   18
 
#define SCTP_PARTIAL_DELIVERY_POINT   19 /* Set/Get partial delivery point */
 
#define SCTP_MAX_BURST   20 /* Set/Get max burst */
 
#define SCTP_AUTH_CHUNK   21 /* Set only: add a chunk type to authenticate */
 
#define SCTP_HMAC_IDENT   22
 
#define SCTP_AUTH_KEY   23
 
#define SCTP_AUTH_ACTIVE_KEY   24
 
#define SCTP_AUTH_DELETE_KEY   25
 
#define SCTP_PEER_AUTH_CHUNKS   26 /* Read only */
 
#define SCTP_LOCAL_AUTH_CHUNKS   27 /* Read only */
 
#define SCTP_GET_ASSOC_NUMBER   28 /* Read only */
 
#define SCTP_GET_ASSOC_ID_LIST   29 /* Read only */
 
#define SCTP_AUTO_ASCONF   30
 
#define SCTP_PEER_ADDR_THLDS   31
 
#define SCTP_SOCKOPT_BINDX_ADD   100 /* BINDX requests for adding addrs */
 
#define SCTP_SOCKOPT_BINDX_REM   101 /* BINDX requests for removing addrs. */
 
#define SCTP_SOCKOPT_PEELOFF   102 /* peel off association. */
 
#define SCTP_SOCKOPT_CONNECTX_OLD   107 /* CONNECTX old requests. */
 
#define SCTP_GET_PEER_ADDRS   108 /* Get all peer address. */
 
#define SCTP_GET_LOCAL_ADDRS   109 /* Get all local address. */
 
#define SCTP_SOCKOPT_CONNECTX   110 /* CONNECTX requests. */
 
#define SCTP_SOCKOPT_CONNECTX3   111 /* CONNECTX requests (updated) */
 
#define SCTP_AUTHENTICATION_INDICATION   SCTP_AUTHENTICATION_EVENT
 
#define MSG_NOTIFICATION   MSG_NOTIFICATION
 
#define SCTP_BINDX_ADD_ADDR   0x01
 
#define SCTP_BINDX_REM_ADDR   0x02
 

Typedefs

typedef __s32 sctp_assoc_t
 
typedef enum sctp_cmsg_type sctp_cmsg_t
 
typedef enum sctp_sn_error sctp_sn_error_t
 

Enumerations

enum  sctp_sinfo_flags {
  SCTP_UNORDERED = 1, SCTP_ADDR_OVER = 2, SCTP_ABORT =4, SCTP_SACK_IMMEDIATELY = 8,
  SCTP_EOF =MSG_FIN
}
 
enum  sctp_cmsg_type { SCTP_INIT, SCTP_SNDRCV }
 
enum  sctp_sac_state {
  SCTP_COMM_UP, SCTP_COMM_LOST, SCTP_RESTART, SCTP_SHUTDOWN_COMP,
  SCTP_CANT_STR_ASSOC
}
 
enum  sctp_spc_state {
  SCTP_ADDR_AVAILABLE, SCTP_ADDR_UNREACHABLE, SCTP_ADDR_REMOVED, SCTP_ADDR_ADDED,
  SCTP_ADDR_MADE_PRIM, SCTP_ADDR_CONFIRMED
}
 
enum  sctp_ssf_flags { SCTP_DATA_UNSENT, SCTP_DATA_SENT }
 
enum  { SCTP_PARTIAL_DELIVERY_ABORTED =0 }
 
enum  { SCTP_AUTH_NEWKEY = 0 }
 
enum  sctp_sn_type {
  SCTP_SN_TYPE_BASE = (1<<15), SCTP_ASSOC_CHANGE, SCTP_PEER_ADDR_CHANGE, SCTP_SEND_FAILED,
  SCTP_REMOTE_ERROR, SCTP_SHUTDOWN_EVENT, SCTP_PARTIAL_DELIVERY_EVENT, SCTP_ADAPTATION_INDICATION,
  SCTP_AUTHENTICATION_EVENT, SCTP_SENDER_DRY_EVENT
}
 
enum  sctp_sn_error {
  SCTP_FAILED_THRESHOLD, SCTP_RECEIVED_SACK, SCTP_HEARTBEAT_SUCCESS, SCTP_RESPONSE_TO_USER_REQ,
  SCTP_INTERNAL_ERROR, SCTP_SHUTDOWN_GUARD_EXPIRES, SCTP_PEER_FAULTY
}
 
enum  sctp_spp_flags {
  SPP_HB_ENABLE = 1<<0, SPP_HB_DISABLE = 1<<1, SPP_HB = SPP_HB_ENABLE | SPP_HB_DISABLE, SPP_HB_DEMAND = 1<<2,
  SPP_PMTUD_ENABLE = 1<<3, SPP_PMTUD_DISABLE = 1<<4, SPP_PMTUD = SPP_PMTUD_ENABLE | SPP_PMTUD_DISABLE, SPP_SACKDELAY_ENABLE = 1<<5,
  SPP_SACKDELAY_DISABLE = 1<<6, SPP_SACKDELAY = SPP_SACKDELAY_ENABLE | SPP_SACKDELAY_DISABLE, SPP_HB_TIME_IS_ZERO = 1<<7
}
 
enum  sctp_spinfo_state {
  SCTP_INACTIVE, SCTP_PF, SCTP_ACTIVE, SCTP_UNCONFIRMED,
  SCTP_UNKNOWN = 0xffff
}
 
enum  sctp_msg_flags { MSG_NOTIFICATION = 0x8000, MSG_NOTIFICATION = 0x8000 }
 

Functions

struct sctp_paddr_change __attribute__ ((packed, aligned(4)))
 

Variables

__u16 spc_type
 
__u16 spc_flags
 
__u32 spc_length
 
struct sockaddr_storage spc_aaddr
 
int spc_state
 
int spc_error
 
sctp_assoc_t spc_assoc_id
 
enum sctp_spc_state __attribute__
 
sctp_assoc_t sspp_assoc_id
 
struct sockaddr_storage sspp_addr
 
sctp_assoc_t ssp_assoc_id
 
struct sockaddr_storage ssp_addr
 
sctp_assoc_t spp_assoc_id
 
struct sockaddr_storage spp_address
 
__u32 spp_hbinterval
 
__u16 spp_pathmaxrxt
 
__u32 spp_pathmtu
 
__u32 spp_sackdelay
 
__u32 spp_flags
 
sctp_assoc_t spinfo_assoc_id
 
struct sockaddr_storage spinfo_address
 
__s32 spinfo_state
 
__u32 spinfo_cwnd
 
__u32 spinfo_srtt
 
__u32 spinfo_rto
 
__u32 spinfo_mtu
 

Macro Definition Documentation

#define MSG_NOTIFICATION   MSG_NOTIFICATION

Definition at line 726 of file user.h.

#define SCTP_ADAPTATION_LAYER   7

Definition at line 70 of file user.h.

#define SCTP_ASSOCINFO   1

Definition at line 64 of file user.h.

#define SCTP_AUTH_ACTIVE_KEY   24

Definition at line 89 of file user.h.

#define SCTP_AUTH_CHUNK   21 /* Set only: add a chunk type to authenticate */

Definition at line 86 of file user.h.

#define SCTP_AUTH_DELETE_KEY   25

Definition at line 90 of file user.h.

#define SCTP_AUTH_KEY   23

Definition at line 88 of file user.h.

#define SCTP_AUTHENTICATION_INDICATION   SCTP_AUTHENTICATION_EVENT

Definition at line 430 of file user.h.

#define SCTP_AUTO_ASCONF   30

Definition at line 95 of file user.h.

#define SCTP_AUTOCLOSE   4

Definition at line 67 of file user.h.

#define SCTP_BINDX_ADD_ADDR   0x01

Definition at line 735 of file user.h.

#define SCTP_BINDX_REM_ADDR   0x02

Definition at line 736 of file user.h.

#define SCTP_CONTEXT   17

Definition at line 82 of file user.h.

#define SCTP_DEFAULT_SEND_PARAM   10

Definition at line 73 of file user.h.

#define SCTP_DELAYED_ACK   SCTP_DELAYED_ACK_TIME

Definition at line 80 of file user.h.

#define SCTP_DELAYED_ACK_TIME   16

Definition at line 79 of file user.h.

#define SCTP_DELAYED_SACK   SCTP_DELAYED_ACK_TIME

Definition at line 81 of file user.h.

#define SCTP_DISABLE_FRAGMENTS   8

Definition at line 71 of file user.h.

#define SCTP_EVENTS   11

Definition at line 74 of file user.h.

#define SCTP_FRAGMENT_INTERLEAVE   18

Definition at line 83 of file user.h.

#define SCTP_GET_ASSOC_ID_LIST   29 /* Read only */

Definition at line 94 of file user.h.

#define SCTP_GET_ASSOC_NUMBER   28 /* Read only */

Definition at line 93 of file user.h.

#define SCTP_GET_LOCAL_ADDRS   109 /* Get all local address. */

Definition at line 107 of file user.h.

#define SCTP_GET_PEER_ADDR_INFO   15

Definition at line 78 of file user.h.

#define SCTP_GET_PEER_ADDRS   108 /* Get all peer address. */

Definition at line 106 of file user.h.

#define SCTP_HMAC_IDENT   22

Definition at line 87 of file user.h.

#define SCTP_I_WANT_MAPPED_V4_ADDR   12 /* Turn on/off mapped v4 addresses */

Definition at line 75 of file user.h.

#define SCTP_INITMSG   2

Definition at line 65 of file user.h.

#define SCTP_LOCAL_AUTH_CHUNKS   27 /* Read only */

Definition at line 92 of file user.h.

#define SCTP_MAX_BURST   20 /* Set/Get max burst */

Definition at line 85 of file user.h.

#define SCTP_MAXSEG   13 /* Get/set maximum fragment. */

Definition at line 76 of file user.h.

#define SCTP_NODELAY   3 /* Get/set nodelay option. */

Definition at line 66 of file user.h.

#define SCTP_PARTIAL_DELIVERY_POINT   19 /* Set/Get partial delivery point */

Definition at line 84 of file user.h.

#define SCTP_PEER_ADDR_PARAMS   9

Definition at line 72 of file user.h.

#define SCTP_PEER_ADDR_THLDS   31

Definition at line 96 of file user.h.

#define SCTP_PEER_AUTH_CHUNKS   26 /* Read only */

Definition at line 91 of file user.h.

#define SCTP_PRIMARY_ADDR   6

Definition at line 69 of file user.h.

#define SCTP_RTOINFO   0

Definition at line 63 of file user.h.

#define SCTP_SET_PEER_PRIMARY_ADDR   5

Definition at line 68 of file user.h.

#define SCTP_SOCKOPT_BINDX_ADD   100 /* BINDX requests for adding addrs */

Definition at line 101 of file user.h.

#define SCTP_SOCKOPT_BINDX_REM   101 /* BINDX requests for removing addrs. */

Definition at line 102 of file user.h.

#define SCTP_SOCKOPT_CONNECTX   110 /* CONNECTX requests. */

Definition at line 108 of file user.h.

#define SCTP_SOCKOPT_CONNECTX3   111 /* CONNECTX requests (updated) */

Definition at line 109 of file user.h.

#define SCTP_SOCKOPT_CONNECTX_OLD   107 /* CONNECTX old requests. */

Definition at line 105 of file user.h.

#define SCTP_SOCKOPT_PEELOFF   102 /* peel off association. */

Definition at line 103 of file user.h.

#define SCTP_STATUS   14

Definition at line 77 of file user.h.

Typedef Documentation

Definition at line 58 of file user.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
SCTP_PARTIAL_DELIVERY_ABORTED 

Definition at line 345 of file user.h.

anonymous enum
Enumerator:
SCTP_AUTH_NEWKEY 

Definition at line 357 of file user.h.

Enumerator:
SCTP_INIT 
SCTP_SNDRCV 

Definition at line 172 of file user.h.

Enumerator:
MSG_NOTIFICATION 
MSG_NOTIFICATION 

Definition at line 724 of file user.h.

Enumerator:
SCTP_COMM_UP 
SCTP_COMM_LOST 
SCTP_RESTART 
SCTP_SHUTDOWN_COMP 
SCTP_CANT_STR_ASSOC 

Definition at line 208 of file user.h.

Enumerator:
SCTP_UNORDERED 
SCTP_ADDR_OVER 
SCTP_ABORT 
SCTP_SACK_IMMEDIATELY 
SCTP_EOF 

Definition at line 162 of file user.h.

Enumerator:
SCTP_FAILED_THRESHOLD 
SCTP_RECEIVED_SACK 
SCTP_HEARTBEAT_SUCCESS 
SCTP_RESPONSE_TO_USER_REQ 
SCTP_INTERNAL_ERROR 
SCTP_SHUTDOWN_GUARD_EXPIRES 
SCTP_PEER_FAULTY 

Definition at line 441 of file user.h.

Enumerator:
SCTP_SN_TYPE_BASE 
SCTP_ASSOC_CHANGE 
SCTP_PEER_ADDR_CHANGE 
SCTP_SEND_FAILED 
SCTP_REMOTE_ERROR 
SCTP_SHUTDOWN_EVENT 
SCTP_PARTIAL_DELIVERY_EVENT 
SCTP_ADAPTATION_INDICATION 
SCTP_AUTHENTICATION_EVENT 
SCTP_SENDER_DRY_EVENT 

Definition at line 420 of file user.h.

Enumerator:
SCTP_ADDR_AVAILABLE 
SCTP_ADDR_UNREACHABLE 
SCTP_ADDR_REMOVED 
SCTP_ADDR_ADDED 
SCTP_ADDR_MADE_PRIM 
SCTP_ADDR_CONFIRMED 

Definition at line 239 of file user.h.

Enumerator:
SCTP_INACTIVE 
SCTP_PF 
SCTP_ACTIVE 
SCTP_UNCONFIRMED 
SCTP_UNKNOWN 

Definition at line 651 of file user.h.

Enumerator:
SPP_HB_ENABLE 
SPP_HB_DISABLE 
SPP_HB 
SPP_HB_DEMAND 
SPP_PMTUD_ENABLE 
SPP_PMTUD_DISABLE 
SPP_PMTUD 
SPP_SACKDELAY_ENABLE 
SPP_SACKDELAY_DISABLE 
SPP_SACKDELAY 
SPP_HB_TIME_IS_ZERO 

Definition at line 526 of file user.h.

Enumerator:
SCTP_DATA_UNSENT 
SCTP_DATA_SENT 

Definition at line 297 of file user.h.

Function Documentation

struct sctp_paddr_change __attribute__ ( (packed, aligned(4))  )
read

Scatter-gather list for preada/pwritea calls.

< Client physical address of the buffer segment.

< Page table entry describing the caching and location override characteristics of the buffer segment. Some drivers ignore this element and will require that the NOCACHE flag be set on their requests.

< Length of the buffer segment.

Definition at line 1740 of file hypervisor.h.

Variable Documentation

Definition at line 235 of file user.h.

sctp_assoc_t spc_assoc_id

Definition at line 238 of file user.h.

int spc_error

Definition at line 237 of file user.h.

__u16 spc_flags

Definition at line 233 of file user.h.

__u32 spc_length

Definition at line 234 of file user.h.

int spc_state

Definition at line 236 of file user.h.

__u16 spc_type

Definition at line 232 of file user.h.

struct sockaddr_storage spinfo_address

Definition at line 642 of file user.h.

sctp_assoc_t spinfo_assoc_id

Definition at line 641 of file user.h.

__u32 spinfo_cwnd

Definition at line 644 of file user.h.

__u32 spinfo_mtu

Definition at line 647 of file user.h.

__u32 spinfo_rto

Definition at line 646 of file user.h.

__u32 spinfo_srtt

Definition at line 645 of file user.h.

__s32 spinfo_state

Definition at line 643 of file user.h.

struct sockaddr_storage spp_address

Definition at line 550 of file user.h.

sctp_assoc_t spp_assoc_id

Definition at line 549 of file user.h.

__u32 spp_flags

Definition at line 555 of file user.h.

__u32 spp_hbinterval

Definition at line 551 of file user.h.

__u16 spp_pathmaxrxt

Definition at line 552 of file user.h.

__u32 spp_pathmtu

Definition at line 553 of file user.h.

__u32 spp_sackdelay

Definition at line 554 of file user.h.

Definition at line 506 of file user.h.

sctp_assoc_t ssp_assoc_id

Definition at line 505 of file user.h.

Definition at line 493 of file user.h.

sctp_assoc_t sspp_assoc_id

Definition at line 492 of file user.h.