sctp_constants.h (235412) | sctp_constants.h (235416) |
---|---|
1/*- 2 * Copyright (c) 2001-2008, by Cisco Systems, Inc. All rights reserved. 3 * Copyright (c) 2008-2011, by Randall Stewart. All rights reserved. 4 * Copyright (c) 2008-2011, by Michael Tuexen. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are met: 8 * --- 19 unchanged lines hidden (view full) --- 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 */ 32 33/* $KAME: sctp_constants.h,v 1.17 2005/03/06 16:04:17 itojun Exp $ */ 34 35#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2001-2008, by Cisco Systems, Inc. All rights reserved. 3 * Copyright (c) 2008-2011, by Randall Stewart. All rights reserved. 4 * Copyright (c) 2008-2011, by Michael Tuexen. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are met: 8 * --- 19 unchanged lines hidden (view full) --- 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 */ 32 33/* $KAME: sctp_constants.h,v 1.17 2005/03/06 16:04:17 itojun Exp $ */ 34 35#include <sys/cdefs.h> |
36__FBSDID("$FreeBSD: head/sys/netinet/sctp_constants.h 235412 2012-05-13 17:17:13Z tuexen $"); | 36__FBSDID("$FreeBSD: head/sys/netinet/sctp_constants.h 235416 2012-05-13 19:32:49Z tuexen $"); |
37 38#ifndef __sctp_constants_h__ 39#define __sctp_constants_h__ 40 41/* IANA assigned port number for SCTP over UDP encapsulation */ 42/* For freebsd we cannot bind the port at 43 * startup. Otherwise what will happen is 44 * we really won't be bound. The user must --- 410 unchanged lines hidden (view full) --- 455#define SCTP_ERROR_CAUSE_IND 0xc003 456#define SCTP_SET_PRIM_ADDR 0xc004 457#define SCTP_SUCCESS_REPORT 0xc005 458#define SCTP_ULP_ADAPTATION 0xc006 459/* behave-nat-draft */ 460#define SCTP_HAS_NAT_SUPPORT 0xc007 461#define SCTP_NAT_VTAGS 0xc008 462 | 37 38#ifndef __sctp_constants_h__ 39#define __sctp_constants_h__ 40 41/* IANA assigned port number for SCTP over UDP encapsulation */ 42/* For freebsd we cannot bind the port at 43 * startup. Otherwise what will happen is 44 * we really won't be bound. The user must --- 410 unchanged lines hidden (view full) --- 455#define SCTP_ERROR_CAUSE_IND 0xc003 456#define SCTP_SET_PRIM_ADDR 0xc004 457#define SCTP_SUCCESS_REPORT 0xc005 458#define SCTP_ULP_ADAPTATION 0xc006 459/* behave-nat-draft */ 460#define SCTP_HAS_NAT_SUPPORT 0xc007 461#define SCTP_NAT_VTAGS 0xc008 462 |
463/* Notification error codes */ 464#define SCTP_NOTIFY_DATAGRAM_UNSENT 0x0001 465#define SCTP_NOTIFY_DATAGRAM_SENT 0x0002 466#define SCTP_FAILED_THRESHOLD 0x0004 467#define SCTP_HEARTBEAT_SUCCESS 0x0008 468#define SCTP_RESPONSE_TO_USER_REQ 0x0010 469#define SCTP_INTERNAL_ERROR 0x0020 470#define SCTP_SHUTDOWN_GUARD_EXPIRES 0x0040 471#define SCTP_RECEIVED_SACK 0x0080 472#define SCTP_PEER_FAULTY 0x0100 473#define SCTP_ICMP_REFUSED 0x0200 474 | |
475/* bits for TOS field */ 476#define SCTP_ECT0_BIT 0x02 477#define SCTP_ECT1_BIT 0x01 478#define SCTP_CE_BITS 0x03 479 480/* below turns off above */ 481#define SCTP_FLEXIBLE_ADDRESS 0x20 482#define SCTP_NO_HEARTBEAT 0x40 --- 267 unchanged lines hidden (view full) --- 750 751/* 752 * SCTP upper layer notifications 753 */ 754#define SCTP_NOTIFY_ASSOC_UP 1 755#define SCTP_NOTIFY_ASSOC_DOWN 2 756#define SCTP_NOTIFY_INTERFACE_DOWN 3 757#define SCTP_NOTIFY_INTERFACE_UP 4 | 463/* bits for TOS field */ 464#define SCTP_ECT0_BIT 0x02 465#define SCTP_ECT1_BIT 0x01 466#define SCTP_CE_BITS 0x03 467 468/* below turns off above */ 469#define SCTP_FLEXIBLE_ADDRESS 0x20 470#define SCTP_NO_HEARTBEAT 0x40 --- 267 unchanged lines hidden (view full) --- 738 739/* 740 * SCTP upper layer notifications 741 */ 742#define SCTP_NOTIFY_ASSOC_UP 1 743#define SCTP_NOTIFY_ASSOC_DOWN 2 744#define SCTP_NOTIFY_INTERFACE_DOWN 3 745#define SCTP_NOTIFY_INTERFACE_UP 4 |
758#define SCTP_NOTIFY_DG_FAIL 5 759#define SCTP_NOTIFY_SPECIAL_SP_FAIL 6 760#define SCTP_NOTIFY_ASSOC_LOC_ABORTED 7 761#define SCTP_NOTIFY_ASSOC_REM_ABORTED 8 762#define SCTP_NOTIFY_ASSOC_RESTART 9 763#define SCTP_NOTIFY_PEER_SHUTDOWN 10 764#define SCTP_NOTIFY_ASCONF_ADD_IP 11 765#define SCTP_NOTIFY_ASCONF_DELETE_IP 12 766#define SCTP_NOTIFY_ASCONF_SET_PRIMARY 13 767#define SCTP_NOTIFY_PARTIAL_DELVIERY_INDICATION 14 768#define SCTP_NOTIFY_INTERFACE_CONFIRMED 15 769#define SCTP_NOTIFY_STR_RESET_RECV 16 770#define SCTP_NOTIFY_STR_RESET_SEND 17 771#define SCTP_NOTIFY_STR_RESET_FAILED_OUT 18 772#define SCTP_NOTIFY_STR_RESET_FAILED_IN 19 773#define SCTP_NOTIFY_STR_RESET_DENIED_OUT 20 774#define SCTP_NOTIFY_STR_RESET_DENIED_IN 21 775#define SCTP_NOTIFY_AUTH_NEW_KEY 22 776#define SCTP_NOTIFY_AUTH_FREE_KEY 23 777#define SCTP_NOTIFY_NO_PEER_AUTH 24 778#define SCTP_NOTIFY_SENDER_DRY 25 | 746#define SCTP_NOTIFY_SENT_DG_FAIL 5 747#define SCTP_NOTIFY_UNSENT_DG_FAIL 6 748#define SCTP_NOTIFY_SPECIAL_SP_FAIL 7 749#define SCTP_NOTIFY_ASSOC_LOC_ABORTED 8 750#define SCTP_NOTIFY_ASSOC_REM_ABORTED 9 751#define SCTP_NOTIFY_ASSOC_RESTART 10 752#define SCTP_NOTIFY_PEER_SHUTDOWN 11 753#define SCTP_NOTIFY_ASCONF_ADD_IP 12 754#define SCTP_NOTIFY_ASCONF_DELETE_IP 13 755#define SCTP_NOTIFY_ASCONF_SET_PRIMARY 14 756#define SCTP_NOTIFY_PARTIAL_DELVIERY_INDICATION 15 757#define SCTP_NOTIFY_INTERFACE_CONFIRMED 16 758#define SCTP_NOTIFY_STR_RESET_RECV 17 759#define SCTP_NOTIFY_STR_RESET_SEND 18 760#define SCTP_NOTIFY_STR_RESET_FAILED_OUT 19 761#define SCTP_NOTIFY_STR_RESET_FAILED_IN 20 762#define SCTP_NOTIFY_STR_RESET_DENIED_OUT 21 763#define SCTP_NOTIFY_STR_RESET_DENIED_IN 22 764#define SCTP_NOTIFY_AUTH_NEW_KEY 23 765#define SCTP_NOTIFY_AUTH_FREE_KEY 24 766#define SCTP_NOTIFY_NO_PEER_AUTH 25 767#define SCTP_NOTIFY_SENDER_DRY 26 |
779 780/* This is the value for messages that are NOT completely 781 * copied down where we will start to split the message. 782 * So, with our default, we split only if the piece we 783 * want to take will fill up a full MTU (assuming 784 * a 1500 byte MTU). 785 */ 786#define SCTP_DEFAULT_SPLIT_POINT_MIN 2904 --- 271 unchanged lines hidden --- | 768 769/* This is the value for messages that are NOT completely 770 * copied down where we will start to split the message. 771 * So, with our default, we split only if the piece we 772 * want to take will fill up a full MTU (assuming 773 * a 1500 byte MTU). 774 */ 775#define SCTP_DEFAULT_SPLIT_POINT_MIN 2904 --- 271 unchanged lines hidden --- |