Kconfig 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. menu "mDNS"
  2. config MDNS_MAX_INTERFACES
  3. int "Max number of interfaces"
  4. range 1 9
  5. default 3
  6. help
  7. Number of network interfaces to be served by the mDNS library.
  8. Lowering this number helps to reduce some static RAM usage.
  9. config MDNS_MAX_SERVICES
  10. int "Max number of services"
  11. range 1 64
  12. default 10
  13. help
  14. Services take up a certain amount of memory, and allowing fewer
  15. services to be open at the same time conserves memory. Specify
  16. the maximum amount of services here. The valid value is from 1
  17. to 64.
  18. config MDNS_TASK_PRIORITY
  19. int "mDNS task priority"
  20. range 1 255
  21. default 1
  22. help
  23. Allows setting mDNS task priority. Please do not set the task priority
  24. higher than priorities of system tasks. Compile time warning/error
  25. would be emitted if the chosen task priority were too high.
  26. config MDNS_TASK_STACK_SIZE
  27. int "mDNS task stack size"
  28. default 4096
  29. help
  30. Allows setting mDNS task stacksize.
  31. choice MDNS_TASK_AFFINITY
  32. prompt "mDNS task affinity"
  33. default MDNS_TASK_AFFINITY_CPU0
  34. help
  35. Allows setting mDNS tasks affinity, i.e. whether the task is pinned to
  36. CPU0, pinned to CPU1, or allowed to run on any CPU.
  37. config MDNS_TASK_AFFINITY_NO_AFFINITY
  38. bool "No affinity"
  39. config MDNS_TASK_AFFINITY_CPU0
  40. bool "CPU0"
  41. config MDNS_TASK_AFFINITY_CPU1
  42. bool "CPU1"
  43. depends on !FREERTOS_UNICORE
  44. endchoice
  45. config MDNS_TASK_AFFINITY
  46. hex
  47. default FREERTOS_NO_AFFINITY if MDNS_TASK_AFFINITY_NO_AFFINITY
  48. default 0x0 if MDNS_TASK_AFFINITY_CPU0
  49. default 0x1 if MDNS_TASK_AFFINITY_CPU1
  50. config MDNS_SERVICE_ADD_TIMEOUT_MS
  51. int "mDNS adding service timeout (ms)"
  52. range 10 30000
  53. default 2000
  54. help
  55. Configures timeout for adding a new mDNS service. Adding a service
  56. fails if could not be completed within this time.
  57. config MDNS_STRICT_MODE
  58. bool "mDNS strict mode"
  59. default "n"
  60. help
  61. Configures strict mode. Set this to 1 for the mDNS library to strictly follow the RFC6762:
  62. Currently the only strict feature: Do not repeat original questions in response packets
  63. (defined in RFC6762 sec. 6).
  64. Default configuration is 0, i.e. non-strict mode, since some implementations,
  65. such as lwIP mDNS resolver (used by standard POSIX API like getaddrinfo, gethostbyname)
  66. could not correctly resolve advertised names.
  67. config MDNS_TIMER_PERIOD_MS
  68. int "mDNS timer period (ms)"
  69. range 10 10000
  70. default 100
  71. help
  72. Configures period of mDNS timer, which periodically transmits packets
  73. and schedules mDNS searches.
  74. config MDNS_NETWORKING_SOCKET
  75. bool "Use BSD sockets for mDNS networking"
  76. default n
  77. help
  78. Enables optional mDNS networking implementation using BSD sockets
  79. in UDP multicast mode.
  80. This option creates a new thread to serve receiving packets (TODO).
  81. This option uses additional N sockets, where N is number of interfaces.
  82. config MDNS_MULTIPLE_INSTANCE
  83. bool "Multiple instances under the same service type"
  84. default y
  85. help
  86. Enables adding multiple service instances under the same service type.
  87. menu "MDNS Predefined interfaces"
  88. config MDNS_PREDEF_NETIF_STA
  89. bool "Use predefined interface for WiFi Station"
  90. default y
  91. help
  92. Set up mDNS for the default WiFi station.
  93. Disable this option if you do not need mDNS on default WiFi STA.
  94. config MDNS_PREDEF_NETIF_AP
  95. bool "Use predefined interface for WiFi Access Point"
  96. default y
  97. help
  98. Set up mDNS for the default WiFi Access Point.
  99. Disable this option if you do not need mDNS on default WiFi AP.
  100. config MDNS_PREDEF_NETIF_ETH
  101. bool "Use predefined interface for Ethernet"
  102. depends on ETH_ENABLED
  103. default y
  104. help
  105. Set up mDNS for the default Ethernet interface.
  106. Disable this option if you do not need mDNS on default Ethernet.
  107. endmenu # MDNS Predefined interfaces
  108. endmenu