Kconfig 2.8 KB

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