[email protected]
[Top] [All Lists]

Bug#503186: marked as forwarded (plink -L listens to IPv6 interface onl

Subject: Bug#503186: marked as forwarded plink -L listens to IPv6 interface only!
From: Debian Bug Tracking System
Date: Thu, 23 Oct 2008 11:30:03 +0000
Your message dated Thu, 23 Oct 2008 12:28:48 +0100
with message-id <[email protected]>
has caused the   report #503186,
regarding plink -L listens to IPv6 interface only!
to be marked as having been forwarded to the upstream software
author(s) [email protected]

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]

503186: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=503186
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Subject: : Bug#503186: plink -L listens to IPv6 interface only!]
From: Colin Watson
Date: Thu, 23 Oct 2008 12:28:48 +0100
Forwarding to the PuTTY team, thanks.

This is a notorious swamp and it took OpenSSH several goes to get it
right. I think the basic difference between OpenSSH and PuTTY here is
that OpenSSH loops round and binds to all available interfaces, while (I
think) PuTTY stops once a single bind succeeds.

Colin Watson                                       [[email protected]]
--- Begin Message ---
Subject: Bug#503186: plink -L listens to IPv6 interface only!
From: "Eduard Bloch"
Date: Thu, 23 Oct 2008 11:58:49 +0200
Package: putty-tools
Version: 0.58-5
Severity: important
Tags: upstream


plink -L does not work for me, because it listens only to the v6 socket on the 
localhost interface. I.e. the v4 socket is not bound, regular v4 programs 
cannot use it.

I strace'd it, and it only does once:

2755  bind(7, {sa_family=AF_INET6, sin6_port=htons(1742), inet_pton(AF_INET6, 
"::1", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = 0
2755  listen(7, 128)                    = 0

A quick walk through the code suggests the idea (not sure yet) that it tries to 
emulate openssh's behaviour (listening to localhost interface only instead of 
any interface). There are two possible explanations:

a) It gets a list of socket descriptors for "localhost" via getaddrinfo but 
picks up only the first one in its list.
b) It adds IPv6_ONLY hint to the hints of getaddrinfo (when compiled with ipv6, 
there is a lot of conditional code around that which is bad style, IMHO), thus 
it only returns the IPv6 specific description. Either way, it should be fixed 


-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-6-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages putty-tools depends on:
ii  libc6                  2.3.6.ds1-13etch5 GNU C Library: Shared libraries

putty-tools recommends no packages.

-- no debconf information

Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

--- End Message ---

--- End Message ---
<Prev in Thread] Current Thread [Next in Thread>
  • Bug#503186: marked as forwarded (plink -L listens to IPv6 interface only!), Debian Bug Tracking System <=