troglobit / mdnsd

Jeremie Miller's original mdnsd
BSD 3-Clause "New" or "Revised" License
57 stars 35 forks source link

Test IPv6 connectivity in net namespace #70

Closed fzs closed 1 year ago

fzs commented 1 year ago

@troglobit , I am trying to expand the integration tests to use IPv6, too. As a first step I collect the link local IPv6 addresses of the created devices and try to test connectivity between them.

But I fail to send packets between the server and client via IPv6. I first tried with ping6 which resulted in ping6: fe80::94b6:2bff:fe7b:8026 : Name or service not known, no matter what I did. Now I tried with netcat, but again to no avail: nc: getaddrinfo for host "fe80::ac16:fff:fe41:d72c " port 12345: Name or service not known.

Do you have an idea what I am missing?

troglobit commented 1 year ago

Not really, no ... unless routing issue, did you try the %iface syntax?

fzs commented 1 year ago

Well, it turns out it was a "copy-paste error". Kind of. A ping6 -c 1 "${server_addr_ll6}" will result in the ping not working because Name or service not known. It seems to take the IPv6 address as a host name then. With a ping6 -c 1 ${server_addr_ll6}, without the double quotes, it works.

Also, waiting for the DAD to finish seems necessary.

fzs commented 1 year ago

By the way, can we add tshark to the Github actions setup, so that it can be used in the tests?