Thomas Gleixner | ec8f24b | 2019-05-19 13:07:45 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-only |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | # |
| 3 | # SCTP configuration |
| 4 | # |
| 5 | |
Jan Engelhardt | 29e32cc | 2007-05-23 14:48:57 -0700 | [diff] [blame] | 6 | menuconfig IP_SCTP |
Kees Cook | 3bdb1a4 | 2013-02-12 16:24:56 -0800 | [diff] [blame] | 7 | tristate "The SCTP Protocol" |
| 8 | depends on INET |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 9 | depends on IPV6 || IPV6=n |
Vlad Yasevich | b7e0fe9 | 2007-11-29 09:53:52 -0500 | [diff] [blame] | 10 | select CRYPTO |
| 11 | select CRYPTO_HMAC |
| 12 | select CRYPTO_SHA1 |
Vlad Yasevich | 9ad0977 | 2007-12-16 14:06:41 -0800 | [diff] [blame] | 13 | select LIBCRC32C |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 14 | ---help--- |
| 15 | Stream Control Transmission Protocol |
| 16 | |
| 17 | From RFC 2960 <http://www.ietf.org/rfc/rfc2960.txt>. |
| 18 | |
| 19 | "SCTP is a reliable transport protocol operating on top of a |
| 20 | connectionless packet network such as IP. It offers the following |
| 21 | services to its users: |
| 22 | |
| 23 | -- acknowledged error-free non-duplicated transfer of user data, |
| 24 | -- data fragmentation to conform to discovered path MTU size, |
| 25 | -- sequenced delivery of user messages within multiple streams, |
| 26 | with an option for order-of-arrival delivery of individual user |
| 27 | messages, |
| 28 | -- optional bundling of multiple user messages into a single SCTP |
| 29 | packet, and |
| 30 | -- network-level fault tolerance through supporting of multi- |
| 31 | homing at either or both ends of an association." |
| 32 | |
| 33 | To compile this protocol support as a module, choose M here: the |
Daniel Borkmann | bb33381 | 2013-06-28 19:49:40 +0200 | [diff] [blame] | 34 | module will be called sctp. Debug messages are handeled by the |
| 35 | kernel's dynamic debugging framework. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 36 | |
| 37 | If in doubt, say N. |
| 38 | |
Jan Engelhardt | 29e32cc | 2007-05-23 14:48:57 -0700 | [diff] [blame] | 39 | if IP_SCTP |
| 40 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 41 | config SCTP_DBG_OBJCNT |
| 42 | bool "SCTP: Debug object counts" |
Florian Westphal | c4e85f8 | 2008-07-18 23:03:44 -0700 | [diff] [blame] | 43 | depends on PROC_FS |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 44 | help |
Stephen Hemminger | aa46225 | 2018-07-24 12:29:08 -0700 | [diff] [blame] | 45 | If you say Y, this will enable debugging support for counting the |
| 46 | type of objects that are currently allocated. This is useful for |
Florian Westphal | c4e85f8 | 2008-07-18 23:03:44 -0700 | [diff] [blame] | 47 | identifying memory leaks. This debug information can be viewed by |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 48 | 'cat /proc/net/sctp/sctp_dbg_objcnt' |
| 49 | |
| 50 | If unsure, say N |
Neil Horman | 0d0863b | 2012-12-14 15:22:01 +0000 | [diff] [blame] | 51 | choice |
| 52 | prompt "Default SCTP cookie HMAC encoding" |
Alex Elder | 36a25de | 2013-01-07 10:47:46 -0600 | [diff] [blame] | 53 | default SCTP_DEFAULT_COOKIE_HMAC_MD5 |
Neil Horman | 0d0863b | 2012-12-14 15:22:01 +0000 | [diff] [blame] | 54 | help |
| 55 | This option sets the default sctp cookie hmac algorithm |
| 56 | when in doubt select 'md5' |
| 57 | |
| 58 | config SCTP_DEFAULT_COOKIE_HMAC_MD5 |
| 59 | bool "Enable optional MD5 hmac cookie generation" |
| 60 | help |
| 61 | Enable optional MD5 hmac based SCTP cookie generation |
| 62 | select SCTP_COOKIE_HMAC_MD5 |
| 63 | |
| 64 | config SCTP_DEFAULT_COOKIE_HMAC_SHA1 |
| 65 | bool "Enable optional SHA1 hmac cookie generation" |
| 66 | help |
| 67 | Enable optional SHA1 hmac based SCTP cookie generation |
| 68 | select SCTP_COOKIE_HMAC_SHA1 |
| 69 | |
| 70 | config SCTP_DEFAULT_COOKIE_HMAC_NONE |
| 71 | bool "Use no hmac alg in SCTP cookie generation" |
| 72 | help |
| 73 | Use no hmac algorithm in SCTP cookie generation |
| 74 | |
| 75 | endchoice |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 76 | |
Neil Horman | 3c68198 | 2012-10-24 09:20:03 +0000 | [diff] [blame] | 77 | config SCTP_COOKIE_HMAC_MD5 |
| 78 | bool "Enable optional MD5 hmac cookie generation" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 79 | help |
Neil Horman | 3c68198 | 2012-10-24 09:20:03 +0000 | [diff] [blame] | 80 | Enable optional MD5 hmac based SCTP cookie generation |
Neil Horman | 3c68198 | 2012-10-24 09:20:03 +0000 | [diff] [blame] | 81 | select CRYPTO_HMAC if SCTP_COOKIE_HMAC_MD5 |
| 82 | select CRYPTO_MD5 if SCTP_COOKIE_HMAC_MD5 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 83 | |
Neil Horman | 3c68198 | 2012-10-24 09:20:03 +0000 | [diff] [blame] | 84 | config SCTP_COOKIE_HMAC_SHA1 |
| 85 | bool "Enable optional SHA1 hmac cookie generation" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 86 | help |
Neil Horman | 3c68198 | 2012-10-24 09:20:03 +0000 | [diff] [blame] | 87 | Enable optional SHA1 hmac based SCTP cookie generation |
Neil Horman | 3c68198 | 2012-10-24 09:20:03 +0000 | [diff] [blame] | 88 | select CRYPTO_HMAC if SCTP_COOKIE_HMAC_SHA1 |
| 89 | select CRYPTO_SHA1 if SCTP_COOKIE_HMAC_SHA1 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 90 | |
Xin Long | 8f840e4 | 2016-04-14 15:35:33 +0800 | [diff] [blame] | 91 | config INET_SCTP_DIAG |
| 92 | depends on INET_DIAG |
| 93 | def_tristate INET_DIAG |
| 94 | |
Jan Engelhardt | 29e32cc | 2007-05-23 14:48:57 -0700 | [diff] [blame] | 95 | |
| 96 | endif # IP_SCTP |