Kconfig 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  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 n
  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 4
  90. if RT_LWIP_TCP
  91. config RT_LWIP_TCP_PCB_NUM
  92. int "the number of TCP socket"
  93. default 4
  94. config RT_LWIP_TCP_SEG_NUM
  95. int "the number of TCP segment"
  96. default 40
  97. config RT_LWIP_TCP_SND_BUF
  98. int "the size of send buffer"
  99. default 8196
  100. config RT_LWIP_TCP_WND
  101. int "the size of TCP send window"
  102. default 8196
  103. endif
  104. config RT_LWIP_TCPTHREAD_PRIORITY
  105. int "the priority level value of lwIP thread"
  106. default 10
  107. config RT_LWIP_TCPTHREAD_MBOX_SIZE
  108. int "the number of mail in the lwIP thread mailbox"
  109. default 8
  110. config RT_LWIP_TCPTHREAD_STACKSIZE
  111. int "the stack size of lwIP thread"
  112. default 1024
  113. config RT_LWIP_ETHTHREAD_PRIORITY
  114. int "the priority level value of ethernet thread"
  115. default 12
  116. config RT_LWIP_ETHTHREAD_STACKSIZE
  117. int "the stack size of ethernet thread"
  118. default 1024
  119. config RT_LWIP_ETHTHREAD_MBOX_SIZE
  120. int "the number of mail in the ethernet thread mailbox"
  121. default 8
  122. config RT_LWIP_REASSEMBLY_FRAG
  123. bool "Enable IP reassembly and frag"
  124. default n
  125. config LWIP_NETIF_STATUS_CALLBACK
  126. int "netif status callback"
  127. default 1
  128. config SO_REUSE
  129. int "Enable SO_REUSEADDR option"
  130. default 1
  131. config LWIP_SO_RCVTIMEO
  132. int "Enable receive timeout for sockets/netconns and SO_RCVTIMEO processing."
  133. default 1
  134. config LWIP_SO_SNDTIMEO
  135. int "Enable send timeout for sockets/netconns and SO_SNDTIMEO processing."
  136. default 1
  137. config LWIP_SO_RCVBUF
  138. int "Enable SO_RCVBUF processing"
  139. default 1
  140. endif
  141. endmenu
  142. source "$RTT_DIR/components/net/freemodbus/Kconfig"
  143. if RT_USING_LWIP
  144. config LWIP_USING_DHCPD
  145. bool "Enable DHCP server"
  146. default n
  147. config RT_USING_NETUTILS
  148. bool "Enable net utils"
  149. default n
  150. endif
  151. endmenu