Kconfig 9.9 KB

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