sctp_uio.h (a10c3242c71210ef505f17c1138e10035dee01e6) sctp_uio.h (663fdad84b74c797f35a07b8da5be7d78b968df4)
1/*-
2 * Copyright (c) 2001-2007, by Cisco Systems, Inc. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are met:
6 *
7 * a) Redistributions of source code must retain the above copyright notice,
8 * this list of conditions and the following disclaimer.

--- 262 unchanged lines hidden (view full) ---

271/* data send failure event */
272struct sctp_send_failed {
273 uint16_t ssf_type;
274 uint16_t ssf_flags;
275 uint32_t ssf_length;
276 uint32_t ssf_error;
277 struct sctp_sndrcvinfo ssf_info;
278 sctp_assoc_t ssf_assoc_id;
1/*-
2 * Copyright (c) 2001-2007, by Cisco Systems, Inc. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are met:
6 *
7 * a) Redistributions of source code must retain the above copyright notice,
8 * this list of conditions and the following disclaimer.

--- 262 unchanged lines hidden (view full) ---

271/* data send failure event */
272struct sctp_send_failed {
273 uint16_t ssf_type;
274 uint16_t ssf_flags;
275 uint32_t ssf_length;
276 uint32_t ssf_error;
277 struct sctp_sndrcvinfo ssf_info;
278 sctp_assoc_t ssf_assoc_id;
279 uint8_t ssf_data[0];
279 uint8_t ssf_data[];
280};
281
282/* flag that indicates state of data */
283#define SCTP_DATA_UNSENT 0x0001 /* inqueue never on wire */
284#define SCTP_DATA_SENT 0x0002 /* on wire at failure */
285
286/* shutdown event */
287struct sctp_shutdown_event {

--- 77 unchanged lines hidden (view full) ---

365/*
366 * stream reset event
367 */
368struct sctp_stream_reset_event {
369 uint16_t strreset_type;
370 uint16_t strreset_flags;
371 uint32_t strreset_length;
372 sctp_assoc_t strreset_assoc_id;
280};
281
282/* flag that indicates state of data */
283#define SCTP_DATA_UNSENT 0x0001 /* inqueue never on wire */
284#define SCTP_DATA_SENT 0x0002 /* on wire at failure */
285
286/* shutdown event */
287struct sctp_shutdown_event {

--- 77 unchanged lines hidden (view full) ---

365/*
366 * stream reset event
367 */
368struct sctp_stream_reset_event {
369 uint16_t strreset_type;
370 uint16_t strreset_flags;
371 uint32_t strreset_length;
372 sctp_assoc_t strreset_assoc_id;
373 uint16_t strreset_list[0];
373 uint16_t strreset_list[];
374};
375
376/* flags in strreset_flags field */
377#define SCTP_STRRESET_INBOUND_STR 0x0001
378#define SCTP_STRRESET_OUTBOUND_STR 0x0002
379#define SCTP_STRRESET_ALL_STREAMS 0x0004
380#define SCTP_STRRESET_STREAM_LIST 0x0008
381#define SCTP_STRRESET_FAILED 0x0010

--- 130 unchanged lines hidden (view full) ---

512struct sctp_authchunk {
513 uint8_t sauth_chunk;
514};
515
516/* SCTP_AUTH_KEY */
517struct sctp_authkey {
518 sctp_assoc_t sca_assoc_id;
519 uint16_t sca_keynumber;
374};
375
376/* flags in strreset_flags field */
377#define SCTP_STRRESET_INBOUND_STR 0x0001
378#define SCTP_STRRESET_OUTBOUND_STR 0x0002
379#define SCTP_STRRESET_ALL_STREAMS 0x0004
380#define SCTP_STRRESET_STREAM_LIST 0x0008
381#define SCTP_STRRESET_FAILED 0x0010

--- 130 unchanged lines hidden (view full) ---

512struct sctp_authchunk {
513 uint8_t sauth_chunk;
514};
515
516/* SCTP_AUTH_KEY */
517struct sctp_authkey {
518 sctp_assoc_t sca_assoc_id;
519 uint16_t sca_keynumber;
520 uint8_t sca_key[0];
520 uint8_t sca_key[];
521};
522
523/* SCTP_HMAC_IDENT */
524struct sctp_hmacalgo {
525 uint32_t shmac_number_of_idents;
521};
522
523/* SCTP_HMAC_IDENT */
524struct sctp_hmacalgo {
525 uint32_t shmac_number_of_idents;
526 uint16_t shmac_idents[0];
526 uint16_t shmac_idents[];
527};
528
529/* AUTH hmac_id */
530#define SCTP_AUTH_HMAC_ID_RSVD 0x0000
531#define SCTP_AUTH_HMAC_ID_SHA1 0x0001 /* default, mandatory */
532#define SCTP_AUTH_HMAC_ID_SHA256 0x0003
533#define SCTP_AUTH_HMAC_ID_SHA224 0x0004
534#define SCTP_AUTH_HMAC_ID_SHA384 0x0005

--- 4 unchanged lines hidden (view full) ---

539struct sctp_authkeyid {
540 sctp_assoc_t scact_assoc_id;
541 uint16_t scact_keynumber;
542};
543
544/* SCTP_PEER_AUTH_CHUNKS / SCTP_LOCAL_AUTH_CHUNKS */
545struct sctp_authchunks {
546 sctp_assoc_t gauth_assoc_id;
527};
528
529/* AUTH hmac_id */
530#define SCTP_AUTH_HMAC_ID_RSVD 0x0000
531#define SCTP_AUTH_HMAC_ID_SHA1 0x0001 /* default, mandatory */
532#define SCTP_AUTH_HMAC_ID_SHA256 0x0003
533#define SCTP_AUTH_HMAC_ID_SHA224 0x0004
534#define SCTP_AUTH_HMAC_ID_SHA384 0x0005

--- 4 unchanged lines hidden (view full) ---

539struct sctp_authkeyid {
540 sctp_assoc_t scact_assoc_id;
541 uint16_t scact_keynumber;
542};
543
544/* SCTP_PEER_AUTH_CHUNKS / SCTP_LOCAL_AUTH_CHUNKS */
545struct sctp_authchunks {
546 sctp_assoc_t gauth_assoc_id;
547 uint8_t gauth_chunks[0];
547 uint8_t gauth_chunks[];
548};
549
550struct sctp_assoc_value {
551 sctp_assoc_t assoc_id;
552 uint32_t assoc_value;
553};
554
555struct sctp_assoc_ids {
556 uint32_t gaids_number_of_ids;
548};
549
550struct sctp_assoc_value {
551 sctp_assoc_t assoc_id;
552 uint32_t assoc_value;
553};
554
555struct sctp_assoc_ids {
556 uint32_t gaids_number_of_ids;
557 sctp_assoc_t gaids_assoc_id[0];
557 sctp_assoc_t gaids_assoc_id[];
558};
559
560struct sctp_sack_info {
561 sctp_assoc_t sack_assoc_id;
562 uint32_t sack_delay;
563 uint32_t sack_freq;
564};
565

--- 32 unchanged lines hidden (view full) ---

598#define SCTP_RESET_BOTH 0x0003
599#define SCTP_RESET_TSN 0x0004
600#define SCTP_RESET_ADD_STREAMS 0x0005
601
602struct sctp_stream_reset {
603 sctp_assoc_t strrst_assoc_id;
604 uint16_t strrst_flags;
605 uint16_t strrst_num_streams; /* 0 == ALL */
558};
559
560struct sctp_sack_info {
561 sctp_assoc_t sack_assoc_id;
562 uint32_t sack_delay;
563 uint32_t sack_freq;
564};
565

--- 32 unchanged lines hidden (view full) ---

598#define SCTP_RESET_BOTH 0x0003
599#define SCTP_RESET_TSN 0x0004
600#define SCTP_RESET_ADD_STREAMS 0x0005
601
602struct sctp_stream_reset {
603 sctp_assoc_t strrst_assoc_id;
604 uint16_t strrst_flags;
605 uint16_t strrst_num_streams; /* 0 == ALL */
606 uint16_t strrst_list[0];/* list if strrst_num_streams is not 0 */
606 uint16_t strrst_list[]; /* list if strrst_num_streams is not 0 */
607};
608
609
610struct sctp_get_nonce_values {
611 sctp_assoc_t gn_assoc_id;
612 uint32_t gn_peers_tag;
613 uint32_t gn_local_tag;
614};

--- 136 unchanged lines hidden (view full) ---

751 } x;
752};
753
754struct sctp_cwnd_log_req {
755 int32_t num_in_log; /* Number in log */
756 int32_t num_ret; /* Number returned */
757 int32_t start_at; /* start at this one */
758 int32_t end_at; /* end at this one */
607};
608
609
610struct sctp_get_nonce_values {
611 sctp_assoc_t gn_assoc_id;
612 uint32_t gn_peers_tag;
613 uint32_t gn_local_tag;
614};

--- 136 unchanged lines hidden (view full) ---

751 } x;
752};
753
754struct sctp_cwnd_log_req {
755 int32_t num_in_log; /* Number in log */
756 int32_t num_ret; /* Number returned */
757 int32_t start_at; /* start at this one */
758 int32_t end_at; /* end at this one */
759 struct sctp_cwnd_log log[0];
759 struct sctp_cwnd_log log[];
760};
761
762struct sctp_timeval {
763 uint32_t tv_sec;
764 uint32_t tv_usec;
765};
766
767struct sctpstat {

--- 368 unchanged lines hidden ---
760};
761
762struct sctp_timeval {
763 uint32_t tv_sec;
764 uint32_t tv_usec;
765};
766
767struct sctpstat {

--- 368 unchanged lines hidden ---