Kconfig.projbuild 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. menu "Example Configuration"
  2. choice EXAMPLE_IP_MODE
  3. prompt "Multicast IP type"
  4. help
  5. Example can multicast IPV4, IPV6, or both.
  6. config EXAMPLE_IPV4_V6
  7. bool "IPV4 & IPV6"
  8. select EXAMPLE_IPV4
  9. select EXAMPLE_IPV6
  10. config EXAMPLE_IPV4_ONLY
  11. bool "IPV4"
  12. select EXAMPLE_IPV4
  13. config EXAMPLE_IPV6_ONLY
  14. bool "IPV6"
  15. select EXAMPLE_IPV6
  16. endchoice
  17. config EXAMPLE_IPV4
  18. bool
  19. config EXAMPLE_IPV6
  20. bool
  21. select EXAMPLE_CONNECT_IPV6 if IDF_TARGET_ESP32
  22. config EXAMPLE_MULTICAST_IPV4_ADDR
  23. string "Multicast IPV4 Address (send & receive)"
  24. default "232.10.11.12"
  25. depends on EXAMPLE_IPV4
  26. help
  27. IPV4 multicast address. Example will both send to and listen to this address.
  28. config EXAMPLE_MULTICAST_IPV6_ADDR
  29. string "Multicast IPV6 Address (send & receive)"
  30. default "FF02::FC"
  31. depends on EXAMPLE_IPV6
  32. help
  33. IPV6 multicast address. Example will both send to and listen to this address.
  34. The default FF02::FC address is a link-local multicast address.
  35. Consult IPV6 specifications or documentation for information about
  36. meaning of different IPV6 multicast ranges.
  37. config EXAMPLE_PORT
  38. int "Multicast port (send & receive)"
  39. range 0 65535
  40. default 3333
  41. help
  42. Multicast port the example will both send & receive UDP packets on.
  43. config EXAMPLE_LOOPBACK
  44. bool "Multicast loopback"
  45. help
  46. Enables IP_MULTICAST_LOOP/IPV6_MULTICAST_LOOP options, meaning
  47. that packets transmitted from the device are also received by the
  48. device itself.
  49. config EXAMPLE_MULTICAST_TTL
  50. int "Multicast packet TTL"
  51. range 1 255
  52. help
  53. Sets TTL field of multicast packets. Separate from uni- & broadcast TTL.
  54. choice EXAMPLE_MULTICAST_IF
  55. prompt "Multicast Interface"
  56. default EXAMPLE_MULTICAST_LISTEN_DEFAULT_IF
  57. help
  58. Multicast socket can bind to default interface, or all interfaces.
  59. config EXAMPLE_MULTICAST_LISTEN_ALL_IF
  60. bool "All interfaces (IPV4 only)"
  61. depends on !EXAMPLE_IPV6_ONLY
  62. config EXAMPLE_MULTICAST_LISTEN_DEFAULT_IF
  63. bool "Default interface"
  64. endchoice
  65. endmenu