Kconfig.projbuild 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. menu "Example Connection Configuration"
  2. config EXAMPLE_CONNECT_LWIP_TAPIF
  3. bool "connect using lwip to linux tap interface"
  4. depends on IDF_TARGET_LINUX && ESP_NETIF_TCPIP_LWIP
  5. default y
  6. if EXAMPLE_CONNECT_LWIP_TAPIF
  7. config EXAMPLE_CONNECT_IPV4
  8. bool
  9. depends on LWIP_IPV4
  10. default y
  11. config EXAMPLE_CONNECT_IPV6
  12. bool "Obtain IPv6 address"
  13. depends on LWIP_IPV6
  14. default y
  15. help
  16. Set to true to setup link local address and wait until it's valid
  17. config EXAMPLE_CONNECT_WAIT_FOR_IP
  18. bool "run DHCP and wait for IP"
  19. default y
  20. config EXAMPLE_CONNECT_TAPIF_IP_ADDR
  21. string "Static IP address"
  22. default "192.168.5.100"
  23. depends on EXAMPLE_CONNECT_IPV4 && !EXAMPLE_CONNECT_WAIT_FOR_IP
  24. help
  25. Set static IP address.
  26. config EXAMPLE_CONNECT_TAPIF_NETMASK
  27. string "Static netmask address"
  28. default "255.255.255.0"
  29. depends on EXAMPLE_CONNECT_IPV4 && !EXAMPLE_CONNECT_WAIT_FOR_IP
  30. help
  31. Set static netmask address.
  32. config EXAMPLE_CONNECT_TAPIF_GW
  33. string "Static gateway address"
  34. default "192.168.5.1"
  35. depends on EXAMPLE_CONNECT_IPV4 && !EXAMPLE_CONNECT_WAIT_FOR_IP
  36. help
  37. Set static gateway address.
  38. config EXAMPLE_CONNECT_TAPIF_OUT_LOSS
  39. int "Percentage of packets to be dropped on transmission"
  40. default 0
  41. range 0 100
  42. help
  43. Set non-zero number simulate packet loss when sending data.
  44. Number represents probability between 0 and 100%
  45. config EXAMPLE_CONNECT_TAPIF_IN_LOSS
  46. int "Percentage of packets to be dropped on reception"
  47. default 0
  48. range 0 100
  49. help
  50. Set non-zero number simulate packet loss when receiving data.
  51. Number represents probability between 0 and 100%
  52. endif
  53. endmenu