sctp.h (172091) | sctp.h (172190) |
---|---|
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. --- 16 unchanged lines hidden (view full) --- 25 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 28 * THE POSSIBILITY OF SUCH DAMAGE. 29 */ 30/* $KAME: sctp.h,v 1.18 2005/03/06 16:04:16 itojun Exp $ */ 31 32#include <sys/cdefs.h> | 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. --- 16 unchanged lines hidden (view full) --- 25 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 28 * THE POSSIBILITY OF SUCH DAMAGE. 29 */ 30/* $KAME: sctp.h,v 1.18 2005/03/06 16:04:16 itojun Exp $ */ 31 32#include <sys/cdefs.h> |
33__FBSDID("$FreeBSD: head/sys/netinet/sctp.h 172091 2007-09-08 17:48:46Z rrs $"); | 33__FBSDID("$FreeBSD: head/sys/netinet/sctp.h 172190 2007-09-15 19:07:42Z rrs $"); |
34 35#ifndef _NETINET_SCTP_H_ 36#define _NETINET_SCTP_H_ 37 38#include <sys/types.h> 39 40/* 41 * SCTP protocol - RFC2960. --- 243 unchanged lines hidden (view full) --- 285#define SCTP_CAUSE_INVALID_PARAM 0x0007 286#define SCTP_CAUSE_UNRECOG_PARAM 0x0008 287#define SCTP_CAUSE_NO_USER_DATA 0x0009 288#define SCTP_CAUSE_COOKIE_IN_SHUTDOWN 0x000a 289#define SCTP_CAUSE_RESTART_W_NEWADDR 0x000b 290#define SCTP_CAUSE_USER_INITIATED_ABT 0x000c 291#define SCTP_CAUSE_PROTOCOL_VIOLATION 0x000d 292 | 34 35#ifndef _NETINET_SCTP_H_ 36#define _NETINET_SCTP_H_ 37 38#include <sys/types.h> 39 40/* 41 * SCTP protocol - RFC2960. --- 243 unchanged lines hidden (view full) --- 285#define SCTP_CAUSE_INVALID_PARAM 0x0007 286#define SCTP_CAUSE_UNRECOG_PARAM 0x0008 287#define SCTP_CAUSE_NO_USER_DATA 0x0009 288#define SCTP_CAUSE_COOKIE_IN_SHUTDOWN 0x000a 289#define SCTP_CAUSE_RESTART_W_NEWADDR 0x000b 290#define SCTP_CAUSE_USER_INITIATED_ABT 0x000c 291#define SCTP_CAUSE_PROTOCOL_VIOLATION 0x000d 292 |
293/* Error causes from draft-ietf-tsvwg-addip-sctp */ | 293/* Error causes from RFC5061 */ |
294#define SCTP_CAUSE_DELETING_LAST_ADDR 0xa0 295#define SCTP_CAUSE_RESOURCE_SHORTAGE 0xa1 296#define SCTP_CAUSE_DELETING_SRC_ADDR 0xa2 297#define SCTP_CAUSE_ILLEGAL_ASCONF_ACK 0xa3 298#define SCTP_CAUSE_REQUEST_REFUSED 0xa4 299 | 294#define SCTP_CAUSE_DELETING_LAST_ADDR 0xa0 295#define SCTP_CAUSE_RESOURCE_SHORTAGE 0xa1 296#define SCTP_CAUSE_DELETING_SRC_ADDR 0xa2 297#define SCTP_CAUSE_ILLEGAL_ASCONF_ACK 0xa3 298#define SCTP_CAUSE_REQUEST_REFUSED 0xa4 299 |
300/* Error causes from draft-ietf-tsvwg-sctp-auth */ | 300/* Error causes from RFC4895 */ |
301#define SCTP_CAUSE_UNSUPPORTED_HMACID 0x0105 302 303/* 304 * error cause parameters (user visisble) 305 */ 306 struct sctp_error_cause { 307 uint16_t code; 308 uint16_t length; --- 53 unchanged lines hidden (view full) --- 362#define SCTP_SHUTDOWN 0x07 363#define SCTP_SHUTDOWN_ACK 0x08 364#define SCTP_OPERATION_ERROR 0x09 365#define SCTP_COOKIE_ECHO 0x0a 366#define SCTP_COOKIE_ACK 0x0b 367#define SCTP_ECN_ECHO 0x0c 368#define SCTP_ECN_CWR 0x0d 369#define SCTP_SHUTDOWN_COMPLETE 0x0e | 301#define SCTP_CAUSE_UNSUPPORTED_HMACID 0x0105 302 303/* 304 * error cause parameters (user visisble) 305 */ 306 struct sctp_error_cause { 307 uint16_t code; 308 uint16_t length; --- 53 unchanged lines hidden (view full) --- 362#define SCTP_SHUTDOWN 0x07 363#define SCTP_SHUTDOWN_ACK 0x08 364#define SCTP_OPERATION_ERROR 0x09 365#define SCTP_COOKIE_ECHO 0x0a 366#define SCTP_COOKIE_ACK 0x0b 367#define SCTP_ECN_ECHO 0x0c 368#define SCTP_ECN_CWR 0x0d 369#define SCTP_SHUTDOWN_COMPLETE 0x0e |
370/* draft-ietf-tsvwg-sctp-auth */ | 370/* RFC4895 */ |
371#define SCTP_AUTHENTICATION 0x0f 372/************0x40 series ***********/ 373/************0x80 series ***********/ | 371#define SCTP_AUTHENTICATION 0x0f 372/************0x40 series ***********/ 373/************0x80 series ***********/ |
374/* draft-ietf-tsvwg-addip-sctp */ | 374/* RFC5061 */ |
375#define SCTP_ASCONF_ACK 0x80 376/* draft-ietf-stewart-pktdrpsctp */ 377#define SCTP_PACKET_DROPPED 0x81 378/* draft-ietf-stewart-strreset-xxx */ 379#define SCTP_STREAM_RESET 0x82 380 381/* RFC4820 */ 382#define SCTP_PAD_CHUNK 0x84 383/************0xc0 series ***********/ 384/* RFC3758 */ 385#define SCTP_FORWARD_CUM_TSN 0xc0 | 375#define SCTP_ASCONF_ACK 0x80 376/* draft-ietf-stewart-pktdrpsctp */ 377#define SCTP_PACKET_DROPPED 0x81 378/* draft-ietf-stewart-strreset-xxx */ 379#define SCTP_STREAM_RESET 0x82 380 381/* RFC4820 */ 382#define SCTP_PAD_CHUNK 0x84 383/************0xc0 series ***********/ 384/* RFC3758 */ 385#define SCTP_FORWARD_CUM_TSN 0xc0 |
386/* draft-ietf-tsvwg-addip-sctp */ | 386/* RFC5061 */ |
387#define SCTP_ASCONF 0xc1 388 389 390/* ABORT and SHUTDOWN COMPLETE FLAG */ 391#define SCTP_HAD_NO_TCB 0x01 392 393/* Packet dropped flags */ 394#define SCTP_FROM_MIDDLE_BOX SCTP_HAD_NO_TCB --- 145 unchanged lines hidden --- | 387#define SCTP_ASCONF 0xc1 388 389 390/* ABORT and SHUTDOWN COMPLETE FLAG */ 391#define SCTP_HAD_NO_TCB 0x01 392 393/* Packet dropped flags */ 394#define SCTP_FROM_MIDDLE_BOX SCTP_HAD_NO_TCB --- 145 unchanged lines hidden --- |