diff options
Diffstat (limited to 'include/net/sctp/user.h')
| -rw-r--r-- | include/net/sctp/user.h | 30 | 
1 files changed, 30 insertions, 0 deletions
| diff --git a/include/net/sctp/user.h b/include/net/sctp/user.h index f1c3bc54526a..8a6bef6f91eb 100644 --- a/include/net/sctp/user.h +++ b/include/net/sctp/user.h | |||
| @@ -93,6 +93,8 @@ enum sctp_optname { | |||
| 93 | #define SCTP_STATUS SCTP_STATUS | 93 | #define SCTP_STATUS SCTP_STATUS | 
| 94 | SCTP_GET_PEER_ADDR_INFO, | 94 | SCTP_GET_PEER_ADDR_INFO, | 
| 95 | #define SCTP_GET_PEER_ADDR_INFO SCTP_GET_PEER_ADDR_INFO | 95 | #define SCTP_GET_PEER_ADDR_INFO SCTP_GET_PEER_ADDR_INFO | 
| 96 | SCTP_DELAYED_ACK_TIME, | ||
| 97 | #define SCTP_DELAYED_ACK_TIME SCTP_DELAYED_ACK_TIME | ||
| 96 | 98 | ||
| 97 | /* Internal Socket Options. Some of the sctp library functions are | 99 | /* Internal Socket Options. Some of the sctp library functions are | 
| 98 | * implemented using these socket options. | 100 | * implemented using these socket options. | 
| @@ -503,13 +505,41 @@ struct sctp_setadaption { | |||
| 503 | * unreachable. The following structure is used to access and modify an | 505 | * unreachable. The following structure is used to access and modify an | 
| 504 | * address's parameters: | 506 | * address's parameters: | 
| 505 | */ | 507 | */ | 
| 508 | enum sctp_spp_flags { | ||
| 509 | SPP_HB_ENABLE = 1, /*Enable heartbeats*/ | ||
| 510 | SPP_HB_DISABLE = 2, /*Disable heartbeats*/ | ||
| 511 | SPP_HB = SPP_HB_ENABLE | SPP_HB_DISABLE, | ||
| 512 | SPP_HB_DEMAND = 4, /*Send heartbeat immediately*/ | ||
| 513 | SPP_PMTUD_ENABLE = 8, /*Enable PMTU discovery*/ | ||
| 514 | SPP_PMTUD_DISABLE = 16, /*Disable PMTU discovery*/ | ||
| 515 | SPP_PMTUD = SPP_PMTUD_ENABLE | SPP_PMTUD_DISABLE, | ||
| 516 | SPP_SACKDELAY_ENABLE = 32, /*Enable SACK*/ | ||
| 517 | SPP_SACKDELAY_DISABLE = 64, /*Disable SACK*/ | ||
| 518 | SPP_SACKDELAY = SPP_SACKDELAY_ENABLE | SPP_SACKDELAY_DISABLE, | ||
| 519 | }; | ||
| 520 | |||
| 506 | struct sctp_paddrparams { | 521 | struct sctp_paddrparams { | 
| 507 | sctp_assoc_t spp_assoc_id; | 522 | sctp_assoc_t spp_assoc_id; | 
| 508 | struct sockaddr_storage spp_address; | 523 | struct sockaddr_storage spp_address; | 
| 509 | __u32 spp_hbinterval; | 524 | __u32 spp_hbinterval; | 
| 510 | __u16 spp_pathmaxrxt; | 525 | __u16 spp_pathmaxrxt; | 
| 526 | __u32 spp_pathmtu; | ||
| 527 | __u32 spp_sackdelay; | ||
| 528 | __u32 spp_flags; | ||
| 511 | } __attribute__((packed, aligned(4))); | 529 | } __attribute__((packed, aligned(4))); | 
| 512 | 530 | ||
| 531 | /* 7.1.24. Delayed Ack Timer (SCTP_DELAYED_ACK_TIME) | ||
| 532 | * | ||
| 533 | * This options will get or set the delayed ack timer. The time is set | ||
| 534 | * in milliseconds. If the assoc_id is 0, then this sets or gets the | ||
| 535 | * endpoints default delayed ack timer value. If the assoc_id field is | ||
| 536 | * non-zero, then the set or get effects the specified association. | ||
| 537 | */ | ||
| 538 | struct sctp_assoc_value { | ||
| 539 | sctp_assoc_t assoc_id; | ||
| 540 | uint32_t assoc_value; | ||
| 541 | }; | ||
| 542 | |||
| 513 | /* | 543 | /* | 
| 514 | * 7.2.2 Peer Address Information | 544 | * 7.2.2 Peer Address Information | 
| 515 | * | 545 | * | 
