[avahi] How to resolve only ipv4 addresses?

José Félix Ontañón felixonta at gmail.com
Sun Feb 21 04:56:55 PST 2010


2010/2/21 Linus Lüssing <linus.luessing at web.de>

> Hi José,
>
> I'm not sure if this might work... but did you try PROTO_INET
> instead of PROTO_UNSPEC?
>
>
Does it means to replace every PROTO_UNSPEC for PROTO_INET ?
Because ipv6 appears randomly i'll need to try it hard.

Really thank you Linus.

Cheers, Linus
>
> On Sun, Feb 21, 2010 at 01:18:16PM +0100, José Félix Ontañón wrote:
> > Hi everyone!
> >
> > I'm programming a python app that uses service discovering in what i
> think,
> > it's a very basic way:
> >
> > http://www.pastebin.com/f17ab27c1
> >
> > The fact it's that when i call resolve() sometimes an ipv6 address it's
> > returned. How can i force to only resolve ipv4 address?
> >
> > Thanks.
> > --
> > http://fontanon.org
>
> > _______________________________________________
> > avahi mailing list
> > avahi at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/avahi
>
> _______________________________________________
> avahi mailing list
> avahi at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/avahi
>



-- 
http://fontanon.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/avahi/attachments/20100221/c5b311b4/attachment.htm 


More information about the avahi mailing list