esp-idf/components/mdns/host_test
Djordje Nedic facab8c5a7 tools: Increase the minimal supported CMake version to 3.16
This updates the minimal supported version of CMake to 3.16, which in turn enables us to use more CMake features and have a cleaner build system.
This is the version that provides most new features and also the one we use in our latest docker image for CI.
2022-06-01 06:35:02 +00:00
..
components Merge branch 'bugfix/passing_cmake_cxx_std_option' into 'master' 2022-03-11 17:29:48 +08:00
main mdns: Add host test using linux target 2021-08-17 18:39:40 +08:00
CMakeLists.txt tools: Increase the minimal supported CMake version to 3.16 2022-06-01 06:35:02 +00:00
README.md mdns: Add host test using linux target 2021-08-17 18:39:40 +08:00

Setup dummy network interfaces

sudo ip link add eth2 type dummy
sudo ip addr add 192.168.1.200/24 dev eth2
sudo ip link set eth2 up
sudo ifconfig eth2 multicast

Dig on a specified interface

dig +short -b 192.168.1.200 -p 5353 @224.0.0.251 myesp.local

Run avahi to browse services

Avahi needs the netif to have the "multicast" flag set

david@david-comp:~/esp/idf (feature/mdns_networking_socket)$ avahi-browse -a -r -p
+;eth2;IPv6;myesp-service2;Web Site;local
+;eth2;IPv4;myesp-service2;Web Site;local
=;eth2;IPv6;myesp-service2;Web Site;local;myesp.local;192.168.1.200;80;"board=esp32" "u=user" "p=password"
=;eth2;IPv4;myesp-service2;Web Site;local;myesp.local;192.168.1.200;80;"board=esp32" "u=user" "p=password"