Kconfig 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  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_LWIP202
  15. bool "lwIP v2.0.2"
  16. endchoice
  17. if RT_USING_LWIP202
  18. config RT_USING_LWIP_IPV6
  19. bool "IPV6 protocol"
  20. default n
  21. endif
  22. config RT_LWIP_IGMP
  23. bool "IGMP protocol"
  24. default y
  25. config RT_LWIP_ICMP
  26. bool "ICMP protocol"
  27. default y
  28. config RT_LWIP_SNMP
  29. bool "SNMP protocol"
  30. default n
  31. config RT_LWIP_DNS
  32. bool "Enble DNS for name resolution"
  33. select RT_LWIP_UDP
  34. default y
  35. config RT_LWIP_DHCP
  36. bool "Enable alloc ip address through DHCP"
  37. select RT_LWIP_UDP
  38. default y
  39. if RT_LWIP_DHCP
  40. config IP_SOF_BROADCAST
  41. int "SOF broadcast"
  42. default 1
  43. config IP_SOF_BROADCAST_RECV
  44. int "SOF broadcast recv"
  45. default 1
  46. endif
  47. menu "Static IPv4 Address"
  48. config RT_LWIP_IPADDR
  49. string "IPv4: IP address"
  50. default 192.168.1.30
  51. config RT_LWIP_GWADDR
  52. string "IPv4: Gateway address"
  53. default 192.168.1.1
  54. config RT_LWIP_MSKADDR
  55. string "IPv4: Mask address"
  56. default 255.255.255.0
  57. endmenu
  58. config RT_LWIP_UDP
  59. bool "UDP protocol"
  60. default y
  61. config RT_LWIP_TCP
  62. bool "TCP protocol"
  63. default y
  64. config RT_LWIP_RAW
  65. bool "RAW protocol"
  66. default n
  67. config RT_LWIP_PPP
  68. bool "PPP protocol"
  69. default n
  70. if RT_LWIP_PPP
  71. config RT_LWIP_PPPOE
  72. bool "PPPoE protocol"
  73. default n
  74. config RT_LWIP_PPPOS
  75. bool "PPPoS protocol"
  76. default n
  77. endif
  78. config RT_MEMP_NUM_NETCONN
  79. int "the number of struct netconns"
  80. default 8
  81. config RT_LWIP_PBUF_NUM
  82. int "the number of PBUF"
  83. default 16
  84. config RT_LWIP_RAW_PCB_NUM
  85. int "the number of raw connection"
  86. default 4
  87. config RT_LWIP_UDP_PCB_NUM
  88. int "the number of UDP socket"
  89. default 8 if RT_USING_DFS_NFS
  90. default 4
  91. if RT_LWIP_TCP
  92. config RT_LWIP_TCP_PCB_NUM
  93. int "the number of TCP socket"
  94. default 4
  95. config RT_LWIP_TCP_SEG_NUM
  96. int "the number of TCP segment"
  97. default 40
  98. config RT_LWIP_TCP_SND_BUF
  99. int "the size of send buffer"
  100. default 8196
  101. config RT_LWIP_TCP_WND
  102. int "the size of TCP send window"
  103. default 8196
  104. endif
  105. config RT_LWIP_TCPTHREAD_PRIORITY
  106. int "the priority level value of lwIP thread"
  107. default 10
  108. config RT_LWIP_TCPTHREAD_MBOX_SIZE
  109. int "the number of mail in the lwIP thread mailbox"
  110. default 8
  111. config RT_LWIP_TCPTHREAD_STACKSIZE
  112. int "the stack size of lwIP thread"
  113. default 1024
  114. config RT_LWIP_ETHTHREAD_PRIORITY
  115. int "the priority level value of ethernet thread"
  116. default 12
  117. config RT_LWIP_ETHTHREAD_STACKSIZE
  118. int "the stack size of ethernet thread"
  119. default 1024
  120. config RT_LWIP_ETHTHREAD_MBOX_SIZE
  121. int "the number of mail in the ethernet thread mailbox"
  122. default 8
  123. config RT_LWIP_REASSEMBLY_FRAG
  124. bool "Enable IP reassembly and frag"
  125. default n
  126. config LWIP_NETIF_STATUS_CALLBACK
  127. int "netif status callback"
  128. default 1
  129. config SO_REUSE
  130. int "Enable SO_REUSEADDR option"
  131. default 1
  132. config LWIP_SO_RCVTIMEO
  133. int "Enable receive timeout for sockets/netconns and SO_RCVTIMEO processing."
  134. default 1
  135. config LWIP_SO_SNDTIMEO
  136. int "Enable send timeout for sockets/netconns and SO_SNDTIMEO processing."
  137. default 1
  138. config LWIP_SO_RCVBUF
  139. int "Enable SO_RCVBUF processing"
  140. default 1
  141. endif
  142. endmenu
  143. source "$RTT_DIR/components/net/freemodbus/Kconfig"
  144. if RT_USING_LWIP
  145. config LWIP_USING_DHCPD
  146. bool "Enable DHCP server"
  147. default n
  148. config RT_USING_NETUTILS
  149. bool "Enable net utils"
  150. default n
  151. endif
  152. endmenu