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.h30
1 files changed, 16 insertions, 14 deletions
diff --git a/include/net/sctp/user.h b/include/net/sctp/user.h
index 1b7aae6cdd82..67a30eb2b3a4 100644
--- a/include/net/sctp/user.h
+++ b/include/net/sctp/user.h
@@ -75,8 +75,8 @@ enum sctp_optname {
75#define SCTP_SET_PEER_PRIMARY_ADDR SCTP_SET_PEER_PRIMARY_ADDR 75#define SCTP_SET_PEER_PRIMARY_ADDR SCTP_SET_PEER_PRIMARY_ADDR
76 SCTP_PRIMARY_ADDR, 76 SCTP_PRIMARY_ADDR,
77#define SCTP_PRIMARY_ADDR SCTP_PRIMARY_ADDR 77#define SCTP_PRIMARY_ADDR SCTP_PRIMARY_ADDR
78 SCTP_ADAPTION_LAYER, 78 SCTP_ADAPTATION_LAYER,
79#define SCTP_ADAPTION_LAYER SCTP_ADAPTION_LAYER 79#define SCTP_ADAPTATION_LAYER SCTP_ADAPTATION_LAYER
80 SCTP_DISABLE_FRAGMENTS, 80 SCTP_DISABLE_FRAGMENTS,
81#define SCTP_DISABLE_FRAGMENTS SCTP_DISABLE_FRAGMENTS 81#define SCTP_DISABLE_FRAGMENTS SCTP_DISABLE_FRAGMENTS
82 SCTP_PEER_ADDR_PARAMS, 82 SCTP_PEER_ADDR_PARAMS,
@@ -95,6 +95,8 @@ enum sctp_optname {
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, 96 SCTP_DELAYED_ACK_TIME,
97#define SCTP_DELAYED_ACK_TIME SCTP_DELAYED_ACK_TIME 97#define SCTP_DELAYED_ACK_TIME SCTP_DELAYED_ACK_TIME
98 SCTP_CONTEXT, /* Receive Context */
99#define SCTP_CONTEXT SCTP_CONTEXT
98 100
99 /* Internal Socket Options. Some of the sctp library functions are 101 /* Internal Socket Options. Some of the sctp library functions are
100 * implemented using these socket options. 102 * implemented using these socket options.
@@ -329,17 +331,17 @@ struct sctp_shutdown_event {
329}; 331};
330 332
331/* 333/*
332 * 5.3.1.6 SCTP_ADAPTION_INDICATION 334 * 5.3.1.6 SCTP_ADAPTATION_INDICATION
333 * 335 *
334 * When a peer sends a Adaption Layer Indication parameter , SCTP 336 * When a peer sends a Adaptation Layer Indication parameter , SCTP
335 * delivers this notification to inform the application 337 * delivers this notification to inform the application
336 * that of the peers requested adaption layer. 338 * that of the peers requested adaptation layer.
337 */ 339 */
338struct sctp_adaption_event { 340struct sctp_adaptation_event {
339 __u16 sai_type; 341 __u16 sai_type;
340 __u16 sai_flags; 342 __u16 sai_flags;
341 __u32 sai_length; 343 __u32 sai_length;
342 __u32 sai_adaption_ind; 344 __u32 sai_adaptation_ind;
343 sctp_assoc_t sai_assoc_id; 345 sctp_assoc_t sai_assoc_id;
344}; 346};
345 347
@@ -372,7 +374,7 @@ struct sctp_event_subscribe {
372 __u8 sctp_peer_error_event; 374 __u8 sctp_peer_error_event;
373 __u8 sctp_shutdown_event; 375 __u8 sctp_shutdown_event;
374 __u8 sctp_partial_delivery_event; 376 __u8 sctp_partial_delivery_event;
375 __u8 sctp_adaption_layer_event; 377 __u8 sctp_adaptation_layer_event;
376}; 378};
377 379
378/* 380/*
@@ -393,7 +395,7 @@ union sctp_notification {
393 struct sctp_remote_error sn_remote_error; 395 struct sctp_remote_error sn_remote_error;
394 struct sctp_send_failed sn_send_failed; 396 struct sctp_send_failed sn_send_failed;
395 struct sctp_shutdown_event sn_shutdown_event; 397 struct sctp_shutdown_event sn_shutdown_event;
396 struct sctp_adaption_event sn_adaption_event; 398 struct sctp_adaptation_event sn_adaptation_event;
397 struct sctp_pdapi_event sn_pdapi_event; 399 struct sctp_pdapi_event sn_pdapi_event;
398}; 400};
399 401
@@ -410,7 +412,7 @@ enum sctp_sn_type {
410 SCTP_REMOTE_ERROR, 412 SCTP_REMOTE_ERROR,
411 SCTP_SHUTDOWN_EVENT, 413 SCTP_SHUTDOWN_EVENT,
412 SCTP_PARTIAL_DELIVERY_EVENT, 414 SCTP_PARTIAL_DELIVERY_EVENT,
413 SCTP_ADAPTION_INDICATION, 415 SCTP_ADAPTATION_INDICATION,
414}; 416};
415 417
416/* Notification error codes used to fill up the error fields in some 418/* Notification error codes used to fill up the error fields in some
@@ -486,13 +488,13 @@ struct sctp_prim {
486} __attribute__((packed, aligned(4))); 488} __attribute__((packed, aligned(4)));
487 489
488/* 490/*
489 * 7.1.11 Set Adaption Layer Indicator (SCTP_ADAPTION_LAYER) 491 * 7.1.11 Set Adaptation Layer Indicator (SCTP_ADAPTATION_LAYER)
490 * 492 *
491 * Requests that the local endpoint set the specified Adaption Layer 493 * Requests that the local endpoint set the specified Adaptation Layer
492 * Indication parameter for all future INIT and INIT-ACK exchanges. 494 * Indication parameter for all future INIT and INIT-ACK exchanges.
493 */ 495 */
494struct sctp_setadaption { 496struct sctp_setadaptation {
495 __u32 ssb_adaption_ind; 497 __u32 ssb_adaptation_ind;
496}; 498};
497 499
498/* 500/*