Bug#192091: ssh: Ip Address assumptions (10.7 -> 10.0.0.7) changed
On Wed, May 07, 2003 at 09:35:25AM +0100, Colin Watson wrote:
> reassign 192091 glibc
> thanks
>
> On Mon, May 05, 2003 at 06:59:29PM -0700, Mike Fedyk wrote:
> > Package: ssh
> > Version: 1:3.6.1p1-1
> > Severity: normal
> >
> > Previously I could "ssh 10.7" and connect to the host 10.0.0.7. Now I get:
> >
> > 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.
Hi Colin,
I have been using testing for a while now, and the only package that is
having trouble with the 10.6 notation is ssh. I can use 10.6 with ping,
xvncviewer, nc (netcat), and any other utiltiy I use regularly, all except
for ssh. There's got to be something that isn't using the glibc code in
there.
Mike
Reply to: