Deleted Added
full compact
sctp.h (171440) sctp.h (171477)
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 171440 2007-07-14 09:36:28Z rrs $");
33__FBSDID("$FreeBSD: head/sys/netinet/sctp.h 171477 2007-07-17 20:58:26Z rrs $");
34
35#ifndef _NETINET_SCTP_H_
36#define _NETINET_SCTP_H_
37
38#include <sys/types.h>
39
40/*
41 * SCTP protocol - RFC2960.

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

287#define SCTP_CAUSE_UNRECOG_PARAM 0x0008
288#define SCTP_CAUSE_NO_USER_DATA 0x0009
289#define SCTP_CAUSE_COOKIE_IN_SHUTDOWN 0x000a
290#define SCTP_CAUSE_RESTART_W_NEWADDR 0x000b
291#define SCTP_CAUSE_USER_INITIATED_ABT 0x000c
292#define SCTP_CAUSE_PROTOCOL_VIOLATION 0x000d
293
294/* Error causes from draft-ietf-tsvwg-addip-sctp */
34
35#ifndef _NETINET_SCTP_H_
36#define _NETINET_SCTP_H_
37
38#include <sys/types.h>
39
40/*
41 * SCTP protocol - RFC2960.

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

287#define SCTP_CAUSE_UNRECOG_PARAM 0x0008
288#define SCTP_CAUSE_NO_USER_DATA 0x0009
289#define SCTP_CAUSE_COOKIE_IN_SHUTDOWN 0x000a
290#define SCTP_CAUSE_RESTART_W_NEWADDR 0x000b
291#define SCTP_CAUSE_USER_INITIATED_ABT 0x000c
292#define SCTP_CAUSE_PROTOCOL_VIOLATION 0x000d
293
294/* Error causes from draft-ietf-tsvwg-addip-sctp */
295#define SCTP_CAUSE_DELETING_LAST_ADDR 0x0100
296#define SCTP_CAUSE_RESOURCE_SHORTAGE 0x0101
297#define SCTP_CAUSE_DELETING_SRC_ADDR 0x0102
298#define SCTP_CAUSE_ILLEGAL_ASCONF_ACK 0x0103
299#define SCTP_CAUSE_REQUEST_REFUSED 0x0104
295#define SCTP_CAUSE_DELETING_LAST_ADDR 0xa0
296#define SCTP_CAUSE_RESOURCE_SHORTAGE 0xa1
297#define SCTP_CAUSE_DELETING_SRC_ADDR 0xa2
298#define SCTP_CAUSE_ILLEGAL_ASCONF_ACK 0xa3
299#define SCTP_CAUSE_REQUEST_REFUSED 0xa4
300
301/* Error causes from draft-ietf-tsvwg-sctp-auth */
302#define SCTP_CAUSE_UNSUPPORTED_HMACID 0x0105
303
304/*
305 * error cause parameters (user visisble)
306 */
307 struct sctp_error_cause {

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

491
492/* This dictates the size of the packet
493 * collection buffer. This only applies
494 * if SCTP_PACKET_LOGGING is enabled in
495 * your config.
496 */
497#define SCTP_PACKET_LOG_SIZE 65536
498
300
301/* Error causes from draft-ietf-tsvwg-sctp-auth */
302#define SCTP_CAUSE_UNSUPPORTED_HMACID 0x0105
303
304/*
305 * error cause parameters (user visisble)
306 */
307 struct sctp_error_cause {

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

491
492/* This dictates the size of the packet
493 * collection buffer. This only applies
494 * if SCTP_PACKET_LOGGING is enabled in
495 * your config.
496 */
497#define SCTP_PACKET_LOG_SIZE 65536
498
499/* Maximum delays and such a user can set for options that
500 * take ms.
501 */
502#define SCTP_MAX_SACK_DELAY 500 /* per RFC4960 */
503#define SCTP_MAX_HB_INTERVAL 14400000 /* 4 hours in ms */
504#define SCTP_MAX_COOKIE_LIFE 3600000 /* 1 hour in ms */
505
506
499/* Types of logging/KTR tracing that can be enabled via the
500 * sysctl net.inet.sctp.sctp_logging. You must also enable
501 * SUBSYS tracing.
502 * Note that you must have the SCTP option in the kernel
503 * to enable these as well.
504 */
505#define SCTP_BLK_LOGGING_ENABLE 0x00000001
506#define SCTP_CWND_MONITOR_ENABLE 0x00000002

--- 24 unchanged lines hidden ---
507/* Types of logging/KTR tracing that can be enabled via the
508 * sysctl net.inet.sctp.sctp_logging. You must also enable
509 * SUBSYS tracing.
510 * Note that you must have the SCTP option in the kernel
511 * to enable these as well.
512 */
513#define SCTP_BLK_LOGGING_ENABLE 0x00000001
514#define SCTP_CWND_MONITOR_ENABLE 0x00000002

--- 24 unchanged lines hidden ---