Kconfig 9.3 KB

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