stonier/zeroconf-ros-pkg — Issue #24: Multiple interfaces confuse jmmdns
Author: stonier
Created: 2011-11-13 12:15:23+00:00
State: open
Labels: Jmdns

To reproduce:

1) A computer with ip4, ipv6 and two interfaces (e.g. eth0 and tap0)
2) avahi-publish -s ConcertMaster _ros-master._tcp 8883
3) java -jar jmdns-3.4.2.jar -listener

```
[+] NetworkInterface: fe80:0:0:0:224:1dff:fe23:91c9%2
Adding service listener '_ros-master._tcp.local.'
[+] NetworkInterface: 192.168.10.204
Adding service listener '_ros-master._tcp.local.'
[+] NetworkInterface: 192.168.1.3
Adding service listener '_ros-master._tcp.local.'
[+] NetworkInterface: fe80:0:0:0:7c13:7ff:fe61:5d5a%5
Adding service listener '_ros-master._tcp.local.'
[+] Service : DudeMaster._ros-master._tcp.local.
[+] Service : DudeMaster._ros-master._tcp.local.
[+] Service : ConcertMaster._ros-master._tcp.local.
[+] Service : ConcertMaster._ros-master._tcp.local.
[+] Service : DudeMaster._ros-master._tcp.local.
[+] Service : DudeMaster._ros-master._tcp.local.
[+] Service : ConcertMaster._ros-master._tcp.local.
[+] Service : ConcertMaster._ros-master._tcp.local.
************ Discovered Services ************
************ Discovered Services ************
Service Info:
Name : DudeMaster
Type : _ros-master._tcp.local.
Port : 8830
Address: 192.168.1.3
Address: fe80:0:0:0:224:1dff:fe23:91c9
Service Info:
Name : ConcertMaster
Type : _ros-master._tcp.local.
Port : 8883
Address: 192.168.1.3
Address: fe80:0:0:0:224:1dff:fe23:91c9
************ Discovered Services ************
Service Info:
Name : DudeMaster
Type : _ros-master._tcp.local.
Port : 8830
Address: fe80:0:0:0:224:1dff:fe23:91c9
Address: fe80:0:0:0:7c13:7ff:fe61:5d5a
Service Info:
Name : ConcertMaster
Type : _ros-master._tcp.local.
Port : 8883
Address: fe80:0:0:0:224:1dff:fe23:91c9
Address: fe80:0:0:0:7c13:7ff:fe61:5d5a
************ Discovered Services ************
Service Info:
Name : DudeMaster
Type : _ros-master._tcp.local.
Port : 8830
Address: 192.168.1.3
Address: fe80:0:0:0:224:1dff:fe23:91c9
```

You can see that it doesn't catch two interfaces, and even the addresses are somewhat confused.