mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[SCTP] sctp_connectx() API support
Implements sctp_connectx() as defined in the SCTP sockets API draft by tunneling the request through a setsockopt(). Signed-off-by: Frank Filz <ffilzlnx@us.ibm.com> Signed-off-by: Sridhar Samudrala <sri@us.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
8b22c249e7
commit
3f7a87d2fa
16 changed files with 677 additions and 260 deletions
|
@ -65,9 +65,11 @@ typedef enum {
|
|||
SCTP_CMD_TIMER_START, /* Start a timer. */
|
||||
SCTP_CMD_TIMER_RESTART, /* Restart a timer. */
|
||||
SCTP_CMD_TIMER_STOP, /* Stop a timer. */
|
||||
SCTP_CMD_COUNTER_RESET, /* Reset a counter. */
|
||||
SCTP_CMD_COUNTER_INC, /* Increment a counter. */
|
||||
SCTP_CMD_INIT_CHOOSE_TRANSPORT, /* Choose transport for an INIT. */
|
||||
SCTP_CMD_INIT_COUNTER_RESET, /* Reset init counter. */
|
||||
SCTP_CMD_INIT_COUNTER_INC, /* Increment init counter. */
|
||||
SCTP_CMD_INIT_RESTART, /* High level, do init timer work. */
|
||||
SCTP_CMD_COOKIEECHO_RESTART, /* High level, do cookie-echo timer work. */
|
||||
SCTP_CMD_INIT_FAILED, /* High level, do init failure work. */
|
||||
SCTP_CMD_REPORT_DUP, /* Report a duplicate TSN. */
|
||||
SCTP_CMD_STRIKE, /* Mark a strike against a transport. */
|
||||
|
@ -118,7 +120,6 @@ typedef union {
|
|||
int error;
|
||||
sctp_state_t state;
|
||||
sctp_event_timeout_t to;
|
||||
sctp_counter_t counter;
|
||||
void *ptr;
|
||||
struct sctp_chunk *chunk;
|
||||
struct sctp_association *asoc;
|
||||
|
@ -165,7 +166,6 @@ SCTP_ARG_CONSTRUCTOR(U16, __u16, u16)
|
|||
SCTP_ARG_CONSTRUCTOR(U8, __u8, u8)
|
||||
SCTP_ARG_CONSTRUCTOR(ERROR, int, error)
|
||||
SCTP_ARG_CONSTRUCTOR(STATE, sctp_state_t, state)
|
||||
SCTP_ARG_CONSTRUCTOR(COUNTER, sctp_counter_t, counter)
|
||||
SCTP_ARG_CONSTRUCTOR(TO, sctp_event_timeout_t, to)
|
||||
SCTP_ARG_CONSTRUCTOR(PTR, void *, ptr)
|
||||
SCTP_ARG_CONSTRUCTOR(CHUNK, struct sctp_chunk *, chunk)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue