sctp.h | sctp.h | |||
---|---|---|---|---|
skipping to change at line 97 | skipping to change at line 97 | |||
SCTP_EVENTS, | SCTP_EVENTS, | |||
#define SCTP_EVENTS SCTP_EVENTS | #define SCTP_EVENTS SCTP_EVENTS | |||
SCTP_I_WANT_MAPPED_V4_ADDR, /* Turn on/off mapped v4 addresses */ | SCTP_I_WANT_MAPPED_V4_ADDR, /* Turn on/off mapped v4 addresses */ | |||
#define SCTP_I_WANT_MAPPED_V4_ADDR SCTP_I_WANT_MAPPED_V4_ADDR | #define SCTP_I_WANT_MAPPED_V4_ADDR SCTP_I_WANT_MAPPED_V4_ADDR | |||
SCTP_MAXSEG, /* Get/set maximum fragment. */ | SCTP_MAXSEG, /* Get/set maximum fragment. */ | |||
#define SCTP_MAXSEG SCTP_MAXSEG | #define SCTP_MAXSEG SCTP_MAXSEG | |||
SCTP_STATUS, | SCTP_STATUS, | |||
#define SCTP_STATUS SCTP_STATUS | #define SCTP_STATUS SCTP_STATUS | |||
SCTP_GET_PEER_ADDR_INFO, | SCTP_GET_PEER_ADDR_INFO, | |||
#define SCTP_GET_PEER_ADDR_INFO SCTP_GET_PEER_ADDR_INFO | #define SCTP_GET_PEER_ADDR_INFO SCTP_GET_PEER_ADDR_INFO | |||
SCTP_DELAYED_ACK_TIME, | ||||
#define SCTP_DELAYED_ACK_TIME SCTP_DELAYED_ACK_TIME | ||||
/* Internal Socket Options. Some of the sctp library functions are | /* Internal Socket Options. Some of the sctp library functions are | |||
* implemented using these socket options. | * implemented using these socket options. | |||
*/ | */ | |||
SCTP_SOCKOPT_BINDX_ADD = 100,/* BINDX requests for adding addresses. */ | SCTP_SOCKOPT_BINDX_ADD = 100,/* BINDX requests for adding addresses. */ | |||
#define SCTP_SOCKOPT_BINDX_ADD SCTP_SOCKOPT_BINDX_ADD | #define SCTP_SOCKOPT_BINDX_ADD SCTP_SOCKOPT_BINDX_ADD | |||
SCTP_SOCKOPT_BINDX_REM, /* BINDX requests for removing addresses. */ | SCTP_SOCKOPT_BINDX_REM, /* BINDX requests for removing addresses. */ | |||
#define SCTP_SOCKOPT_BINDX_REM SCTP_SOCKOPT_BINDX_REM | #define SCTP_SOCKOPT_BINDX_REM SCTP_SOCKOPT_BINDX_REM | |||
SCTP_SOCKOPT_PEELOFF, /* peel off association. */ | SCTP_SOCKOPT_PEELOFF, /* peel off association. */ | |||
#define SCTP_SOCKOPT_PEELOFF SCTP_SOCKOPT_PEELOFF | #define SCTP_SOCKOPT_PEELOFF SCTP_SOCKOPT_PEELOFF | |||
skipping to change at line 503 | skipping to change at line 505 | |||
/* | /* | |||
* 7.1.13 Peer Address Parameters (SCTP_PEER_ADDR_PARAMS) | * 7.1.13 Peer Address Parameters (SCTP_PEER_ADDR_PARAMS) | |||
* | * | |||
* Applications can enable or disable heartbeats for any peer address | * Applications can enable or disable heartbeats for any peer address | |||
* of an association, modify an address's heartbeat interval, force a | * of an association, modify an address's heartbeat interval, force a | |||
* heartbeat to be sent immediately, and adjust the address's maximum | * heartbeat to be sent immediately, and adjust the address's maximum | |||
* number of retransmissions sent before an address is considered | * number of retransmissions sent before an address is considered | |||
* unreachable. The following structure is used to access and modify an | * unreachable. The following structure is used to access and modify an | |||
* address's parameters: | * address's parameters: | |||
*/ | */ | |||
enum sctp_spp_flags { | ||||
SPP_HB_ENABLE = 1, /*Enable heartbeats*/ | ||||
SPP_HB_DISABLE = 2, /*Disable heartbeats*/ | ||||
SPP_HB_DEMAND = 4, /*Send heartbeat immediately*/ | ||||
SPP_PMTUD_ENABLE = 8, /*Enable PMTU discovery*/ | ||||
SPP_PMTUD_DISABLE = 16, /*Disable PMTU discovery*/ | ||||
SPP_SACKDELAY_ENABLE = 32, /*Enable SACK*/ | ||||
SPP_SACKDELAY_DISABLE = 64, /*Disable SACK*/ | ||||
}; | ||||
struct sctp_paddrparams { | struct sctp_paddrparams { | |||
sctp_assoc_t spp_assoc_id; | sctp_assoc_t spp_assoc_id; | |||
struct sockaddr_storage spp_address; | struct sockaddr_storage spp_address; | |||
__u32 spp_hbinterval; | __u32 spp_hbinterval; | |||
__u16 spp_pathmaxrxt; | __u16 spp_pathmaxrxt; | |||
__u32 spp_pathmtu; | ||||
__u32 spp_sackdelay; | ||||
__u32 spp_flags; | ||||
} __attribute__((packed, aligned(4))); | } __attribute__((packed, aligned(4))); | |||
/* 7.1.24. Delayed Ack Timer (SCTP_DELAYED_ACK_TIME) | ||||
* | ||||
* This options will get or set the delayed ack timer. The time is set | ||||
* in milliseconds. If the assoc_id is 0, then this sets or gets the | ||||
* endpoints default delayed ack timer value. If the assoc_id field is | ||||
* non-zero, then the set or get effects the specified association. | ||||
*/ | ||||
struct sctp_assoc_value { | ||||
sctp_assoc_t assoc_id; | ||||
uint32_t assoc_value; | ||||
}; | ||||
/* | /* | |||
* 7.2.2 Peer Address Information | * 7.2.2 Peer Address Information | |||
* | * | |||
* Applications can retrieve information about a specific peer address | * Applications can retrieve information about a specific peer address | |||
* of an association, including its reachability state, congestion | * of an association, including its reachability state, congestion | |||
* window, and retransmission timer values. This information is | * window, and retransmission timer values. This information is | |||
* read-only. The following structure is used to access this | * read-only. The following structure is used to access this | |||
* information: | * information: | |||
*/ | */ | |||
struct sctp_paddrinfo { | struct sctp_paddrinfo { | |||
End of changes. 4 change blocks. | ||||
0 lines changed or deleted | 27 lines changed or added | |||