blob: 5da599ff84a90f2932096dbc9518a70f075eafb6 [file] [log] [blame]
Thomas Gleixnerec8f24b2019-05-19 13:07:45 +01001# SPDX-License-Identifier: GPL-2.0-only
Linus Torvalds1da177e2005-04-16 15:20:36 -07002#
3# SCTP configuration
4#
5
Jan Engelhardt29e32cc2007-05-23 14:48:57 -07006menuconfig IP_SCTP
Kees Cook3bdb1a42013-02-12 16:24:56 -08007 tristate "The SCTP Protocol"
8 depends on INET
Linus Torvalds1da177e2005-04-16 15:20:36 -07009 depends on IPV6 || IPV6=n
Vlad Yasevichb7e0fe92007-11-29 09:53:52 -050010 select CRYPTO
11 select CRYPTO_HMAC
12 select CRYPTO_SHA1
Vlad Yasevich9ad09772007-12-16 14:06:41 -080013 select LIBCRC32C
Xin Long965ae442020-10-29 15:04:58 +080014 select NET_UDP_TUNNEL
Masahiro Yamadaa7f7f622020-06-14 01:50:22 +090015 help
Linus Torvalds1da177e2005-04-16 15:20:36 -070016 Stream Control Transmission Protocol
17
18 From RFC 2960 <http://www.ietf.org/rfc/rfc2960.txt>.
19
20 "SCTP is a reliable transport protocol operating on top of a
21 connectionless packet network such as IP. It offers the following
22 services to its users:
23
24 -- acknowledged error-free non-duplicated transfer of user data,
25 -- data fragmentation to conform to discovered path MTU size,
26 -- sequenced delivery of user messages within multiple streams,
27 with an option for order-of-arrival delivery of individual user
28 messages,
29 -- optional bundling of multiple user messages into a single SCTP
30 packet, and
31 -- network-level fault tolerance through supporting of multi-
32 homing at either or both ends of an association."
33
34 To compile this protocol support as a module, choose M here: the
Chris Packham9a233d32020-05-26 10:55:59 +120035 module will be called sctp. Debug messages are handled by the
Daniel Borkmannbb333812013-06-28 19:49:40 +020036 kernel's dynamic debugging framework.
Linus Torvalds1da177e2005-04-16 15:20:36 -070037
38 If in doubt, say N.
39
Jan Engelhardt29e32cc2007-05-23 14:48:57 -070040if IP_SCTP
41
Linus Torvalds1da177e2005-04-16 15:20:36 -070042config SCTP_DBG_OBJCNT
43 bool "SCTP: Debug object counts"
Florian Westphalc4e85f82008-07-18 23:03:44 -070044 depends on PROC_FS
Linus Torvalds1da177e2005-04-16 15:20:36 -070045 help
Stephen Hemmingeraa462252018-07-24 12:29:08 -070046 If you say Y, this will enable debugging support for counting the
47 type of objects that are currently allocated. This is useful for
Florian Westphalc4e85f82008-07-18 23:03:44 -070048 identifying memory leaks. This debug information can be viewed by
Linus Torvalds1da177e2005-04-16 15:20:36 -070049 'cat /proc/net/sctp/sctp_dbg_objcnt'
50
51 If unsure, say N
Neil Horman0d0863b2012-12-14 15:22:01 +000052choice
53 prompt "Default SCTP cookie HMAC encoding"
Alex Elder36a25de2013-01-07 10:47:46 -060054 default SCTP_DEFAULT_COOKIE_HMAC_MD5
Neil Horman0d0863b2012-12-14 15:22:01 +000055 help
56 This option sets the default sctp cookie hmac algorithm
57 when in doubt select 'md5'
58
59config SCTP_DEFAULT_COOKIE_HMAC_MD5
60 bool "Enable optional MD5 hmac cookie generation"
61 help
62 Enable optional MD5 hmac based SCTP cookie generation
63 select SCTP_COOKIE_HMAC_MD5
64
65config SCTP_DEFAULT_COOKIE_HMAC_SHA1
66 bool "Enable optional SHA1 hmac cookie generation"
67 help
68 Enable optional SHA1 hmac based SCTP cookie generation
69 select SCTP_COOKIE_HMAC_SHA1
70
71config SCTP_DEFAULT_COOKIE_HMAC_NONE
72 bool "Use no hmac alg in SCTP cookie generation"
73 help
74 Use no hmac algorithm in SCTP cookie generation
75
76endchoice
Linus Torvalds1da177e2005-04-16 15:20:36 -070077
Neil Horman3c681982012-10-24 09:20:03 +000078config SCTP_COOKIE_HMAC_MD5
79 bool "Enable optional MD5 hmac cookie generation"
Linus Torvalds1da177e2005-04-16 15:20:36 -070080 help
Neil Horman3c681982012-10-24 09:20:03 +000081 Enable optional MD5 hmac based SCTP cookie generation
Neil Horman3c681982012-10-24 09:20:03 +000082 select CRYPTO_HMAC if SCTP_COOKIE_HMAC_MD5
83 select CRYPTO_MD5 if SCTP_COOKIE_HMAC_MD5
Linus Torvalds1da177e2005-04-16 15:20:36 -070084
Neil Horman3c681982012-10-24 09:20:03 +000085config SCTP_COOKIE_HMAC_SHA1
86 bool "Enable optional SHA1 hmac cookie generation"
Linus Torvalds1da177e2005-04-16 15:20:36 -070087 help
Neil Horman3c681982012-10-24 09:20:03 +000088 Enable optional SHA1 hmac based SCTP cookie generation
Neil Horman3c681982012-10-24 09:20:03 +000089 select CRYPTO_HMAC if SCTP_COOKIE_HMAC_SHA1
90 select CRYPTO_SHA1 if SCTP_COOKIE_HMAC_SHA1
Linus Torvalds1da177e2005-04-16 15:20:36 -070091
Xin Long8f840e42016-04-14 15:35:33 +080092config INET_SCTP_DIAG
93 depends on INET_DIAG
94 def_tristate INET_DIAG
95
Jan Engelhardt29e32cc2007-05-23 14:48:57 -070096
97endif # IP_SCTP