KConfig 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  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. config LWIP_USING_DHCPD
  47. bool "Enable DHCP server"
  48. default n
  49. endif
  50. menu "Static IPv4 Address"
  51. config RT_LWIP_IPADDR
  52. string "IPv4: IP address"
  53. default 192.168.1.30
  54. config RT_LWIP_GWADDR
  55. string "IPv4: Gateway address"
  56. default 192.168.1.1
  57. config RT_LWIP_MSKADDR
  58. string "IPv4: Mask address"
  59. default 255.255.255.0
  60. endmenu
  61. config RT_LWIP_UDP
  62. bool "UDP protocol"
  63. default y
  64. config RT_LWIP_TCP
  65. bool "TCP protocol"
  66. default y
  67. config RT_LWIP_RAW
  68. bool "RAW protocol"
  69. default n
  70. config RT_LWIP_PPP
  71. bool "PPP protocol"
  72. default n
  73. config RT_LWIP_PPPOE
  74. bool "PPPoE protocol"
  75. default n
  76. config RT_LWIP_PPPOS
  77. bool "PPPoS protocol"
  78. default n
  79. config RT_LWIP_PBUF_NUM
  80. int "the number of PBUF"
  81. default 16
  82. config RT_LWIP_RAW_PCB_NUM
  83. int "the number of raw connection"
  84. default 4
  85. config RT_LWIP_UDP_PCB_NUM
  86. int "the number of UDP socket"
  87. default 4
  88. if RT_LWIP_TCP
  89. config RT_LWIP_TCP_PCB_NUM
  90. int "the number of TCP socket"
  91. default 4
  92. config RT_LWIP_TCP_SEG_NUM
  93. int "the number of TCP segment"
  94. default 40
  95. config RT_LWIP_TCP_SND_BUF
  96. int "the size of send buffer"
  97. default 8196
  98. config RT_LWIP_TCP_WND
  99. int "the size of TCP send window"
  100. default 8196
  101. endif
  102. config RT_LWIP_TCPTHREAD_PRIORITY
  103. int "the priority level value of lwIP thread"
  104. default 10
  105. config RT_LWIP_TCPTHREAD_MBOX_SIZE
  106. int "the number of mail in the lwIP thread mailbox"
  107. default 8
  108. config RT_LWIP_TCPTHREAD_STACKSIZE
  109. int "the stack size of lwIP thread"
  110. default 1024
  111. config RT_LWIP_ETHTHREAD_PRIORITY
  112. int "the priority level value of ethernet thread"
  113. default 12
  114. config RT_LWIP_ETHTHREAD_STACKSIZE
  115. int "the stack size of ethernet thread"
  116. default 1024
  117. config RT_LWIP_ETHTHREAD_MBOX_SIZE
  118. int "the number of mail in the ethernet thread mailbox"
  119. default 8
  120. config RT_LWIP_REASSEMBLY_FRAG
  121. bool "Enable IP reassembly and frag"
  122. default n
  123. config LWIP_NETIF_STATUS_CALLBACK
  124. int "netif status callback"
  125. default 1
  126. config SO_REUSE
  127. int "Enable SO_REUSEADDR option"
  128. default 1
  129. config LWIP_SO_RCVTIMEO
  130. int "Enable receive timeout for sockets/netconns and SO_RCVTIMEO processing."
  131. default 1
  132. config LWIP_SO_SNDTIMEO
  133. int "Enable send timeout for sockets/netconns and SO_SNDTIMEO processing."
  134. default 1
  135. config LWIP_SO_RCVBUF
  136. int "Enable SO_RCVBUF processing"
  137. default 1
  138. endif
  139. endmenu
  140. source "$RTT_DIR/components/net/freemodbus/KConfig"
  141. if RT_USING_LWIP
  142. config RT_USING_NETUTILS
  143. bool "Enable net utils"
  144. default n
  145. endif
  146. endmenu