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 |
Xin Long | 965ae44 | 2020-10-29 15:04:58 +0800 | [diff] [blame] | 14 | select NET_UDP_TUNNEL |
Masahiro Yamada | a7f7f62 | 2020-06-14 01:50:22 +0900 | [diff] [blame] | 15 | help |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | 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 Packham | 9a233d3 | 2020-05-26 10:55:59 +1200 | [diff] [blame] | 35 | module will be called sctp. Debug messages are handled by the |
Daniel Borkmann | bb33381 | 2013-06-28 19:49:40 +0200 | [diff] [blame] | 36 | kernel's dynamic debugging framework. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 37 | |
| 38 | If in doubt, say N. |
| 39 | |
Jan Engelhardt | 29e32cc | 2007-05-23 14:48:57 -0700 | [diff] [blame] | 40 | if IP_SCTP |
| 41 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 42 | config SCTP_DBG_OBJCNT |
| 43 | bool "SCTP: Debug object counts" |
Florian Westphal | c4e85f8 | 2008-07-18 23:03:44 -0700 | [diff] [blame] | 44 | depends on PROC_FS |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 45 | help |
Stephen Hemminger | aa46225 | 2018-07-24 12:29:08 -0700 | [diff] [blame] | 46 | 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 Westphal | c4e85f8 | 2008-07-18 23:03:44 -0700 | [diff] [blame] | 48 | identifying memory leaks. This debug information can be viewed by |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 49 | 'cat /proc/net/sctp/sctp_dbg_objcnt' |
| 50 | |
| 51 | If unsure, say N |
Neil Horman | 0d0863b | 2012-12-14 15:22:01 +0000 | [diff] [blame] | 52 | choice |
| 53 | prompt "Default SCTP cookie HMAC encoding" |
Alex Elder | 36a25de | 2013-01-07 10:47:46 -0600 | [diff] [blame] | 54 | default SCTP_DEFAULT_COOKIE_HMAC_MD5 |
Neil Horman | 0d0863b | 2012-12-14 15:22:01 +0000 | [diff] [blame] | 55 | help |
| 56 | This option sets the default sctp cookie hmac algorithm |
| 57 | when in doubt select 'md5' |
| 58 | |
| 59 | config 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 | |
| 65 | config 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 | |
| 71 | config 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 | |
| 76 | endchoice |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 77 | |
Neil Horman | 3c68198 | 2012-10-24 09:20:03 +0000 | [diff] [blame] | 78 | config SCTP_COOKIE_HMAC_MD5 |
| 79 | bool "Enable optional MD5 hmac cookie generation" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 80 | help |
Neil Horman | 3c68198 | 2012-10-24 09:20:03 +0000 | [diff] [blame] | 81 | Enable optional MD5 hmac based SCTP cookie generation |
Neil Horman | 3c68198 | 2012-10-24 09:20:03 +0000 | [diff] [blame] | 82 | select CRYPTO_HMAC if SCTP_COOKIE_HMAC_MD5 |
| 83 | select CRYPTO_MD5 if SCTP_COOKIE_HMAC_MD5 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 84 | |
Neil Horman | 3c68198 | 2012-10-24 09:20:03 +0000 | [diff] [blame] | 85 | config SCTP_COOKIE_HMAC_SHA1 |
| 86 | bool "Enable optional SHA1 hmac cookie generation" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 87 | help |
Neil Horman | 3c68198 | 2012-10-24 09:20:03 +0000 | [diff] [blame] | 88 | Enable optional SHA1 hmac based SCTP cookie generation |
Neil Horman | 3c68198 | 2012-10-24 09:20:03 +0000 | [diff] [blame] | 89 | select CRYPTO_HMAC if SCTP_COOKIE_HMAC_SHA1 |
| 90 | select CRYPTO_SHA1 if SCTP_COOKIE_HMAC_SHA1 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 91 | |
Xin Long | 8f840e4 | 2016-04-14 15:35:33 +0800 | [diff] [blame] | 92 | config INET_SCTP_DIAG |
| 93 | depends on INET_DIAG |
| 94 | def_tristate INET_DIAG |
| 95 | |
Jan Engelhardt | 29e32cc | 2007-05-23 14:48:57 -0700 | [diff] [blame] | 96 | |
| 97 | endif # IP_SCTP |