Bug#192091: ssh: Ip Address assumptions (10.7 -> 10.0.0.7) changed
tags 192091 fixed-upstream confirmed
thanks
At Wed, 7 May 2003 09:35:25 +0100,
Colin Watson wrote:
> > ssh: 10.7: Name or service not known
>
> ssh is getting this from getaddrinfo():
>
> (gdb) list
> 273 memset(&hints, 0, sizeof(hints));
> 274 hints.ai_family = family;
> 275 hints.ai_socktype = SOCK_STREAM;
> 276 snprintf(strport, sizeof strport, "%u", port);
> 277 if ((gaierr = getaddrinfo(host, strport, &hints, &aitop)) != 0)
> 278 fatal("%s: %.100s: %s", __progname, host,
> 279 gai_strerror(gaierr));
> 280
> 281 /*
> 282 * Try to connect several times. On some machines, the first time
> (gdb) p host
> $1 = 0xbffffaf1 "10.7"
> (gdb) p (char *) strport
> $6 = 0xbffff320 "22"
> (gdb) p hints
> $3 = {ai_flags = 0, ai_family = 0, ai_socktype = 1, ai_protocol = 0, ai_addrlen = 0, ai_addr = 0x0, ai_canonname = 0x0, ai_next = 0x0}
>
> I don't know if 10.7 is supposed to be supported by getaddrinfo(), but
> if it is then glibc needs to implement it.
This bug should be fixed in the next update.
Regards,
-- gotom
Reply to: