aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/sctp/user.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/sctp/user.h')
-rw-r--r--include/net/sctp/user.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/net/sctp/user.h b/include/net/sctp/user.h
index f1c3bc54526a..b9052864fa5a 100644
--- a/include/net/sctp/user.h
+++ b/include/net/sctp/user.h
@@ -503,11 +503,27 @@ struct sctp_setadaption {
503 * unreachable. The following structure is used to access and modify an 503 * unreachable. The following structure is used to access and modify an
504 * address's parameters: 504 * address's parameters:
505 */ 505 */
506enum sctp_spp_flags {
507 SPP_HB_ENABLE = 1, /*Enable heartbeats*/
508 SPP_HB_DISABLE = 2, /*Disable heartbeats*/
509 SPP_HB = SPP_HB_ENABLE | SPP_HB_DISABLE,
510 SPP_HB_DEMAND = 4, /*Send heartbeat immediately*/
511 SPP_PMTUD_ENABLE = 8, /*Enable PMTU discovery*/
512 SPP_PMTUD_DISABLE = 16, /*Disable PMTU discovery*/
513 SPP_PMTUD = SPP_PMTUD_ENABLE | SPP_PMTUD_DISABLE,
514 SPP_SACKDELAY_ENABLE = 32, /*Enable SACK*/
515 SPP_SACKDELAY_DISABLE = 64, /*Disable SACK*/
516 SPP_SACKDELAY = SPP_SACKDELAY_ENABLE | SPP_SACKDELAY_DISABLE,
517};
518
506struct sctp_paddrparams { 519struct sctp_paddrparams {
507 sctp_assoc_t spp_assoc_id; 520 sctp_assoc_t spp_assoc_id;
508 struct sockaddr_storage spp_address; 521 struct sockaddr_storage spp_address;
509 __u32 spp_hbinterval; 522 __u32 spp_hbinterval;
510 __u16 spp_pathmaxrxt; 523 __u16 spp_pathmaxrxt;
524 __u32 spp_pathmtu;
525 __u32 spp_sackdelay;
526 __u32 spp_flags;
511} __attribute__((packed, aligned(4))); 527} __attribute__((packed, aligned(4)));
512 528
513/* 529/*