52306e914f
mdns: add notification callback for async APIs
...
* Original commit: espressif/esp-idf@986603cf07
2022-05-27 17:44:24 +04:00
d37ab6dd25
mdns: add more mdns result attributes
...
* Original commit: espressif/esp-idf@76ec76c12c
2022-05-27 17:44:24 +04:00
4c368c0090
mdns: fix crash when adding services without hostname set
...
* Original commit: espressif/esp-idf@5e98772eaf
2022-05-27 17:44:24 +04:00
b0957e70fd
mdns: Clean the main mdns module from lwip dependencies
...
* Reduced number of include paths
* Abstract the internals of mdns packet (specifics defined in
mdns_networking.c)
* Use ESP_IP addresses instead of lwip addresses
* Original commit: espressif/esp-idf@54e329444a
2022-05-27 17:44:24 +04:00
47c7266103
mdns: Add asynchronous query API
...
Closes https://github.com/espressif/esp-idf/issues/7090
* Original commit: espressif/esp-idf@d81482d699
2022-05-27 17:44:24 +04:00
40da0d29be
mdns: Fix crashes reported by the fuzzer tests
...
* Original commit: espressif/esp-idf@4a2e72677c
2022-05-27 17:44:24 +04:00
8a120829e2
mdns: return ESP_OK rather than ERR_OK in API functions
...
* Original commit: espressif/esp-idf@2386113972
2022-05-27 17:44:24 +04:00
46f28a8011
mdns: fix memory leak in mdns_free when adding delegated hostnames
...
* Original commit: espressif/esp-idf@0baee93211
2022-05-27 17:44:24 +04:00
5a81eaea3f
mdns: Support for One-Shot mDNS queries
...
* Original commit: espressif/esp-idf@f167238fac
2022-05-27 17:44:24 +04:00
2ddaee2b6e
mdns: allow explicit txt value length
...
* Original commit: espressif/esp-idf@b4e0088b68
2022-05-27 17:44:24 +04:00
27fc285000
mdns: Fix crashes reported by the fuzzer
...
* Original commit: espressif/esp-idf@79ba738626
2022-05-27 17:44:24 +04:00
8a8d58d4dc
mdns: fix test script delayed response
...
* Original commit: espressif/esp-idf@a4f263948c
2022-05-27 17:44:24 +04:00
402baebfee
mdns: fix wrong SRV/PTR record handling
...
* Original commit: espressif/esp-idf@e6135552d2
2022-05-27 17:44:24 +04:00
9fa25ef3b6
mdns: fix wrong service hostname after mangling
...
* Original commit: espressif/esp-idf@439b31d065
2022-05-27 17:44:24 +04:00
121b525108
mdns: fix empty address change announce packets
...
* Original commit: espressif/esp-idf@7bbb72d865
2022-05-27 17:44:24 +04:00
418fb60dd9
mdns: fix mdns probe/reply behavior
...
* send correct hostnames when probing.
* add test for mdns host delegation.
* Original commit: espressif/esp-idf@d2a5d25984
2022-05-27 17:44:24 +04:00
4049b3b5ed
mdns: make delegate host address a list
...
Also adds unit test and doc string for new apis.
* Original commit: espressif/esp-idf@2d34352f3d
2022-05-27 17:44:24 +04:00
c8821199a2
mdns: add remove delegate host api
...
* Original commit: espressif/esp-idf@2174693096
2022-05-27 17:44:24 +04:00
1eb5df9780
mdns: add mdns delegation
...
This allows publishing mdns services for other devices.
* Original commit: espressif/esp-idf@401ff56cc1
2022-05-27 17:44:24 +04:00
b62b4b3e25
mdns: fix memory free issue when repeating the query in reply
...
The repeated query will be copied in the next event loop while the
memory is freed instantly. Delay the free to fix this issue.
* Original commit: espressif/esp-idf@5f244c86f2
2022-05-27 17:44:24 +04:00
4d8aec1ad3
mdns: Fix of crash when wifi interface get deleted and mdns receives the packets
...
Closes https://github.com/espressif/esp-idf/issues/6973
* Original commit: espressif/esp-idf@03de74a728
2022-05-27 17:44:24 +04:00
c3a5826d60
mdns: Fix parsing answers with questions when instance name not set
...
mdns resolver didn't correctly resolved queries when host name wasn't
assigned. Fixed by allowing processing also if some answer present
(non-strict mode)
Closes https://github.com/espressif/esp-idf/issues/6598
* Original commit: espressif/esp-idf@34049454df
2022-05-27 17:44:24 +04:00
cbcbe4ffd7
mdns: Fix the resolver to correctly parse it's own non-strict answers
...
The resolver was able to respond correctly, but would also resolve its
own queries and cause issues with BCT 1.5.2, specifically
* MULTIPLE QUESTIONS - DUPLICATE SUPPRESSION
* MULTIPLE QUESTIONS - DISTRIBUTED DUPLICATE SUPPRESSION
tests failed.
* Original commit: espressif/esp-idf@b649603a0d
2022-05-27 17:44:23 +04:00
22c7c0a195
mDNS: Updated APIs description and shows the warning when hostname contains domain name during the query
...
Closes https://github.com/espressif/esp-idf/issues/6590
* Original commit: espressif/esp-idf@9f8d2b944d
2022-05-27 17:44:23 +04:00
1623c0e729
components: Use CONFIG_LWIP_IPV6 to strip IPv6 function in components
...
* Original commit: espressif/esp-idf@da58235a0e
2022-05-27 17:44:23 +04:00
b114ed69de
mdns: add bound check when setting interface as duplicate
...
Closes IDF-2787
Partially addresses https://github.com/espressif/esp-idf/issues/6440
* Original commit: espressif/esp-idf@2b9d2c06f5
2022-05-27 17:44:23 +04:00
2ffd22382d
mDNS: Fix of text length calculation when detecting a collision
...
* Original commit: espressif/esp-idf@be0ae1ebbb
2022-05-27 17:44:23 +04:00
1fe901f70f
global: fix sign-compare warnings
...
* Original commit: espressif/esp-idf@753a929525
2022-05-27 17:44:23 +04:00
89439e0a9b
mdns: Allow resolve its own non-strict answers
...
the mDNS responder should not repeat questions when replying, however resolvers
must ignore these questions field if they are present. esp-idf mDNS
library does include questions in answering packets (thus not strictly
following the RFC6762) so the resolver did not correctly resolved
another instance host name.
Closes https://github.com/espressif/esp-idf/issues/6190
* Original commit: espressif/esp-idf@0693e172de
2022-05-27 17:44:23 +04:00
becd5d0266
mDNS: Fix of collision detection during txt length calculation
...
Closes https://github.com/espressif/esp-idf/issues/6114
* Original commit: espressif/esp-idf@f33772c960
2022-05-27 17:44:23 +04:00
6021a88657
mdns: Support queries in responses in mDNS non-strict mode
...
By default adds original queries to responses in order to be resolved by some resolvers, such as lwIP mdns library. This functionality however is discouraged by the RFC6762, so it could be disabled in menuconfig if MDNS_STRICT_MODE configured
Closes https://github.com/espressif/esp-idf/issues/5521
* Original commit: espressif/esp-idf@bcfa36db8f
2022-05-27 17:44:23 +04:00
78f71ecdf6
mdns: Fix include query ID in reponses
...
Closes https://github.com/espressif/esp-idf/issues/5574
* Original commit: espressif/esp-idf@f62e321d87
2022-05-27 17:44:23 +04:00
2b7d43e1f8
mdns: limit the GOT_IP6_EVENT to only known network interfaces
...
* Original commit: espressif/esp-idf@ab8cab1c55
2022-05-27 17:44:23 +04:00
b5e5a64e7f
mdns: fixed typos in the variable names and the comments
...
* Original commit: espressif/esp-idf@ecca39e19f
2022-05-27 17:44:23 +04:00
6713ffedcc
mdns: fix preset of esp_netif ptr for local interfaces
...
mdns module store local copy of esp_netif for common interfaces,
but it was correctly initialized only when interface started.
If the event were missed (e.g. mdns_init after interface start)
the local copy wouldn't be initialized. Fixed by restoring the local
copy.
Closes WIFI-1538
* Original commit: espressif/esp-idf@09e36f9f33
2022-05-27 17:44:23 +04:00
817c4fd2e8
mdns: fixed crash on event during deinit
...
mdns library deinitialization destroys internal structures including action queue. if an event (e.g. network update) received
after some essential stucture is destoyed, an unexpected behavour might be introduced (e.g. crash of adding the event notification
to the action queue which was already destroyed
Closes WIFI-1485
* Original commit: espressif/esp-idf@eaa2f12d67
2022-05-27 17:44:23 +04:00
8f0dc6d578
mdns: respond to discovery with the proper pseudo name _services._dns-sd._udp
...
Closes https://github.com/espressif/esp-idf/issues/4369
Closes IDFGH-2219
* Original commit: espressif/esp-idf@de17a1487f
2022-05-27 17:44:23 +04:00
d20666f3a0
mdns: fixed forgotten merge conflicts in debug code
...
* Original commit: espressif/esp-idf@d9433ef692
2022-05-27 17:44:23 +04:00
fb1de80fd7
mdns: add configuration values for task priority, affinity and internal service timeouts
...
closes https://github.com/espressif/esp-idf/issues/4217
* Original commit: espressif/esp-idf@c6f38f04f8
2022-05-27 17:44:23 +04:00
1f35e9a728
tcpip_adapter: updated tcpip_adapter compatablity layer to include all
...
public API and keep 100% backward compatibility
update build of tcpip adapter when ethernet disabled
* Original commit: espressif/esp-idf@7f5cda1b82
2022-05-27 17:44:23 +04:00
48b819bbc1
mdns: update mdns to use esp-netif for mdns supported services such as STA, AP, ETH
...
removes also include dependency on lwip to use esp_netif defined address fields and structures
* Original commit: espressif/esp-idf@19e24fe61e
2022-05-27 17:44:23 +04:00
53e2aa3241
esp_netif: Introduction of esp-netif component as a replacement of tcpip_adpter
...
- provides object oriented access to network intefaces
- not limited to default netifs
- more generic abstraction to network input output functions
- event handler registration removed from component responsibility
- backward compatibility layer for legacy tcpip_apapter APIs
Closes IDF-39
* Original commit: espressif/esp-idf@ffe043b1a8
2022-05-27 17:44:23 +04:00
248b11bb0a
esp_event, mdns: fixes for CONFIG_ETH_ENABLED=n
...
* Original commit: espressif/esp-idf@569ad7545c
2022-05-27 17:44:23 +04:00
901124b7ee
build and link hello-world for esp32s2beta
...
* Original commit: espressif/esp-idf@84b2f9f14d
2022-05-27 17:44:23 +04:00
f6ff165be9
mdns: fix crash for hostname queries
...
Receiving TXT, PTR, SDPTR and SRV record type queries would crash the application if the hostname
was used as instance name.
Closes https://github.com/espressif/esp-idf/issues/4224
* Original commit: espressif/esp-idf@3d1170031b
2022-05-27 17:44:23 +04:00
f44c569422
mdns: fix possible race condition when checking DHCP status on WIFI_EVENT_STA_CONNECTED event.
...
tcpip_adapter_dhcpc_get_status() returns the actual internal value of dhcp client without any locking or TCP/IP stack context call, so when CONNECTED event fired with default settings it started DHCP client in TCP/IP stack context and at the same time mdns event handler checking actual DHCP state, which could still be INIT (not STARTED). Purpose of this check is to enable PCB if DHCP was stopped before setting network interface up (typically static IP settings), so the solutin is to check against TCPIP_ADAPTER_DHCP_STOPPED state
* Original commit: espressif/esp-idf@7f410a0bcb
2022-05-27 17:44:23 +04:00
286c646725
mdns: use constant size of AAAA answer in mdns packets instead of deriving from lwip struct size, since the struct could contain also zones
...
closes WIFI-771
* Original commit: espressif/esp-idf@e5e31c5d01
2022-05-27 17:44:23 +04:00
7cdf96cffa
mdns: fix missing bye packet if services removed with mdns_service_remove_all() or mdns_free()
...
Closes https://github.com/espressif/esp-idf/issues/3660
* Original commit: espressif/esp-idf@a001998d52
2022-05-27 17:44:23 +04:00
407875d9c5
mdns: mdns_service_remove_all doesn't take an argument
...
Merges https://github.com/espressif/esp-idf/pull/2937
* Original commit: espressif/esp-idf@c2764f6fe8
2022-05-27 17:44:23 +04:00
3e753f5e2d
tools: Mass fixing of empty prototypes (for -Wstrict-prototypes)
...
* Original commit: espressif/esp-idf@afbaf74007
2022-05-27 17:44:23 +04:00