xref: /openbmc/linux/net/sctp/Kconfig (revision 965ae444)
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
14*965ae444SXin Long	select NET_UDP_TUNNEL
15a7f7f624SMasahiro Yamada	help
161da177e4SLinus Torvalds	  Stream Control Transmission Protocol
171da177e4SLinus Torvalds
181da177e4SLinus Torvalds	  From RFC 2960 <http://www.ietf.org/rfc/rfc2960.txt>.
191da177e4SLinus Torvalds
201da177e4SLinus Torvalds	  "SCTP is a reliable transport protocol operating on top of a
211da177e4SLinus Torvalds	  connectionless packet network such as IP.  It offers the following
221da177e4SLinus Torvalds	  services to its users:
231da177e4SLinus Torvalds
241da177e4SLinus Torvalds	  -- acknowledged error-free non-duplicated transfer of user data,
251da177e4SLinus Torvalds	  -- data fragmentation to conform to discovered path MTU size,
261da177e4SLinus Torvalds	  -- sequenced delivery of user messages within multiple streams,
271da177e4SLinus Torvalds	  with an option for order-of-arrival delivery of individual user
281da177e4SLinus Torvalds	  messages,
291da177e4SLinus Torvalds	  -- optional bundling of multiple user messages into a single SCTP
301da177e4SLinus Torvalds	  packet, and
311da177e4SLinus Torvalds	  -- network-level fault tolerance through supporting of multi-
321da177e4SLinus Torvalds	  homing at either or both ends of an association."
331da177e4SLinus Torvalds
341da177e4SLinus Torvalds	  To compile this protocol support as a module, choose M here: the
359a233d32SChris Packham	  module will be called sctp. Debug messages are handled by the
36bb33381dSDaniel Borkmann	  kernel's dynamic debugging framework.
371da177e4SLinus Torvalds
381da177e4SLinus Torvalds	  If in doubt, say N.
391da177e4SLinus Torvalds
4029e32ccdSJan Engelhardtif IP_SCTP
4129e32ccdSJan Engelhardt
421da177e4SLinus Torvaldsconfig SCTP_DBG_OBJCNT
431da177e4SLinus Torvalds	bool "SCTP: Debug object counts"
44c4e85f82SFlorian Westphal	depends on PROC_FS
451da177e4SLinus Torvalds	help
461da177e4SLinus Torvalds	  If you say Y, this will enable debugging support for counting the
471da177e4SLinus Torvalds	  type of objects that are currently allocated.  This is useful for
48c4e85f82SFlorian Westphal	  identifying memory leaks. This debug information can be viewed by
491da177e4SLinus Torvalds	  'cat /proc/net/sctp/sctp_dbg_objcnt'
501da177e4SLinus Torvalds
511da177e4SLinus Torvalds	  If unsure, say N
520d0863b0SNeil Hormanchoice
530d0863b0SNeil Horman	prompt "Default SCTP cookie HMAC encoding"
5436a25de2SAlex Elder	default SCTP_DEFAULT_COOKIE_HMAC_MD5
550d0863b0SNeil Horman	help
560d0863b0SNeil Horman	  This option sets the default sctp cookie hmac algorithm
570d0863b0SNeil Horman	  when in doubt select 'md5'
580d0863b0SNeil Horman
590d0863b0SNeil Hormanconfig SCTP_DEFAULT_COOKIE_HMAC_MD5
600d0863b0SNeil Horman	bool "Enable optional MD5 hmac cookie generation"
610d0863b0SNeil Horman	help
620d0863b0SNeil Horman	  Enable optional MD5 hmac based SCTP cookie generation
630d0863b0SNeil Horman	select SCTP_COOKIE_HMAC_MD5
640d0863b0SNeil Horman
650d0863b0SNeil Hormanconfig SCTP_DEFAULT_COOKIE_HMAC_SHA1
660d0863b0SNeil Horman	bool "Enable optional SHA1 hmac cookie generation"
670d0863b0SNeil Horman	help
680d0863b0SNeil Horman	  Enable optional SHA1 hmac based SCTP cookie generation
690d0863b0SNeil Horman	select SCTP_COOKIE_HMAC_SHA1
700d0863b0SNeil Horman
710d0863b0SNeil Hormanconfig SCTP_DEFAULT_COOKIE_HMAC_NONE
720d0863b0SNeil Horman	bool "Use no hmac alg in SCTP cookie generation"
730d0863b0SNeil Horman	help
740d0863b0SNeil Horman	  Use no hmac algorithm in SCTP cookie generation
750d0863b0SNeil Horman
760d0863b0SNeil Hormanendchoice
771da177e4SLinus Torvalds
783c68198eSNeil Hormanconfig SCTP_COOKIE_HMAC_MD5
793c68198eSNeil Horman	bool "Enable optional MD5 hmac cookie generation"
801da177e4SLinus Torvalds	help
813c68198eSNeil Horman	  Enable optional MD5 hmac based SCTP cookie generation
823c68198eSNeil Horman	select CRYPTO_HMAC if SCTP_COOKIE_HMAC_MD5
833c68198eSNeil Horman	select CRYPTO_MD5 if SCTP_COOKIE_HMAC_MD5
841da177e4SLinus Torvalds
853c68198eSNeil Hormanconfig SCTP_COOKIE_HMAC_SHA1
863c68198eSNeil Horman	bool "Enable optional SHA1 hmac cookie generation"
871da177e4SLinus Torvalds	help
883c68198eSNeil Horman	  Enable optional SHA1 hmac based SCTP cookie generation
893c68198eSNeil Horman	select CRYPTO_HMAC if SCTP_COOKIE_HMAC_SHA1
903c68198eSNeil Horman	select CRYPTO_SHA1 if SCTP_COOKIE_HMAC_SHA1
911da177e4SLinus Torvalds
928f840e47SXin Longconfig INET_SCTP_DIAG
938f840e47SXin Long	depends on INET_DIAG
948f840e47SXin Long	def_tristate INET_DIAG
958f840e47SXin Long
9629e32ccdSJan Engelhardt
9729e32ccdSJan Engelhardtendif # IP_SCTP
98