KConfig 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. menu "Network stack"
  2. menu "light weight TCP/IP stack"
  3. config RT_USING_LWIP
  4. bool "Enable lwIP stack"
  5. default n
  6. if RT_USING_LWIP
  7. choice
  8. prompt "lwIP version"
  9. default RT_USING_LWIP141
  10. help
  11. Select the lwIP version
  12. config RT_USING_LWIP141
  13. bool "lwIP v1.4.1"
  14. config RT_USING_LWIP200
  15. bool "lwIP v2.0.0"
  16. config RT_USING_LWIP202
  17. bool "lwIP v2.0.2"
  18. endchoice
  19. config RT_LWIP_IGMP
  20. bool "IGMP protocol"
  21. default n
  22. config RT_LWIP_ICMP
  23. bool "ICMP protocol"
  24. default y
  25. config RT_LWIP_SNMP
  26. bool "SNMP protocol"
  27. default n
  28. config RT_LWIP_DNS
  29. bool "Enble DNS for name resolution"
  30. select RT_LWIP_UDP
  31. default y
  32. config RT_LWIP_DHCP
  33. bool "Enable alloc ip address through DHCP"
  34. select RT_LWIP_UDP
  35. default y
  36. if RT_LWIP_DHCP
  37. config IP_SOF_BROADCAST
  38. int "SOF broadcast"
  39. default 1
  40. config IP_SOF_BROADCAST_RECV
  41. int "SOF broadcast recv"
  42. default 1
  43. config LWIP_USING_DHCPD
  44. bool "Enable DHCP server"
  45. default y
  46. endif
  47. config RT_LWIP_UDP
  48. bool "UDP protocol"
  49. default y
  50. config RT_LWIP_TCP
  51. bool "TCP protocol"
  52. default y
  53. config RT_LWIP_RAW
  54. bool "RAW protocol"
  55. default n
  56. config RT_LWIP_PPP
  57. bool "PPP protocol"
  58. default n
  59. config RT_LWIP_PPPOE
  60. bool "PPPoE protocol"
  61. default n
  62. config RT_LWIP_PPPOS
  63. bool "PPPoS protocol"
  64. default n
  65. config RT_LWIP_PBUF_NUM
  66. int "the number of PBUF"
  67. default 16
  68. config RT_LWIP_RAW_PCB_NUM
  69. int "the number of raw connection"
  70. default 4
  71. config RT_LWIP_UDP_PCB_NUM
  72. int "the number of UDP socket"
  73. default 4
  74. if RT_LWIP_TCP
  75. config RT_LWIP_TCP_PCB_NUM
  76. int "the number of TCP socket"
  77. default 4
  78. config RT_LWIP_TCP_SEG_NUM
  79. int "the number of TCP segment"
  80. default 40
  81. config RT_LWIP_TCP_SND_BUF
  82. int "the size of send buffer"
  83. default 8196
  84. config RT_LWIP_TCP_WND
  85. int "the size of TCP send window"
  86. default 8196
  87. endif
  88. config RT_LWIP_TCPTHREAD_PRIORITY
  89. int "the priority level value of lwIP thread"
  90. default 10
  91. config RT_LWIP_TCPTHREAD_MBOX_SIZE
  92. int "the number of mail in the lwIP thread mailbox"
  93. default 8
  94. config RT_LWIP_TCPTHREAD_STACKSIZE
  95. int "the stack size of lwIP thread"
  96. default 1024
  97. config RT_LWIP_ETHTHREAD_PRIORITY
  98. int "the priority level value of ethernet thread"
  99. default 12
  100. config RT_LWIP_ETHTHREAD_STACKSIZE
  101. int "the stack size of ethernet thread"
  102. default 1024
  103. config RT_LWIP_ETHTHREAD_MBOX_SIZE
  104. int "the number of mail in the ethernet thread mailbox"
  105. default 8
  106. config RT_LWIP_REASSEMBLY_FRAG
  107. bool "Enable IP reassembly and frag"
  108. default n
  109. config LWIP_NETIF_STATUS_CALLBACK
  110. int "netif status callback"
  111. default 1
  112. config SO_REUSE
  113. int "Enable SO_REUSEADDR option"
  114. default 1
  115. config LWIP_SO_RCVTIMEO
  116. int "Enable receive timeout for sockets/netconns and SO_RCVTIMEO processing."
  117. default 1
  118. config LWIP_SO_SNDTIMEO
  119. int "Enable send timeout for sockets/netconns and SO_SNDTIMEO processing."
  120. default 1
  121. config LWIP_SO_RCVBUF
  122. int "Enable SO_RCVBUF processing"
  123. default 1
  124. endif
  125. endmenu
  126. source "$RTT_DIR/components/net/freemodbus/KConfig"
  127. if RT_USING_LWIP
  128. config RT_USING_NETUTILS
  129. bool "Enable net utils"
  130. default n
  131. endif
  132. endmenu