Kconfig 3.3 KB

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