<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's Samba which isn'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, &hints, &ailist);</div><div><br></div>
<div>where "name" point to the hostname to resolve, "hints" 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've checked the compilation parameters with "smbd -b" and HAVE_IPV6 is defined, so ai_family should be zero and AF_UNSPEC is defined as zero.</div>
<div><br></div><div>I'm trying to do some tests with my own peace of code and if I found something "funny" I'll let the list know.</div><div><br></div><div>Best regards,</div><div>Ernesto.</div></div></div>