David Cermak
d238e9311b
feat(mdns): Decouple main module from mdns-networking
...
Removed sharing the data via the global variable `_mdns_server`, added
API `mdns_is_netif_ready()`
2023-03-22 12:16:28 +01:00
xieqinan
5ed3e9a6a1
mdns: append all ipv6 address in mdns answer
2023-03-22 12:00:38 +08:00
David Cermak
a06fb7714b
fix(mdns): Removed unused internal lock from mdns_server struct
2023-03-20 16:55:49 +01:00
David Cermak
e69a9ebb3d
fix(mdns): Resolve conflicts only on self hosted items
...
Skip solving conflicts for delegated names and delegated services
Closes https://github.com/espressif/esp-protocols/issues/185
2023-03-20 16:55:49 +01:00
David Cermak
0a682e7f12
fix(mdns): Fix memory issues reported by valgrind
...
* Read after the allocated area (which may lead to subsequent
mdns name corruption)
* Potentially uninit variable used in condition
2023-03-19 20:58:10 +01:00
david-cermak
9ae88aab48
Merge pull request #223 from AndriiFilippov/master
...
Unite all tags under common structure (IDFGH-9399)
2023-02-17 15:08:18 +01:00
AndriiFilippov
c6db3ea84c
unite all tags under common structure
...
py test: update tags under common structure
2023-02-17 14:27:34 +01:00
david-cermak
9fb01ca534
Merge pull request #219 from david-cermak/feat/mdns_reverse_query_ip6
...
feat(mdns): Add support for IPv6 reverse query
2023-02-15 08:07:17 +01:00
David Cermak
d464ed7d30
feat(mdns): Add reverse lookup to the example and test
2023-02-15 07:48:04 +01:00
Viktor Babrian
73f2800b59
components/mdns: use semaphore instead of task notification bits (IDFGH-9380)
...
Component should not alter the task notification bits of the calling task.
2023-02-14 11:43:02 +01:00
David Cermak
d4825f5c53
feat(mdns): Add support for IPv6 reverse query
...
Implements reverse querries together with
b87bef52e5
(IPv4)
Closes https://github.com/espressif/esp-protocols/issues/101
2023-02-07 20:16:26 +01:00
David Cermak
91134f10ff
mdns: Make reverse query conditional per Kconfig
...
and auto-register reverse logical names
2023-02-02 10:32:01 +01:00
David Cermak
fb8a2f0198
fix(mdns): Host test with IDFv5.1
2023-02-02 10:31:01 +01:00
David Cermak
b87bef52e5
feat(mdns): Add support for IPv4 reverse query
...
Partially addresses https://github.com/espressif/esp-protocols/issues/101
2023-02-02 10:31:00 +01:00
David Cermak
d0c9070715
fix(mdns): Remove strict mode as it's invalid
...
Strict mode was introduced to support "one-shot" queries (described in
RFC6762/sec5.1) that are sent by lwip or dig. It was incorrectly assumed
that responding to such queries violates the spec, as we have to repeat
queries in responces, which is forbidden in RFC6762/sec6. It is however
required to repeat query fields according to the Section 6.7. Legacy
Unicast Responses: "it MUST repeat the query ID and the question
given in the query message."
2023-01-31 16:06:52 +01:00
David Cermak
a8339e4618
fix(mdns): Allow setting instance name only after hostname set
...
Closes https://github.com/espressif/esp-protocols/issues/190
2023-01-31 16:06:52 +01:00
Mahavir Jain
c73c797595
mdns: fix some coverity reported issues
...
- Array compared against 0 NO_EFFECT
- dereference null pointer, FORWARD_NULL check
2022-11-07 18:38:06 +05:30
Suren Gabrielyan
945bd17701
CI: fixing the files to be complient with pre-commit hooks
2022-10-17 18:16:52 +02:00
microDev
3498e86d8b
prevent crash when hostname is null
2022-09-21 21:03:07 +05:30
david-cermak
543521a220
Merge pull request #123 from thorrak/hygiene/TTL
...
Replace hardcoded TTL values with named defines (IDFGH-8113)
2022-09-09 15:13:22 +02:00
John
bb4c002841
Replace hardcoded TTL values with named defines
...
- Replaces hardcoded PTR "half-TTL" with `MDNS_ANSWER_PTR_TTL/2` (defined in mdns_private.h)
- Replaces hardcoded TXT "half-TTL" with `MDNS_ANSWER_TXT_TTL/2` (defined in mdns_private.h)
2022-08-23 08:44:36 -04:00
David Cermak
656ab21c9b
mdns: Fix add_service() to report error if no-hostname
2022-08-19 18:47:47 +02:00
Jiacheng Guo
c4e85bd099
mdns: fix bit order issue in DNS header flags
...
The bit field in the header flags does not match its intended order on
little endian machines. The PR removes the bit field and uses bit
operations instead.
2022-08-18 16:39:38 +02:00
Jiacheng Guo
415e04a55f
fix(mdns): ignore authoritative flag on reception
2022-07-22 22:25:08 +08:00
David Cermak
36de9afe0c
feat(mdns): Define explicit dependencies on esp-wifi
2022-07-18 09:49:03 +02:00
gabsuren
4868689111
mdns: Updated mDNS to explicitely use esp-eth dependency if needed
...
* Original commit: espressif/esp-idf@5e19b9c951
2022-06-17 13:24:22 +04:00
David Cermak
2c764b1b7a
mdns: Fix copyright messages, update API descrition
...
* Impove docs and comments on custom netifs
* Make predef interfaces const, minor docs fixes
* Original commit: espressif/esp-idf@42ba8a8338
2022-05-27 17:44:25 +04:00
David Cermak
f836ae7f65
mdns: Add API to control custom network interfaces
...
* Original commit: espressif/esp-idf@b02468dc98
2022-05-27 17:44:25 +04:00
David Cermak
30f37c0565
mdns: Add support for registering custom netif
...
* Original commit: espressif/esp-idf@bec42ff85d
2022-05-27 17:44:25 +04:00
David Cermak
ddc58e8220
mdns: Indicate interface using esp_netif in search results
...
* Original commit: espressif/esp-idf@f8495f1e86
2022-05-27 17:44:25 +04:00
David Cermak
fa951bf320
mdns: Use predefined interfaces to prepare for custom netifs
...
* Original commit: espressif/esp-idf@f90b3b798b
2022-05-27 17:44:25 +04:00
Suren Gabrielyan
605d1fab73
mdns: Prepare for dynamic esp-netif support
...
* Original commit: espressif/esp-idf@f9892f77b8
2022-05-27 17:44:25 +04:00
Sudeep Mohanty
58bf2186f7
esp_hw_support/esp_system: Re-evaluate header inclusions and include directories
...
This commit updates the visibility of various header files and cleans up
some unnecessary inclusions. Also, this commit removes certain header
include paths which were maintained for backward compatibility.
* Original commit: espressif/esp-idf@a9fda54d39
2022-05-27 17:44:24 +04:00
David Cermak
94ae672041
mdns: Update to drop our own packet if bounced back
...
* Original commit: espressif/esp-idf@b5149e3ee7
2022-05-27 17:44:24 +04:00
David Cermak
e5a3a3df1d
mdns: Fix potential read behind parsed packet
...
* Original commit: espressif/esp-idf@51a5de2525
2022-05-27 17:44:24 +04:00
David Cermak
7710ea9a11
mdns: Fix memleak when adding delegated host
...
* Original commit: espressif/esp-idf@9cbdb8767b
2022-05-27 17:44:24 +04:00
David Cermak
034c55e18a
mdns: Fix null-service issue when parsing packets
...
Closes https://github.com/espressif/esp-idf/issues/8307
* Original commit: espressif/esp-idf@a57be7b7d1
2022-05-27 17:44:24 +04:00
David Cermak
5909e9e54c
mdns: Remove legacy esp_event API
...
* Original commit: espressif/esp-idf@e46aa515bd
2022-05-27 17:44:24 +04:00
Jakob Hasse
82e2a5dcc1
mdns: added missing includes
...
* Original commit: espressif/esp-idf@28d09c7dbe
2022-05-27 17:44:24 +04:00
h2zero
48e4d4035c
mdns: Clear notification value in mdns_hostname_set
...
Merges https://github.com/espressif/esp-idf/pull/8284
* Original commit: espressif/esp-idf@83a4ddbd25
2022-05-27 17:44:24 +04:00
Darian Leung
085dbd8c4e
freertos: Remove legacy data types
...
This commit removes the usage of all legacy FreeRTOS data types that
are exposed via configENABLE_BACKWARD_COMPATIBILITY. Legacy types can
still be used by enabling CONFIG_FREERTOS_ENABLE_BACKWARD_COMPATIBILITY.
* Original commit: espressif/esp-idf@57fd78f5ba
2022-05-27 17:44:24 +04:00
David Cermak
6cdf5ee074
mdns: Use memcpy() for copy to support non-text TXTs
...
* Original commit: espressif/esp-idf@6aefe9c185
2022-05-27 17:44:24 +04:00
David Cermak
fcb5515f1e
mdns: Support for null-value TXT records
...
Closes https://github.com/espressif/esp-idf/issues/8267
* Original commit: espressif/esp-idf@23c2db406d
2022-05-27 17:44:24 +04:00
David Cermak
9fdbe5f130
mdns: Fix alloc issue if TXT has empty value
...
* Original commit: espressif/esp-idf@205f6ba854
2022-05-27 17:44:24 +04:00
David Cermak
20e6e9e7fe
mdns: Fix random crash when defalt service instance queried
...
Merges https://github.com/espressif/esp-idf/pull/8248
* Original commit: espressif/esp-idf@f46dffca62
2022-05-27 17:44:24 +04:00
David Cermak
c588263b45
mdns: Fix minor memory leaks when creating services
...
* Original commit: espressif/esp-idf@fad62cc1ed
2022-05-27 17:44:24 +04:00
caffreyfans
6258edf23b
Fix mDNS memory leak
...
* Original commit: espressif/esp-idf@119b4a9dd1
2022-05-27 17:44:24 +04:00
caffreyfans
c8b0d5ea9d
Fix mDNS memory leak
...
* Original commit: espressif/esp-idf@f5ffd53aeb
2022-05-27 17:44:24 +04:00
David Cermak
5252b1d801
mdns: Use multi/uni-cast types in API
...
* Original commit: espressif/esp-idf@125c312552
2022-05-27 17:44:24 +04:00
David Cermak
4e11cc86fe
mdns: Allow for unicast PTR queries
...
Adresses https://github.com/espressif/esp-idf/issues/7932
* Original commit: espressif/esp-idf@7eeeb01ea7
2022-05-27 17:44:24 +04:00