xref: /OK3568_Linux_fs/kernel/net/sctp/Kconfig (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0-only
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# SCTP configuration
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun
6*4882a593Smuzhiyunmenuconfig IP_SCTP
7*4882a593Smuzhiyun	tristate "The SCTP Protocol"
8*4882a593Smuzhiyun	depends on INET
9*4882a593Smuzhiyun	depends on IPV6 || IPV6=n
10*4882a593Smuzhiyun	select CRYPTO
11*4882a593Smuzhiyun	select CRYPTO_HMAC
12*4882a593Smuzhiyun	select CRYPTO_SHA1
13*4882a593Smuzhiyun	select LIBCRC32C
14*4882a593Smuzhiyun	help
15*4882a593Smuzhiyun	  Stream Control Transmission Protocol
16*4882a593Smuzhiyun
17*4882a593Smuzhiyun	  From RFC 2960 <http://www.ietf.org/rfc/rfc2960.txt>.
18*4882a593Smuzhiyun
19*4882a593Smuzhiyun	  "SCTP is a reliable transport protocol operating on top of a
20*4882a593Smuzhiyun	  connectionless packet network such as IP.  It offers the following
21*4882a593Smuzhiyun	  services to its users:
22*4882a593Smuzhiyun
23*4882a593Smuzhiyun	  -- acknowledged error-free non-duplicated transfer of user data,
24*4882a593Smuzhiyun	  -- data fragmentation to conform to discovered path MTU size,
25*4882a593Smuzhiyun	  -- sequenced delivery of user messages within multiple streams,
26*4882a593Smuzhiyun	  with an option for order-of-arrival delivery of individual user
27*4882a593Smuzhiyun	  messages,
28*4882a593Smuzhiyun	  -- optional bundling of multiple user messages into a single SCTP
29*4882a593Smuzhiyun	  packet, and
30*4882a593Smuzhiyun	  -- network-level fault tolerance through supporting of multi-
31*4882a593Smuzhiyun	  homing at either or both ends of an association."
32*4882a593Smuzhiyun
33*4882a593Smuzhiyun	  To compile this protocol support as a module, choose M here: the
34*4882a593Smuzhiyun	  module will be called sctp. Debug messages are handled by the
35*4882a593Smuzhiyun	  kernel's dynamic debugging framework.
36*4882a593Smuzhiyun
37*4882a593Smuzhiyun	  If in doubt, say N.
38*4882a593Smuzhiyun
39*4882a593Smuzhiyunif IP_SCTP
40*4882a593Smuzhiyun
41*4882a593Smuzhiyunconfig SCTP_DBG_OBJCNT
42*4882a593Smuzhiyun	bool "SCTP: Debug object counts"
43*4882a593Smuzhiyun	depends on PROC_FS
44*4882a593Smuzhiyun	help
45*4882a593Smuzhiyun	  If you say Y, this will enable debugging support for counting the
46*4882a593Smuzhiyun	  type of objects that are currently allocated.  This is useful for
47*4882a593Smuzhiyun	  identifying memory leaks. This debug information can be viewed by
48*4882a593Smuzhiyun	  'cat /proc/net/sctp/sctp_dbg_objcnt'
49*4882a593Smuzhiyun
50*4882a593Smuzhiyun	  If unsure, say N
51*4882a593Smuzhiyunchoice
52*4882a593Smuzhiyun	prompt "Default SCTP cookie HMAC encoding"
53*4882a593Smuzhiyun	default SCTP_DEFAULT_COOKIE_HMAC_MD5
54*4882a593Smuzhiyun	help
55*4882a593Smuzhiyun	  This option sets the default sctp cookie hmac algorithm
56*4882a593Smuzhiyun	  when in doubt select 'md5'
57*4882a593Smuzhiyun
58*4882a593Smuzhiyunconfig SCTP_DEFAULT_COOKIE_HMAC_MD5
59*4882a593Smuzhiyun	bool "Enable optional MD5 hmac cookie generation"
60*4882a593Smuzhiyun	help
61*4882a593Smuzhiyun	  Enable optional MD5 hmac based SCTP cookie generation
62*4882a593Smuzhiyun	select SCTP_COOKIE_HMAC_MD5
63*4882a593Smuzhiyun
64*4882a593Smuzhiyunconfig SCTP_DEFAULT_COOKIE_HMAC_SHA1
65*4882a593Smuzhiyun	bool "Enable optional SHA1 hmac cookie generation"
66*4882a593Smuzhiyun	help
67*4882a593Smuzhiyun	  Enable optional SHA1 hmac based SCTP cookie generation
68*4882a593Smuzhiyun	select SCTP_COOKIE_HMAC_SHA1
69*4882a593Smuzhiyun
70*4882a593Smuzhiyunconfig SCTP_DEFAULT_COOKIE_HMAC_NONE
71*4882a593Smuzhiyun	bool "Use no hmac alg in SCTP cookie generation"
72*4882a593Smuzhiyun	help
73*4882a593Smuzhiyun	  Use no hmac algorithm in SCTP cookie generation
74*4882a593Smuzhiyun
75*4882a593Smuzhiyunendchoice
76*4882a593Smuzhiyun
77*4882a593Smuzhiyunconfig SCTP_COOKIE_HMAC_MD5
78*4882a593Smuzhiyun	bool "Enable optional MD5 hmac cookie generation"
79*4882a593Smuzhiyun	help
80*4882a593Smuzhiyun	  Enable optional MD5 hmac based SCTP cookie generation
81*4882a593Smuzhiyun	select CRYPTO_HMAC if SCTP_COOKIE_HMAC_MD5
82*4882a593Smuzhiyun	select CRYPTO_MD5 if SCTP_COOKIE_HMAC_MD5
83*4882a593Smuzhiyun
84*4882a593Smuzhiyunconfig SCTP_COOKIE_HMAC_SHA1
85*4882a593Smuzhiyun	bool "Enable optional SHA1 hmac cookie generation"
86*4882a593Smuzhiyun	help
87*4882a593Smuzhiyun	  Enable optional SHA1 hmac based SCTP cookie generation
88*4882a593Smuzhiyun	select CRYPTO_HMAC if SCTP_COOKIE_HMAC_SHA1
89*4882a593Smuzhiyun	select CRYPTO_SHA1 if SCTP_COOKIE_HMAC_SHA1
90*4882a593Smuzhiyun
91*4882a593Smuzhiyunconfig INET_SCTP_DIAG
92*4882a593Smuzhiyun	depends on INET_DIAG
93*4882a593Smuzhiyun	def_tristate INET_DIAG
94*4882a593Smuzhiyun
95*4882a593Smuzhiyun
96*4882a593Smuzhiyunendif # IP_SCTP
97