Kconfig 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  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. default 10
  12. help
  13. Services take up a certain amount of memory, and allowing fewer
  14. services to be open at the same time conserves memory. Specify
  15. the maximum amount of services here.
  16. config MDNS_TASK_PRIORITY
  17. int "mDNS task priority"
  18. range 1 255
  19. default 1
  20. help
  21. Allows setting mDNS task priority. Please do not set the task priority
  22. higher than priorities of system tasks. Compile time warning/error
  23. would be emitted if the chosen task priority were too high.
  24. config MDNS_ACTION_QUEUE_LEN
  25. int "Maximum actions pending to the server"
  26. range 8 64
  27. default 16
  28. help
  29. Allows setting the length of mDNS action queue.
  30. config MDNS_TASK_STACK_SIZE
  31. int "mDNS task stack size"
  32. default 4096
  33. help
  34. Allows setting mDNS task stacksize.
  35. choice MDNS_TASK_AFFINITY
  36. prompt "mDNS task affinity"
  37. default MDNS_TASK_AFFINITY_CPU0
  38. help
  39. Allows setting mDNS tasks affinity, i.e. whether the task is pinned to
  40. CPU0, pinned to CPU1, or allowed to run on any CPU.
  41. config MDNS_TASK_AFFINITY_NO_AFFINITY
  42. bool "No affinity"
  43. config MDNS_TASK_AFFINITY_CPU0
  44. bool "CPU0"
  45. config MDNS_TASK_AFFINITY_CPU1
  46. bool "CPU1"
  47. depends on !FREERTOS_UNICORE
  48. endchoice
  49. config MDNS_TASK_AFFINITY
  50. hex
  51. default FREERTOS_NO_AFFINITY if MDNS_TASK_AFFINITY_NO_AFFINITY
  52. default 0x0 if MDNS_TASK_AFFINITY_CPU0
  53. default 0x1 if MDNS_TASK_AFFINITY_CPU1
  54. config MDNS_SERVICE_ADD_TIMEOUT_MS
  55. int "mDNS adding service timeout (ms)"
  56. range 10 30000
  57. default 2000
  58. help
  59. Configures timeout for adding a new mDNS service. Adding a service
  60. fails if could not be completed within this time.
  61. config MDNS_TIMER_PERIOD_MS
  62. int "mDNS timer period (ms)"
  63. range 10 10000
  64. default 100
  65. help
  66. Configures period of mDNS timer, which periodically transmits packets
  67. and schedules mDNS searches.
  68. config MDNS_NETWORKING_SOCKET
  69. bool "Use BSD sockets for mDNS networking"
  70. default n
  71. help
  72. Enables optional mDNS networking implementation using BSD sockets
  73. in UDP multicast mode.
  74. This option creates a new thread to serve receiving packets (TODO).
  75. This option uses additional N sockets, where N is number of interfaces.
  76. config MDNS_SKIP_SUPPRESSING_OWN_QUERIES
  77. bool "Skip suppressing our own packets"
  78. default n
  79. help
  80. Enable only if the querier and the responder share the same IP address.
  81. This usually happens in test mode, where we may run multiple instances of
  82. responders/queriers on the same interface.
  83. config MDNS_ENABLE_DEBUG_PRINTS
  84. bool "Enable debug prints of mDNS packets"
  85. default n
  86. help
  87. Enable for the library to log received and sent mDNS packets to stdout.
  88. config MDNS_ENABLE_CONSOLE_CLI
  89. bool "Enable Command Line Interface on device console"
  90. default y
  91. help
  92. Enable for the console cli to be available on the device.
  93. config MDNS_RESPOND_REVERSE_QUERIES
  94. bool "Enable responding to IPv4 reverse queries"
  95. default n
  96. help
  97. Enables support for IPv4 reverse lookup. If enabled, the mDNS library
  98. response to PTR queries of "A.B.C.D.in-addr.arpa" type.
  99. config MDNS_MULTIPLE_INSTANCE
  100. bool "Multiple instances under the same service type"
  101. default y
  102. help
  103. Enables adding multiple service instances under the same service type.
  104. menu "MDNS Predefined interfaces"
  105. config MDNS_PREDEF_NETIF_STA
  106. bool "Use predefined interface for WiFi Station"
  107. default y
  108. help
  109. Set up mDNS for the default WiFi station.
  110. Disable this option if you do not need mDNS on default WiFi STA.
  111. config MDNS_PREDEF_NETIF_AP
  112. bool "Use predefined interface for WiFi Access Point"
  113. default y
  114. help
  115. Set up mDNS for the default WiFi Access Point.
  116. Disable this option if you do not need mDNS on default WiFi AP.
  117. config MDNS_PREDEF_NETIF_ETH
  118. bool "Use predefined interface for Ethernet"
  119. depends on ETH_ENABLED
  120. default y
  121. help
  122. Set up mDNS for the default Ethernet interface.
  123. Disable this option if you do not need mDNS on default Ethernet.
  124. endmenu # MDNS Predefined interfaces
  125. endmenu