sctp_constants.h (219397) | sctp_constants.h (224641) |
---|---|
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 219397 2011-03-08 11:58:25Z rrs $"); | 36__FBSDID("$FreeBSD: head/sys/netinet/sctp_constants.h 224641 2011-08-03 20:21:00Z 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 --- 366 unchanged lines hidden (view full) --- 411#define SCTP_HOSTNAME_ADDRESS 0x000b 412#define SCTP_SUPPORTED_ADDRTYPE 0x000c 413 414/* draft-ietf-stewart-tsvwg-strreset-xxx */ 415#define SCTP_STR_RESET_OUT_REQUEST 0x000d 416#define SCTP_STR_RESET_IN_REQUEST 0x000e 417#define SCTP_STR_RESET_TSN_REQUEST 0x000f 418#define SCTP_STR_RESET_RESPONSE 0x0010 | 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 --- 366 unchanged lines hidden (view full) --- 411#define SCTP_HOSTNAME_ADDRESS 0x000b 412#define SCTP_SUPPORTED_ADDRTYPE 0x000c 413 414/* draft-ietf-stewart-tsvwg-strreset-xxx */ 415#define SCTP_STR_RESET_OUT_REQUEST 0x000d 416#define SCTP_STR_RESET_IN_REQUEST 0x000e 417#define SCTP_STR_RESET_TSN_REQUEST 0x000f 418#define SCTP_STR_RESET_RESPONSE 0x0010 |
419#define SCTP_STR_RESET_ADD_STREAMS 0x0011 | 419#define SCTP_STR_RESET_ADD_STREAMS 0x0011 |
420 421#define SCTP_MAX_RESET_PARAMS 2 422#define SCTP_STREAM_RESET_TSN_DELTA 0x1000 423 424/*************0x4000 series*************/ 425 426/*************0x8000 series*************/ 427#define SCTP_ECN_CAPABLE 0x8000 --- 75 unchanged lines hidden (view full) --- 503 504#define SCTP_GET_STATE(asoc) ((asoc)->state & SCTP_STATE_MASK) 505#define SCTP_SET_STATE(asoc, newstate) ((asoc)->state = ((asoc)->state & ~SCTP_STATE_MASK) | newstate) 506#define SCTP_CLEAR_SUBSTATE(asoc, substate) ((asoc)->state &= ~substate) 507#define SCTP_ADD_SUBSTATE(asoc, substate) ((asoc)->state |= substate) 508 509/* SCTP reachability state for each address */ 510#define SCTP_ADDR_REACHABLE 0x001 | 420 421#define SCTP_MAX_RESET_PARAMS 2 422#define SCTP_STREAM_RESET_TSN_DELTA 0x1000 423 424/*************0x4000 series*************/ 425 426/*************0x8000 series*************/ 427#define SCTP_ECN_CAPABLE 0x8000 --- 75 unchanged lines hidden (view full) --- 503 504#define SCTP_GET_STATE(asoc) ((asoc)->state & SCTP_STATE_MASK) 505#define SCTP_SET_STATE(asoc, newstate) ((asoc)->state = ((asoc)->state & ~SCTP_STATE_MASK) | newstate) 506#define SCTP_CLEAR_SUBSTATE(asoc, substate) ((asoc)->state &= ~substate) 507#define SCTP_ADD_SUBSTATE(asoc, substate) ((asoc)->state |= substate) 508 509/* SCTP reachability state for each address */ 510#define SCTP_ADDR_REACHABLE 0x001 |
511#define SCTP_ADDR_NOT_REACHABLE 0x002 | |
512#define SCTP_ADDR_NOHB 0x004 513#define SCTP_ADDR_BEING_DELETED 0x008 514#define SCTP_ADDR_NOT_IN_ASSOC 0x010 | 511#define SCTP_ADDR_NOHB 0x004 512#define SCTP_ADDR_BEING_DELETED 0x008 513#define SCTP_ADDR_NOT_IN_ASSOC 0x010 |
515#define SCTP_ADDR_WAS_PRIMARY 0x020 516#define SCTP_ADDR_SWITCH_PRIMARY 0x040 | |
517#define SCTP_ADDR_OUT_OF_SCOPE 0x080 | 514#define SCTP_ADDR_OUT_OF_SCOPE 0x080 |
518#define SCTP_ADDR_DOUBLE_SWITCH 0x100 | |
519#define SCTP_ADDR_UNCONFIRMED 0x200 520#define SCTP_ADDR_REQ_PRIMARY 0x400 521/* JRS 5/13/07 - Added potentially failed state for CMT PF */ 522#define SCTP_ADDR_PF 0x800 523 524/* bound address types (e.g. valid address types to allow) */ 525#define SCTP_BOUND_V6 0x01 526#define SCTP_BOUND_V4 0x02 --- 47 unchanged lines hidden (view full) --- 574#define SCTP_TIMER_TYPE_PATHMTURAISE 8 575#define SCTP_TIMER_TYPE_SHUTDOWNACK 9 576#define SCTP_TIMER_TYPE_ASCONF 10 577#define SCTP_TIMER_TYPE_SHUTDOWNGUARD 11 578#define SCTP_TIMER_TYPE_AUTOCLOSE 12 579#define SCTP_TIMER_TYPE_EVENTWAKE 13 580#define SCTP_TIMER_TYPE_STRRESET 14 581#define SCTP_TIMER_TYPE_INPKILL 15 | 515#define SCTP_ADDR_UNCONFIRMED 0x200 516#define SCTP_ADDR_REQ_PRIMARY 0x400 517/* JRS 5/13/07 - Added potentially failed state for CMT PF */ 518#define SCTP_ADDR_PF 0x800 519 520/* bound address types (e.g. valid address types to allow) */ 521#define SCTP_BOUND_V6 0x01 522#define SCTP_BOUND_V4 0x02 --- 47 unchanged lines hidden (view full) --- 570#define SCTP_TIMER_TYPE_PATHMTURAISE 8 571#define SCTP_TIMER_TYPE_SHUTDOWNACK 9 572#define SCTP_TIMER_TYPE_ASCONF 10 573#define SCTP_TIMER_TYPE_SHUTDOWNGUARD 11 574#define SCTP_TIMER_TYPE_AUTOCLOSE 12 575#define SCTP_TIMER_TYPE_EVENTWAKE 13 576#define SCTP_TIMER_TYPE_STRRESET 14 577#define SCTP_TIMER_TYPE_INPKILL 15 |
582#define SCTP_TIMER_TYPE_EARLYFR 17 583#define SCTP_TIMER_TYPE_ASOCKILL 18 584#define SCTP_TIMER_TYPE_ADDR_WQ 19 585#define SCTP_TIMER_TYPE_ZERO_COPY 20 586#define SCTP_TIMER_TYPE_ZCOPY_SENDQ 21 587#define SCTP_TIMER_TYPE_PRIM_DELETED 22 | 578#define SCTP_TIMER_TYPE_ASOCKILL 16 579#define SCTP_TIMER_TYPE_ADDR_WQ 17 580#define SCTP_TIMER_TYPE_ZERO_COPY 18 581#define SCTP_TIMER_TYPE_ZCOPY_SENDQ 19 582#define SCTP_TIMER_TYPE_PRIM_DELETED 20 |
588/* add new timers here - and increment LAST */ | 583/* add new timers here - and increment LAST */ |
589#define SCTP_TIMER_TYPE_LAST 23 | 584#define SCTP_TIMER_TYPE_LAST 21 |
590 591#define SCTP_IS_TIMER_TYPE_VALID(t) (((t) > SCTP_TIMER_TYPE_NONE) && \ 592 ((t) < SCTP_TIMER_TYPE_LAST)) 593 594 595 596/* max number of TSN's dup'd that I will hold */ 597#define SCTP_MAX_DUP_TSNS 20 --- 52 unchanged lines hidden (view full) --- 650 651/* 652 * This is how long a secret lives, NOT how long a cookie lives how many 653 * ticks the current secret will live. 654 */ 655#define SCTP_DEFAULT_SECRET_LIFE_SEC 3600 656 657#define SCTP_RTO_UPPER_BOUND (60000) /* 60 sec in ms */ | 585 586#define SCTP_IS_TIMER_TYPE_VALID(t) (((t) > SCTP_TIMER_TYPE_NONE) && \ 587 ((t) < SCTP_TIMER_TYPE_LAST)) 588 589 590 591/* max number of TSN's dup'd that I will hold */ 592#define SCTP_MAX_DUP_TSNS 20 --- 52 unchanged lines hidden (view full) --- 645 646/* 647 * This is how long a secret lives, NOT how long a cookie lives how many 648 * ticks the current secret will live. 649 */ 650#define SCTP_DEFAULT_SECRET_LIFE_SEC 3600 651 652#define SCTP_RTO_UPPER_BOUND (60000) /* 60 sec in ms */ |
658#define SCTP_RTO_LOWER_BOUND (300) /* 0.3 sec is ms */ | 653#define SCTP_RTO_LOWER_BOUND (1000) /* 1 sec is ms */ |
659#define SCTP_RTO_INITIAL (3000) /* 3 sec in ms */ 660 661 662#define SCTP_INP_KILL_TIMEOUT 20/* number of ms to retry kill of inpcb */ 663#define SCTP_ASOC_KILL_TIMEOUT 10 /* number of ms to retry kill of inpcb */ 664 | 654#define SCTP_RTO_INITIAL (3000) /* 3 sec in ms */ 655 656 657#define SCTP_INP_KILL_TIMEOUT 20/* number of ms to retry kill of inpcb */ 658#define SCTP_ASOC_KILL_TIMEOUT 10 /* number of ms to retry kill of inpcb */ 659 |
665#define SCTP_DEF_MAX_INIT 8 666#define SCTP_DEF_MAX_SEND 10 667#define SCTP_DEF_MAX_PATH_RTX 5 | 660#define SCTP_DEF_MAX_INIT 8 661#define SCTP_DEF_MAX_SEND 10 662#define SCTP_DEF_MAX_PATH_RTX 5 663#define SCTP_DEF_PATH_PF_THRESHOLD SCTP_DEF_MAX_PATH_RTX |
668 669#define SCTP_DEF_PMTU_RAISE_SEC 600 /* 10 min between raise attempts */ 670 671 672/* How many streams I request initally by default */ 673#define SCTP_OSTREAM_INITIAL 10 674 675/* 676 * How many smallest_mtu's need to increase before a window update sack is 677 * sent (should be a power of 2). 678 */ 679/* Send window update (incr * this > hiwat). Should be a power of 2 */ 680#define SCTP_MINIMAL_RWND (4096) /* minimal rwnd */ 681 | 664 665#define SCTP_DEF_PMTU_RAISE_SEC 600 /* 10 min between raise attempts */ 666 667 668/* How many streams I request initally by default */ 669#define SCTP_OSTREAM_INITIAL 10 670 671/* 672 * How many smallest_mtu's need to increase before a window update sack is 673 * sent (should be a power of 2). 674 */ 675/* Send window update (incr * this > hiwat). Should be a power of 2 */ 676#define SCTP_MINIMAL_RWND (4096) /* minimal rwnd */ 677 |
682#define SCTP_ADDRMAX 24 | 678#define SCTP_ADDRMAX 16 |
683 684/* SCTP DEBUG Switch parameters */ 685#define SCTP_DEBUG_TIMER1 0x00000001 686#define SCTP_DEBUG_TIMER2 0x00000002 /* unused */ 687#define SCTP_DEBUG_TIMER3 0x00000004 /* unused */ 688#define SCTP_DEBUG_TIMER4 0x00000008 689#define SCTP_DEBUG_OUTPUT1 0x00000010 690#define SCTP_DEBUG_OUTPUT2 0x00000020 --- 386 unchanged lines hidden --- | 679 680/* SCTP DEBUG Switch parameters */ 681#define SCTP_DEBUG_TIMER1 0x00000001 682#define SCTP_DEBUG_TIMER2 0x00000002 /* unused */ 683#define SCTP_DEBUG_TIMER3 0x00000004 /* unused */ 684#define SCTP_DEBUG_TIMER4 0x00000008 685#define SCTP_DEBUG_OUTPUT1 0x00000010 686#define SCTP_DEBUG_OUTPUT2 0x00000020 --- 386 unchanged lines hidden --- |