[patch] 3.2-test - ipv6 in get_my_ip_address()

Volker Lendecke Volker.Lendecke at SerNet.DE
Wed Apr 30 10:54:02 GMT 2008


On Wed, Apr 30, 2008 at 02:12:57PM +1000, David Disseldorp wrote:
> 
> Someone forgot a 6?
> 
> Cheers, Dave
> 
> 
> --- a/source/utils/net_dns.c
> +++ b/source/utils/net_dns.c
> @@ -167,7 +167,7 @@ int get_my_ip_address( struct sockaddr_storage **pp_ss )
>                         continue;
>                 }
>  #if defined(HAVE_IPV6)
> -               if ((nics[i].ip.ss_family == AF_INET)) {
> +               if (nics[i].ip.ss_family == AF_INET6) {
>                         memcpy(&list[count++], &nics[i].ip,
>                                sizeof(struct sockaddr_storage));
>                 } else

Yep, looks very likely :-)

If you want credits, you might want to send this as a git
patch.

Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20080430/b71bf37a/attachment.bin


More information about the samba-technical mailing list