[avahi] avahi on Linux uses incorrect address for P-t-P interface
Lennart Poettering
lennart at poettering.net
Tue Mar 8 14:58:55 PST 2011
On Sun, 16.01.11 10:51, Matt Ginzton (magi at cs.stanford.edu) wrote:
> Hi,
Heya,
>
> I sent a less knowledgeable question about avahi-daemon and
> point-to-point links a few days ago,
> http://lists.freedesktop.org/archives/avahi/2011-January/001969.html. When
> I didn't get a response to this, I decided to build avahi from source
> and step through it and see how it builds its list of interfaces and
> their addresses.
>
Thanks a lot. Applied.
Sorry for the long delay!
The reason why I had IFA_ADDRESS there is because the rtnetlink(7) man
page is not helpful in this regarding, and since we don't really support
ptp links anyway nobody ever noticed.
> --- iface-linux.c.orig 2011-01-16 10:43:19.928941366 -0800
> +++ iface-linux.c 2011-01-16 10:44:53.802731728 -0800
> @@ -203,7 +203,7 @@
> while (RTA_OK(a, l)) {
>
> switch(a->rta_type) {
> - case IFA_ADDRESS:
> + case IFA_LOCAL:
> /* Fill in address data */
>
> if ((raddr.proto == AVAHI_PROTO_INET6 && RTA_PAYLOAD(a) != 16) ||
>
> _______________________________________________
> avahi mailing list
> avahi at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/avahi
Lennart
--
Lennart Poettering - Red Hat, Inc.
More information about the avahi
mailing list