Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | # |
| 2 | # SCTP configuration |
| 3 | # |
| 4 | |
Jan Engelhardt | 29e32cc | 2007-05-23 14:48:57 -0700 | [diff] [blame] | 5 | menuconfig IP_SCTP |
Kees Cook | 3bdb1a4 | 2013-02-12 16:24:56 -0800 | [diff] [blame] | 6 | tristate "The SCTP Protocol" |
| 7 | depends on INET |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 8 | depends on IPV6 || IPV6=n |
Vlad Yasevich | b7e0fe9 | 2007-11-29 09:53:52 -0500 | [diff] [blame] | 9 | select CRYPTO |
| 10 | select CRYPTO_HMAC |
| 11 | select CRYPTO_SHA1 |
Vlad Yasevich | 9ad0977 | 2007-12-16 14:06:41 -0800 | [diff] [blame] | 12 | select LIBCRC32C |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | ---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 Borkmann | bb33381 | 2013-06-28 19:49:40 +0200 | [diff] [blame] | 33 | module will be called sctp. Debug messages are handeled by the |
| 34 | kernel's dynamic debugging framework. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 35 | |
| 36 | If in doubt, say N. |
| 37 | |
Jan Engelhardt | 29e32cc | 2007-05-23 14:48:57 -0700 | [diff] [blame] | 38 | if IP_SCTP |
| 39 | |
Wei Yongjun | 787a51a | 2010-04-30 22:41:09 -0400 | [diff] [blame] | 40 | config 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 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 52 | config SCTP_DBG_OBJCNT |
| 53 | bool "SCTP: Debug object counts" |
Florian Westphal | c4e85f8 | 2008-07-18 23:03:44 -0700 | [diff] [blame] | 54 | depends on PROC_FS |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 55 | help |
| 56 | If you say Y, this will enable debugging support for counting the |
| 57 | type of objects that are currently allocated. This is useful for |
Florian Westphal | c4e85f8 | 2008-07-18 23:03:44 -0700 | [diff] [blame] | 58 | identifying memory leaks. This debug information can be viewed by |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 59 | 'cat /proc/net/sctp/sctp_dbg_objcnt' |
| 60 | |
| 61 | If unsure, say N |
Neil Horman | 0d0863b | 2012-12-14 15:22:01 +0000 | [diff] [blame] | 62 | choice |
| 63 | prompt "Default SCTP cookie HMAC encoding" |
Alex Elder | 36a25de | 2013-01-07 10:47:46 -0600 | [diff] [blame] | 64 | default SCTP_DEFAULT_COOKIE_HMAC_MD5 |
Neil Horman | 0d0863b | 2012-12-14 15:22:01 +0000 | [diff] [blame] | 65 | help |
| 66 | This option sets the default sctp cookie hmac algorithm |
| 67 | when in doubt select 'md5' |
| 68 | |
| 69 | config SCTP_DEFAULT_COOKIE_HMAC_MD5 |
| 70 | bool "Enable optional MD5 hmac cookie generation" |
| 71 | help |
| 72 | Enable optional MD5 hmac based SCTP cookie generation |
| 73 | select SCTP_COOKIE_HMAC_MD5 |
| 74 | |
| 75 | config SCTP_DEFAULT_COOKIE_HMAC_SHA1 |
| 76 | bool "Enable optional SHA1 hmac cookie generation" |
| 77 | help |
| 78 | Enable optional SHA1 hmac based SCTP cookie generation |
| 79 | select SCTP_COOKIE_HMAC_SHA1 |
| 80 | |
| 81 | config SCTP_DEFAULT_COOKIE_HMAC_NONE |
| 82 | bool "Use no hmac alg in SCTP cookie generation" |
| 83 | help |
| 84 | Use no hmac algorithm in SCTP cookie generation |
| 85 | |
| 86 | endchoice |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 87 | |
Neil Horman | 3c68198 | 2012-10-24 09:20:03 +0000 | [diff] [blame] | 88 | config SCTP_COOKIE_HMAC_MD5 |
| 89 | bool "Enable optional MD5 hmac cookie generation" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 90 | help |
Neil Horman | 3c68198 | 2012-10-24 09:20:03 +0000 | [diff] [blame] | 91 | Enable optional MD5 hmac based SCTP cookie generation |
Neil Horman | 3c68198 | 2012-10-24 09:20:03 +0000 | [diff] [blame] | 92 | select CRYPTO_HMAC if SCTP_COOKIE_HMAC_MD5 |
| 93 | select CRYPTO_MD5 if SCTP_COOKIE_HMAC_MD5 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 94 | |
Neil Horman | 3c68198 | 2012-10-24 09:20:03 +0000 | [diff] [blame] | 95 | config SCTP_COOKIE_HMAC_SHA1 |
| 96 | bool "Enable optional SHA1 hmac cookie generation" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 97 | help |
Neil Horman | 3c68198 | 2012-10-24 09:20:03 +0000 | [diff] [blame] | 98 | Enable optional SHA1 hmac based SCTP cookie generation |
Neil Horman | 3c68198 | 2012-10-24 09:20:03 +0000 | [diff] [blame] | 99 | select CRYPTO_HMAC if SCTP_COOKIE_HMAC_SHA1 |
| 100 | select CRYPTO_SHA1 if SCTP_COOKIE_HMAC_SHA1 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 101 | |
Xin Long | 8f840e4 | 2016-04-14 15:35:33 +0800 | [diff] [blame] | 102 | config INET_SCTP_DIAG |
| 103 | depends on INET_DIAG |
| 104 | def_tristate INET_DIAG |
| 105 | |
Jan Engelhardt | 29e32cc | 2007-05-23 14:48:57 -0700 | [diff] [blame] | 106 | |
| 107 | endif # IP_SCTP |