Deleted Added
full compact
sctp_constants.h (170138) sctp_constants.h (170181)
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.

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

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
31/* $KAME: sctp_constants.h,v 1.17 2005/03/06 16:04:17 itojun Exp $ */
32
33#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.

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

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
31/* $KAME: sctp_constants.h,v 1.17 2005/03/06 16:04:17 itojun Exp $ */
32
33#include <sys/cdefs.h>
34__FBSDID("$FreeBSD: head/sys/netinet/sctp_constants.h 170138 2007-05-30 17:39:45Z rrs $");
34__FBSDID("$FreeBSD: head/sys/netinet/sctp_constants.h 170181 2007-06-01 11:19:54Z rrs $");
35
36#ifndef __sctp_constants_h__
37#define __sctp_constants_h__
38
39/* Number of packets to get before sack sent by default */
40#define SCTP_DEFAULT_SACK_FREQ 2
41
42/* Address limit - This variable is calculated

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

56 * about 500 bytes slack for misc things in the cookie.
57 */
58#define SCTP_ADDRESS_LIMIT 1080
59
60/* Number of addresses where we just skip the counting */
61#define SCTP_COUNT_LIMIT 40
62
63#define SCTP_ZERO_COPY_TICK_DELAY (((100 * hz) + 999) / 1000)
35
36#ifndef __sctp_constants_h__
37#define __sctp_constants_h__
38
39/* Number of packets to get before sack sent by default */
40#define SCTP_DEFAULT_SACK_FREQ 2
41
42/* Address limit - This variable is calculated

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

56 * about 500 bytes slack for misc things in the cookie.
57 */
58#define SCTP_ADDRESS_LIMIT 1080
59
60/* Number of addresses where we just skip the counting */
61#define SCTP_COUNT_LIMIT 40
62
63#define SCTP_ZERO_COPY_TICK_DELAY (((100 * hz) + 999) / 1000)
64#define SCTP_ZERO_COPY_SENDQ_TICK_DELAY (((100 * hz) + 999) / 1000)
64
65/* Number of ticks to delay before running
66 * iterator on an address change.
67 */
68#define SCTP_ADDRESS_TICK_DELAY 2
69
70#define SCTP_VERSION_STRING "KAME-BSD 1.1"
71/* #define SCTP_AUDITING_ENABLED 1 used for debug/auditing */

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

540#define SCTP_TIMER_TYPE_EVENTWAKE 13
541#define SCTP_TIMER_TYPE_STRRESET 14
542#define SCTP_TIMER_TYPE_INPKILL 15
543#define SCTP_TIMER_TYPE_ITERATOR 16
544#define SCTP_TIMER_TYPE_EARLYFR 17
545#define SCTP_TIMER_TYPE_ASOCKILL 18
546#define SCTP_TIMER_TYPE_ADDR_WQ 19
547#define SCTP_TIMER_TYPE_ZERO_COPY 20
65
66/* Number of ticks to delay before running
67 * iterator on an address change.
68 */
69#define SCTP_ADDRESS_TICK_DELAY 2
70
71#define SCTP_VERSION_STRING "KAME-BSD 1.1"
72/* #define SCTP_AUDITING_ENABLED 1 used for debug/auditing */

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

541#define SCTP_TIMER_TYPE_EVENTWAKE 13
542#define SCTP_TIMER_TYPE_STRRESET 14
543#define SCTP_TIMER_TYPE_INPKILL 15
544#define SCTP_TIMER_TYPE_ITERATOR 16
545#define SCTP_TIMER_TYPE_EARLYFR 17
546#define SCTP_TIMER_TYPE_ASOCKILL 18
547#define SCTP_TIMER_TYPE_ADDR_WQ 19
548#define SCTP_TIMER_TYPE_ZERO_COPY 20
549#define SCTP_TIMER_TYPE_ZCOPY_SENDQ 21
548/* add new timers here - and increment LAST */
550/* add new timers here - and increment LAST */
549#define SCTP_TIMER_TYPE_LAST 21
551#define SCTP_TIMER_TYPE_LAST 22
550
551#define SCTP_IS_TIMER_TYPE_VALID(t) (((t) > SCTP_TIMER_TYPE_NONE) && \
552 ((t) < SCTP_TIMER_TYPE_LAST))
553
554
555
556/*
557 * Number of ticks before the soxwakeup() event that is delayed is sent AFTER

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

680/* Send window update (incr * this > hiwat). Should be a power of 2 */
681#define SCTP_SCALE_OF_RWND_TO_UPD 4
682#define SCTP_MINIMAL_RWND (4096) /* minimal rwnd */
683
684#define SCTP_ADDRMAX 20
685
686/* SCTP DEBUG Switch parameters */
687#define SCTP_DEBUG_TIMER1 0x00000001
552
553#define SCTP_IS_TIMER_TYPE_VALID(t) (((t) > SCTP_TIMER_TYPE_NONE) && \
554 ((t) < SCTP_TIMER_TYPE_LAST))
555
556
557
558/*
559 * Number of ticks before the soxwakeup() event that is delayed is sent AFTER

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

682/* Send window update (incr * this > hiwat). Should be a power of 2 */
683#define SCTP_SCALE_OF_RWND_TO_UPD 4
684#define SCTP_MINIMAL_RWND (4096) /* minimal rwnd */
685
686#define SCTP_ADDRMAX 20
687
688/* SCTP DEBUG Switch parameters */
689#define SCTP_DEBUG_TIMER1 0x00000001
688#define SCTP_DEBUG_TIMER2 0x00000002
689#define SCTP_DEBUG_TIMER3 0x00000004
690#define SCTP_DEBUG_TIMER2 0x00000002 /* unused */
691#define SCTP_DEBUG_TIMER3 0x00000004 /* unused */
690#define SCTP_DEBUG_TIMER4 0x00000008
691#define SCTP_DEBUG_OUTPUT1 0x00000010
692#define SCTP_DEBUG_OUTPUT2 0x00000020
693#define SCTP_DEBUG_OUTPUT3 0x00000040
694#define SCTP_DEBUG_OUTPUT4 0x00000080
695#define SCTP_DEBUG_UTIL1 0x00000100
692#define SCTP_DEBUG_TIMER4 0x00000008
693#define SCTP_DEBUG_OUTPUT1 0x00000010
694#define SCTP_DEBUG_OUTPUT2 0x00000020
695#define SCTP_DEBUG_OUTPUT3 0x00000040
696#define SCTP_DEBUG_OUTPUT4 0x00000080
697#define SCTP_DEBUG_UTIL1 0x00000100
696#define SCTP_DEBUG_UTIL2 0x00000200
698#define SCTP_DEBUG_UTIL2 0x00000200 /* unused */
697#define SCTP_DEBUG_AUTH1 0x00000400
699#define SCTP_DEBUG_AUTH1 0x00000400
698#define SCTP_DEBUG_AUTH2 0x00000800
700#define SCTP_DEBUG_AUTH2 0x00000800 /* unused */
699#define SCTP_DEBUG_INPUT1 0x00001000
700#define SCTP_DEBUG_INPUT2 0x00002000
701#define SCTP_DEBUG_INPUT3 0x00004000
701#define SCTP_DEBUG_INPUT1 0x00001000
702#define SCTP_DEBUG_INPUT2 0x00002000
703#define SCTP_DEBUG_INPUT3 0x00004000
702#define SCTP_DEBUG_INPUT4 0x00008000
704#define SCTP_DEBUG_INPUT4 0x00008000 /* unused */
703#define SCTP_DEBUG_ASCONF1 0x00010000
704#define SCTP_DEBUG_ASCONF2 0x00020000
705#define SCTP_DEBUG_ASCONF1 0x00010000
706#define SCTP_DEBUG_ASCONF2 0x00020000
705#define SCTP_DEBUG_OUTPUT5 0x00040000
706#define SCTP_DEBUG_XXX 0x00080000
707#define SCTP_DEBUG_OUTPUT5 0x00040000 /* unused */
708#define SCTP_DEBUG_XXX 0x00080000 /* unused */
707#define SCTP_DEBUG_PCB1 0x00100000
709#define SCTP_DEBUG_PCB1 0x00100000
708#define SCTP_DEBUG_PCB2 0x00200000
710#define SCTP_DEBUG_PCB2 0x00200000 /* unused */
709#define SCTP_DEBUG_PCB3 0x00400000
711#define SCTP_DEBUG_PCB3 0x00400000
710#define SCTP_DEBUG_PCB4 0x00800000
712#define SCTP_DEBUG_PCB4 0x00800000 /* unused */
711#define SCTP_DEBUG_INDATA1 0x01000000
713#define SCTP_DEBUG_INDATA1 0x01000000
712#define SCTP_DEBUG_INDATA2 0x02000000
713#define SCTP_DEBUG_INDATA3 0x04000000
714#define SCTP_DEBUG_INDATA4 0x08000000
715#define SCTP_DEBUG_USRREQ1 0x10000000
716#define SCTP_DEBUG_USRREQ2 0x20000000
714#define SCTP_DEBUG_INDATA2 0x02000000 /* unused */
715#define SCTP_DEBUG_INDATA3 0x04000000 /* unused */
716#define SCTP_DEBUG_INDATA4 0x08000000 /* unused */
717#define SCTP_DEBUG_USRREQ1 0x10000000 /* unused */
718#define SCTP_DEBUG_USRREQ2 0x20000000 /* unused */
717#define SCTP_DEBUG_PEEL1 0x40000000
719#define SCTP_DEBUG_PEEL1 0x40000000
718#define SCTP_DEBUG_XXXXX 0x80000000
720#define SCTP_DEBUG_XXXXX 0x80000000 /* unused */
719#define SCTP_DEBUG_ALL 0x7ff3ffff
720#define SCTP_DEBUG_NOISY 0x00040000
721
722/* What sender needs to see to avoid SWS or we consider peers rwnd 0 */
723#define SCTP_SWS_SENDER_DEF 1420
724
725/*
726 * SWS is scaled to the sb_hiwat of the socket. A value of 2 is hiwat/4, 1

--- 327 unchanged lines hidden ---
721#define SCTP_DEBUG_ALL 0x7ff3ffff
722#define SCTP_DEBUG_NOISY 0x00040000
723
724/* What sender needs to see to avoid SWS or we consider peers rwnd 0 */
725#define SCTP_SWS_SENDER_DEF 1420
726
727/*
728 * SWS is scaled to the sb_hiwat of the socket. A value of 2 is hiwat/4, 1

--- 327 unchanged lines hidden ---