Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 75253 - ncftp cannot connect to server with IPv6 addresses
ncftp cannot connect to server with IPv6 addresses
Product: Red Hat Linux
Classification: Retired
Component: ncftp (Show other bugs)
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Karsten Hopp
Ben Levenson
: 74314 (view as bug list)
Depends On:
  Show dependency treegraph
Reported: 2002-10-05 23:52 EDT by Ulrich Drepper
Modified: 2007-04-18 12:47 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-09-01 10:45:49 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Ulrich Drepper 2002-10-05 23:52:15 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2b) Gecko/20020812

Description of problem:
I don't know why but ncftp cannot connect to some sites.  I don't know what
differentiates them

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.ncftpls ftp://nl.linux.org

Actual Results:  Could not get a socket: Address family not supported by protocol.
ncftpls: cannot open nl.linux.org: could not get a new stream socket.

Expected Results:  Listing of the FTP server.

Additional info:

The name lookup inside is most probably (ok, definitely) using getaddrinfo. On
servers which have IPv6 addresses they will be reported back first if the caller
is interested in either.  If now the ipv6 kernel module is not loaded the socket
calls will fail:

socket(PF_INET6, SOCK_STREAM, 0)        = -1 ENOSYS (Function not implemented)
socket(PF_INET6, SOCK_STREAM, 0)        = -1 ENOSYS (Function not implemented)
socket(PF_INET6, SOCK_STREAM, 0)        = -1 EAFNOSUPPORT (Address family not su

ncftp should not fail in this case unless there is no IPv4 address at all
returned.  This is not the case for nl.linux.org.
Comment 1 Need Real Name 2002-11-18 06:52:53 EST
it seems fixed in ncftp 3.1.5
Comment 2 Pekka Savola 2003-07-22 06:56:38 EDT
*** Bug 74314 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.