<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">Hmm, to me it looks as if Samba does not actually ask for the IPv6</div>
addresses but goes for IPv4 right-away. nss-mdns is IPv6 capable, but<br>
it will only forward what the apps ask for. Which means that if no<br>
request happens on the network it&#39;s Samba which isn&#39;t asking.<br>
<br>
Lennart<br><font class="Apple-style-span" color="#888888"><br></font></blockquote><div><br></div><div>Hi Lennart, thanks for the response, I believe the problem is the invocation of getaddrinfo or something inside it.</div>
<div><br></div><div>In the Samba source code the file source/libsmb/namequery.c invokes getaddrinfo as follows:</div><div><br></div><div><div>       ret = getaddrinfo(name, NULL, &amp;hints, &amp;ailist);</div><div><br></div>
<div>where &quot;name&quot; point to the hostname to resolve, &quot;hints&quot; is zeroed at the begining and then initialized with ai_socktype with SOCK_STREAM, ai_flags with AI_ADDRCONFIG and if the macro HAVE_IPV6 is not defined it loads ai_family with AF_INET (at the cpp level). I&#39;ve checked the compilation parameters with &quot;smbd -b&quot; and HAVE_IPV6 is defined, so ai_family should be zero and AF_UNSPEC is defined as zero.</div>
<div><br></div><div>I&#39;m trying to do some tests with my own peace of code and if I found something &quot;funny&quot; I&#39;ll let the list know.</div><div><br></div><div>Best regards,</div><div>Ernesto.</div></div></div>