[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#175034: apt/dpkg ipv6 ftp problem (EPTR)



On Mon, 6 Jan 2003, Hajo Noerenberg wrote:

> I also wonder why Host2 uses EPRT and Host1 EPSV by default.

Well, I'm afraid the likely reason is there is something wrong with it's
glibc it may be that the particular form of it's address is triggering a
bug someplace.. EPSV will also fail if getnameinfo isn't working.

What you need to do is capture the return code from the getnameinfo's
before the EPRT stuff and print it out. If you run apt-get with -qq it's
easier to read the ftp debug information. 

Something like

int res = getnameinfo((struct sockaddr *)&Addr,AddrLen,
               Name,sizeof(Name),Service,sizeof(Service),
               NI_NUMERICHOST|NI_NUMERICSERV);
cerr << "getnameinfo: " << res << ',' << ',' sizeof(Name) << Name << endl;

Jason




Reply to: