blob: d80bf1aebaed057c5c5497f5599f93105a425c53 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#
2# SCTP configuration
3#
4
Jan Engelhardt29e32cc2007-05-23 14:48:57 -07005menuconfig IP_SCTP
Kees Cook3bdb1a42013-02-12 16:24:56 -08006 tristate "The SCTP Protocol"
7 depends on INET
Linus Torvalds1da177e2005-04-16 15:20:36 -07008 depends on IPV6 || IPV6=n
Vlad Yasevichb7e0fe92007-11-29 09:53:52 -05009 select CRYPTO
10 select CRYPTO_HMAC
11 select CRYPTO_SHA1
Vlad Yasevich9ad09772007-12-16 14:06:41 -080012 select LIBCRC32C
Linus Torvalds1da177e2005-04-16 15:20:36 -070013 ---help---
14 Stream Control Transmission Protocol
15
16 From RFC 2960 <http://www.ietf.org/rfc/rfc2960.txt>.
17
18 "SCTP is a reliable transport protocol operating on top of a
19 connectionless packet network such as IP. It offers the following
20 services to its users:
21
22 -- acknowledged error-free non-duplicated transfer of user data,
23 -- data fragmentation to conform to discovered path MTU size,
24 -- sequenced delivery of user messages within multiple streams,
25 with an option for order-of-arrival delivery of individual user
26 messages,
27 -- optional bundling of multiple user messages into a single SCTP
28 packet, and
29 -- network-level fault tolerance through supporting of multi-
30 homing at either or both ends of an association."
31
32 To compile this protocol support as a module, choose M here: the
Daniel Borkmannbb333812013-06-28 19:49:40 +020033 module will be called sctp. Debug messages are handeled by the
34 kernel's dynamic debugging framework.
Linus Torvalds1da177e2005-04-16 15:20:36 -070035
36 If in doubt, say N.
37
Jan Engelhardt29e32cc2007-05-23 14:48:57 -070038if IP_SCTP
39
Wei Yongjun787a51a2010-04-30 22:41:09 -040040config NET_SCTPPROBE
41 tristate "SCTP: Association probing"
42 depends on PROC_FS && KPROBES
43 ---help---
44 This module allows for capturing the changes to SCTP association
45 state in response to incoming packets. It is used for debugging
46 SCTP congestion control algorithms. If you don't understand
47 what was just said, you don't need it: say N.
48
49 To compile this code as a module, choose M here: the
50 module will be called sctp_probe.
51
Daniel Borkmannbb333812013-06-28 19:49:40 +020052config SCTP_DBG_TSNS
53 bool "SCTP: Debug transactions"
Linus Torvalds1da177e2005-04-16 15:20:36 -070054 help
Daniel Borkmannbb333812013-06-28 19:49:40 +020055 If you say Y, this will enable transaction debugging, visible
56 from the kernel's dynamic debugging framework.
Linus Torvalds1da177e2005-04-16 15:20:36 -070057
58 If unsure, say N. However, if you are running into problems, use
Daniel Borkmannbb333812013-06-28 19:49:40 +020059 this option to gather outqueue trace information.
Linus Torvalds1da177e2005-04-16 15:20:36 -070060
61config SCTP_DBG_OBJCNT
62 bool "SCTP: Debug object counts"
Florian Westphalc4e85f82008-07-18 23:03:44 -070063 depends on PROC_FS
Linus Torvalds1da177e2005-04-16 15:20:36 -070064 help
65 If you say Y, this will enable debugging support for counting the
66 type of objects that are currently allocated. This is useful for
Florian Westphalc4e85f82008-07-18 23:03:44 -070067 identifying memory leaks. This debug information can be viewed by
Linus Torvalds1da177e2005-04-16 15:20:36 -070068 'cat /proc/net/sctp/sctp_dbg_objcnt'
69
70 If unsure, say N
Neil Horman0d0863b2012-12-14 15:22:01 +000071choice
72 prompt "Default SCTP cookie HMAC encoding"
Alex Elder36a25de2013-01-07 10:47:46 -060073 default SCTP_DEFAULT_COOKIE_HMAC_MD5
Neil Horman0d0863b2012-12-14 15:22:01 +000074 help
75 This option sets the default sctp cookie hmac algorithm
76 when in doubt select 'md5'
77
78config SCTP_DEFAULT_COOKIE_HMAC_MD5
79 bool "Enable optional MD5 hmac cookie generation"
80 help
81 Enable optional MD5 hmac based SCTP cookie generation
82 select SCTP_COOKIE_HMAC_MD5
83
84config SCTP_DEFAULT_COOKIE_HMAC_SHA1
85 bool "Enable optional SHA1 hmac cookie generation"
86 help
87 Enable optional SHA1 hmac based SCTP cookie generation
88 select SCTP_COOKIE_HMAC_SHA1
89
90config SCTP_DEFAULT_COOKIE_HMAC_NONE
91 bool "Use no hmac alg in SCTP cookie generation"
92 help
93 Use no hmac algorithm in SCTP cookie generation
94
95endchoice
Linus Torvalds1da177e2005-04-16 15:20:36 -070096
Neil Horman3c681982012-10-24 09:20:03 +000097config SCTP_COOKIE_HMAC_MD5
98 bool "Enable optional MD5 hmac cookie generation"
Linus Torvalds1da177e2005-04-16 15:20:36 -070099 help
Neil Horman3c681982012-10-24 09:20:03 +0000100 Enable optional MD5 hmac based SCTP cookie generation
Neil Horman3c681982012-10-24 09:20:03 +0000101 select CRYPTO_HMAC if SCTP_COOKIE_HMAC_MD5
102 select CRYPTO_MD5 if SCTP_COOKIE_HMAC_MD5
Linus Torvalds1da177e2005-04-16 15:20:36 -0700103
Neil Horman3c681982012-10-24 09:20:03 +0000104config SCTP_COOKIE_HMAC_SHA1
105 bool "Enable optional SHA1 hmac cookie generation"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700106 help
Neil Horman3c681982012-10-24 09:20:03 +0000107 Enable optional SHA1 hmac based SCTP cookie generation
Neil Horman3c681982012-10-24 09:20:03 +0000108 select CRYPTO_HMAC if SCTP_COOKIE_HMAC_SHA1
109 select CRYPTO_SHA1 if SCTP_COOKIE_HMAC_SHA1
Linus Torvalds1da177e2005-04-16 15:20:36 -0700110
Jan Engelhardt29e32cc2007-05-23 14:48:57 -0700111
112endif # IP_SCTP