xref: /openbmc/linux/net/sctp/Kconfig (revision ec8f24b7)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
21da177e4SLinus Torvalds#
31da177e4SLinus Torvalds# SCTP configuration
41da177e4SLinus Torvalds#
51da177e4SLinus Torvalds
629e32ccdSJan Engelhardtmenuconfig IP_SCTP
73bdb1a44SKees Cook	tristate "The SCTP Protocol"
83bdb1a44SKees Cook	depends on INET
91da177e4SLinus Torvalds	depends on IPV6 || IPV6=n
10b7e0fe9fSVlad Yasevich	select CRYPTO
11b7e0fe9fSVlad Yasevich	select CRYPTO_HMAC
12b7e0fe9fSVlad Yasevich	select CRYPTO_SHA1
139ad0977fSVlad Yasevich	select LIBCRC32C
141da177e4SLinus Torvalds	---help---
151da177e4SLinus Torvalds	  Stream Control Transmission Protocol
161da177e4SLinus Torvalds
171da177e4SLinus Torvalds	  From RFC 2960 <http://www.ietf.org/rfc/rfc2960.txt>.
181da177e4SLinus Torvalds
191da177e4SLinus Torvalds	  "SCTP is a reliable transport protocol operating on top of a
201da177e4SLinus Torvalds	  connectionless packet network such as IP.  It offers the following
211da177e4SLinus Torvalds	  services to its users:
221da177e4SLinus Torvalds
231da177e4SLinus Torvalds	  -- acknowledged error-free non-duplicated transfer of user data,
241da177e4SLinus Torvalds	  -- data fragmentation to conform to discovered path MTU size,
251da177e4SLinus Torvalds	  -- sequenced delivery of user messages within multiple streams,
261da177e4SLinus Torvalds	  with an option for order-of-arrival delivery of individual user
271da177e4SLinus Torvalds	  messages,
281da177e4SLinus Torvalds	  -- optional bundling of multiple user messages into a single SCTP
291da177e4SLinus Torvalds	  packet, and
301da177e4SLinus Torvalds	  -- network-level fault tolerance through supporting of multi-
311da177e4SLinus Torvalds	  homing at either or both ends of an association."
321da177e4SLinus Torvalds
331da177e4SLinus Torvalds	  To compile this protocol support as a module, choose M here: the
34bb33381dSDaniel Borkmann	  module will be called sctp. Debug messages are handeled by the
35bb33381dSDaniel Borkmann	  kernel's dynamic debugging framework.
361da177e4SLinus Torvalds
371da177e4SLinus Torvalds	  If in doubt, say N.
381da177e4SLinus Torvalds
3929e32ccdSJan Engelhardtif IP_SCTP
4029e32ccdSJan Engelhardt
411da177e4SLinus Torvaldsconfig SCTP_DBG_OBJCNT
421da177e4SLinus Torvalds	bool "SCTP: Debug object counts"
43c4e85f82SFlorian Westphal	depends on PROC_FS
441da177e4SLinus Torvalds	help
451da177e4SLinus Torvalds	  If you say Y, this will enable debugging support for counting the
461da177e4SLinus Torvalds	  type of objects that are currently allocated.  This is useful for
47c4e85f82SFlorian Westphal	  identifying memory leaks. This debug information can be viewed by
481da177e4SLinus Torvalds	  'cat /proc/net/sctp/sctp_dbg_objcnt'
491da177e4SLinus Torvalds
501da177e4SLinus Torvalds	  If unsure, say N
510d0863b0SNeil Hormanchoice
520d0863b0SNeil Horman	prompt "Default SCTP cookie HMAC encoding"
5336a25de2SAlex Elder	default SCTP_DEFAULT_COOKIE_HMAC_MD5
540d0863b0SNeil Horman	help
550d0863b0SNeil Horman	  This option sets the default sctp cookie hmac algorithm
560d0863b0SNeil Horman	  when in doubt select 'md5'
570d0863b0SNeil Horman
580d0863b0SNeil Hormanconfig SCTP_DEFAULT_COOKIE_HMAC_MD5
590d0863b0SNeil Horman	bool "Enable optional MD5 hmac cookie generation"
600d0863b0SNeil Horman	help
610d0863b0SNeil Horman	  Enable optional MD5 hmac based SCTP cookie generation
620d0863b0SNeil Horman	select SCTP_COOKIE_HMAC_MD5
630d0863b0SNeil Horman
640d0863b0SNeil Hormanconfig SCTP_DEFAULT_COOKIE_HMAC_SHA1
650d0863b0SNeil Horman	bool "Enable optional SHA1 hmac cookie generation"
660d0863b0SNeil Horman	help
670d0863b0SNeil Horman	  Enable optional SHA1 hmac based SCTP cookie generation
680d0863b0SNeil Horman	select SCTP_COOKIE_HMAC_SHA1
690d0863b0SNeil Horman
700d0863b0SNeil Hormanconfig SCTP_DEFAULT_COOKIE_HMAC_NONE
710d0863b0SNeil Horman	bool "Use no hmac alg in SCTP cookie generation"
720d0863b0SNeil Horman	help
730d0863b0SNeil Horman	  Use no hmac algorithm in SCTP cookie generation
740d0863b0SNeil Horman
750d0863b0SNeil Hormanendchoice
761da177e4SLinus Torvalds
773c68198eSNeil Hormanconfig SCTP_COOKIE_HMAC_MD5
783c68198eSNeil Horman	bool "Enable optional MD5 hmac cookie generation"
791da177e4SLinus Torvalds	help
803c68198eSNeil Horman	  Enable optional MD5 hmac based SCTP cookie generation
813c68198eSNeil Horman	select CRYPTO_HMAC if SCTP_COOKIE_HMAC_MD5
823c68198eSNeil Horman	select CRYPTO_MD5 if SCTP_COOKIE_HMAC_MD5
831da177e4SLinus Torvalds
843c68198eSNeil Hormanconfig SCTP_COOKIE_HMAC_SHA1
853c68198eSNeil Horman	bool "Enable optional SHA1 hmac cookie generation"
861da177e4SLinus Torvalds	help
873c68198eSNeil Horman	  Enable optional SHA1 hmac based SCTP cookie generation
883c68198eSNeil Horman	select CRYPTO_HMAC if SCTP_COOKIE_HMAC_SHA1
893c68198eSNeil Horman	select CRYPTO_SHA1 if SCTP_COOKIE_HMAC_SHA1
901da177e4SLinus Torvalds
918f840e47SXin Longconfig INET_SCTP_DIAG
928f840e47SXin Long	depends on INET_DIAG
938f840e47SXin Long	def_tristate INET_DIAG
948f840e47SXin Long
9529e32ccdSJan Engelhardt
9629e32ccdSJan Engelhardtendif # IP_SCTP
97