On Tue, 07.02.06 20:26, Iván Sánchez Ortega ([EMAIL PROTECTED]) wrote: > El Martes 07 de Febrero de 2006 19:03, Marc Krochmal escribió: > > [...] there's still many poor customers in the world that don't have the > > benefits of Zeroconf, [...] This doesn't work when you have two cameras on > > the network that both use the same IP [...] > > I can see your point. If Avahi returned the 192.168.x.x IPs for the cameras, > I'd be running into that problem. So the right way for Avahi to do this is, > as you say, to use the 169.254.x.x addresses...
Actually, Avahi uses the first address record it gets from the device, so this is somewhat dependant of the device logic, though this is not fully deterministic, due to cache management and stuff. BTW: Avahi itself doesn't publish link local addresses if an interface has both a public and an ipv4ll address assigned. So, if the the Axis camera would run Avahi, the problem would go away. ;-) I wonder if we should add some logic to always prefer real addresses over ipv4ll if we recieve both when browsing for them. Would make some sense, I guess. > However, the default network configuration for most Linux boxes is to have > just one IP, and not be aware of the 169.254.0.0 network. I guess that making > Avahi aware of the routing table to decide whether to get the 169.154.x.x or > the 192.168.x.x IP would be a real mess. Actually, we already have code like that for choosing the outgoing local IP address for our MDNS traffic. Lennart -- Lennart Poettering; lennart [at] poettering [dot] net ICQ# 11060553; GPG 0x1A015CC4; http://0pointer.net/lennart/ _______________________________________________ avahi mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/avahi
