Kconfig 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355
  1. menu "Network stack"
  2. menu "light weight TCP/IP stack"
  3. config RT_USING_LWIP
  4. bool "Enable lwIP stack"
  5. select RT_USING_DEVICE
  6. default n
  7. if RT_USING_LWIP
  8. choice
  9. prompt "lwIP version"
  10. default RT_USING_LWIP202
  11. help
  12. Select the lwIP version
  13. config RT_USING_LWIP141
  14. bool "lwIP v1.4.1"
  15. config RT_USING_LWIP202
  16. bool "lwIP v2.0.2"
  17. endchoice
  18. if RT_USING_LWIP202
  19. config RT_USING_LWIP_IPV6
  20. bool "IPV6 protocol"
  21. default n
  22. endif
  23. config RT_LWIP_IGMP
  24. bool "IGMP protocol"
  25. default y
  26. config RT_LWIP_ICMP
  27. bool "ICMP protocol"
  28. default y
  29. config RT_LWIP_SNMP
  30. bool "SNMP protocol"
  31. default n
  32. config RT_LWIP_DNS
  33. bool "Enble DNS for name resolution"
  34. select RT_LWIP_UDP
  35. default y
  36. config RT_LWIP_DHCP
  37. bool "Enable alloc ip address through DHCP"
  38. select RT_LWIP_UDP
  39. default y
  40. if RT_LWIP_DHCP
  41. config IP_SOF_BROADCAST
  42. int "SOF broadcast"
  43. default 1
  44. config IP_SOF_BROADCAST_RECV
  45. int "SOF broadcast recv"
  46. default 1
  47. endif
  48. menu "Static IPv4 Address"
  49. config RT_LWIP_IPADDR
  50. string "IPv4: IP address"
  51. default 192.168.1.30
  52. config RT_LWIP_GWADDR
  53. string "IPv4: Gateway address"
  54. default 192.168.1.1
  55. config RT_LWIP_MSKADDR
  56. string "IPv4: Mask address"
  57. default 255.255.255.0
  58. endmenu
  59. config RT_LWIP_UDP
  60. bool "UDP protocol"
  61. default y
  62. config RT_LWIP_TCP
  63. bool "TCP protocol"
  64. default y
  65. config RT_LWIP_RAW
  66. bool "RAW protocol"
  67. default n
  68. config RT_LWIP_PPP
  69. bool "PPP protocol"
  70. default n
  71. if RT_LWIP_PPP
  72. config RT_LWIP_PPPOE
  73. bool "PPPoE protocol"
  74. default n
  75. config RT_LWIP_PPPOS
  76. bool "PPPoS protocol"
  77. default n
  78. endif
  79. config RT_MEMP_NUM_NETCONN
  80. int "the number of struct netconns"
  81. default 8
  82. config RT_LWIP_PBUF_NUM
  83. int "the number of PBUF"
  84. default 16
  85. config RT_LWIP_RAW_PCB_NUM
  86. int "the number of raw connection"
  87. default 4
  88. config RT_LWIP_UDP_PCB_NUM
  89. int "the number of UDP socket"
  90. default 8 if RT_USING_DFS_NFS
  91. default 4
  92. if RT_LWIP_TCP
  93. config RT_LWIP_TCP_PCB_NUM
  94. int "the number of TCP socket"
  95. default 4
  96. config RT_LWIP_TCP_SEG_NUM
  97. int "the number of TCP segment"
  98. default 40
  99. config RT_LWIP_TCP_SND_BUF
  100. int "the size of send buffer"
  101. default 8196
  102. config RT_LWIP_TCP_WND
  103. int "the size of TCP send window"
  104. default 8196
  105. endif
  106. config RT_LWIP_TCPTHREAD_PRIORITY
  107. int "the priority level value of lwIP thread"
  108. default 10
  109. config RT_LWIP_TCPTHREAD_MBOX_SIZE
  110. int "the number of mail in the lwIP thread mailbox"
  111. default 8
  112. config RT_LWIP_TCPTHREAD_STACKSIZE
  113. int "the stack size of lwIP thread"
  114. default 1024
  115. config LWIP_NO_RX_THREAD
  116. bool "Not use Rx thread"
  117. default n
  118. config LWIP_NO_TX_THREAD
  119. bool "Not use Tx thread"
  120. default n
  121. config RT_LWIP_ETHTHREAD_PRIORITY
  122. int "the priority level value of ethernet thread"
  123. default 12
  124. config RT_LWIP_ETHTHREAD_STACKSIZE
  125. int "the stack size of ethernet thread"
  126. default 1024
  127. config RT_LWIP_ETHTHREAD_MBOX_SIZE
  128. int "the number of mail in the ethernet thread mailbox"
  129. default 8
  130. config RT_LWIP_REASSEMBLY_FRAG
  131. bool "Enable IP reassembly and frag"
  132. default n
  133. config LWIP_NETIF_STATUS_CALLBACK
  134. int "netif status callback"
  135. default 1
  136. config SO_REUSE
  137. int "Enable SO_REUSEADDR option"
  138. default 1
  139. config LWIP_SO_RCVTIMEO
  140. int "Enable receive timeout for sockets/netconns and SO_RCVTIMEO processing."
  141. default 1
  142. config LWIP_SO_SNDTIMEO
  143. int "Enable send timeout for sockets/netconns and SO_SNDTIMEO processing."
  144. default 1
  145. config LWIP_SO_RCVBUF
  146. int "Enable SO_RCVBUF processing"
  147. default 1
  148. config RT_LWIP_NETIF_LOOPBACK
  149. bool "Enable netif loopback"
  150. default n
  151. config LWIP_NETIF_LOOPBACK
  152. int
  153. default 1 if RT_LWIP_NETIF_LOOPBACK
  154. default 0 if !RT_LWIP_NETIF_LOOPBACK
  155. menuconfig RT_LWIP_DEBUG
  156. bool "Enable lwIP Debugging Options"
  157. default n
  158. if RT_LWIP_DEBUG
  159. config RT_LWIP_SYS_DEBUG
  160. bool "Enable Debugging of sys.c"
  161. default n
  162. config RT_LWIP_ETHARP_DEBUG
  163. bool "Enable Debugging of etharp.c"
  164. default n
  165. config RT_LWIP_PPP_DEBUG
  166. bool "Enable Debugging of PPP"
  167. default n
  168. config RT_LWIP_MEM_DEBUG
  169. bool "Enable Debugging of mem.c"
  170. default n
  171. config RT_LWIP_MEMP_DEBUG
  172. bool "Enable Debugging of memp.c"
  173. default n
  174. config RT_LWIP_PBUF_DEBUG
  175. bool "Enable Debugging of pbuf.c"
  176. default n
  177. config RT_LWIP_API_LIB_DEBUG
  178. bool "Enable Debugging of api_lib.c"
  179. default n
  180. config RT_LWIP_API_MSG_DEBUG
  181. bool "Enable Debugging of api_msg.c"
  182. default n
  183. config RT_LWIP_TCPIP_DEBUG
  184. bool "Enable Debugging of tcpip.c"
  185. default n
  186. config RT_LWIP_NETIF_DEBUG
  187. bool "Enable Debugging of netif.c"
  188. default n
  189. config RT_LWIP_SOCKETS_DEBUG
  190. bool "Enable Debugging of sockets.c"
  191. default n
  192. config RT_LWIP_DNS_DEBUG
  193. bool "Enable Debugging of DNS"
  194. default n
  195. config RT_LWIP_AUTOIP_DEBUG
  196. bool "Enable Debugging of autoip.c"
  197. default n
  198. config RT_LWIP_DHCP_DEBUG
  199. bool "Enable Debugging of dhcp.c"
  200. default n
  201. config RT_LWIP_IP_DEBUG
  202. bool "Enable Debugging of IP"
  203. default n
  204. config RT_LWIP_IP_REASS_DEBUG
  205. bool "Enable debugging in ip_frag.c for both frag & reass"
  206. default n
  207. config RT_LWIP_ICMP_DEBUG
  208. bool "Enable Debugging of icmp.c"
  209. default n
  210. config RT_LWIP_IGMP_DEBUG
  211. bool "Enable Debugging of igmp.c"
  212. default n
  213. config RT_LWIP_UDP_DEBUG
  214. bool "Enable Debugging of UDP"
  215. default n
  216. config RT_LWIP_TCP_DEBUG
  217. bool "Enable Debugging of TCP"
  218. default n
  219. config RT_LWIP_TCP_INPUT_DEBUG
  220. bool "Enable Debugging of tcp_in.c"
  221. default n
  222. config RT_LWIP_TCP_OUTPUT_DEBUG
  223. bool "Enable Debugging of tcp_out.c"
  224. default n
  225. config RT_LWIP_TCP_RTO_DEBUG
  226. bool "Enable debugging in TCP for retransmit"
  227. default n
  228. config RT_LWIP_TCP_CWND_DEBUG
  229. bool "Enable debugging for TCP congestion window"
  230. default n
  231. config RT_LWIP_TCP_WND_DEBUG
  232. bool "Enable debugging in tcp_in.c for window updating"
  233. default n
  234. config RT_LWIP_TCP_FR_DEBUG
  235. bool "Enable debugging in tcp_in.c for fast retransmit"
  236. default n
  237. config RT_LWIP_TCP_QLEN_DEBUG
  238. bool "Enable debugging for TCP queue lengths"
  239. default n
  240. config RT_LWIP_TCP_RST_DEBUG
  241. bool "Enable debugging for TCP with the RST message"
  242. default n
  243. endif
  244. endif
  245. endmenu
  246. source "$RTT_DIR/components/net/freemodbus/Kconfig"
  247. if RT_USING_LWIP
  248. config LWIP_USING_DHCPD
  249. bool "Enable DHCP server"
  250. default n
  251. if LWIP_USING_DHCPD
  252. config DHCPD_SERVER_IP
  253. string "DHCPD SERVER IP address"
  254. default 192.168.169.1
  255. config DHCPD_USING_ROUTER
  256. bool "alloc gateway ip for router"
  257. default y
  258. config LWIP_USING_CUSTOMER_DNS_SERVER
  259. bool "Enable customer DNS server config"
  260. default n
  261. if LWIP_USING_CUSTOMER_DNS_SERVER
  262. config DHCP_DNS_SERVER_IP
  263. string "Custom DNS server IP address"
  264. default 1.1.1.1
  265. endif
  266. endif
  267. endif
  268. endmenu