lftp-devel  

[bug report]: incorrect handlink of link-local IPv6 addresses

Arkadiusz Miskiewicz
Tue, 27 Jan 2009 06:06:09 -0800

lftp 3.7.8

When connecting to link-local IPv6 addressess we need to specify interface 
that's going to be used but lftp doesn't handle this correctly:

[ar...@tarm ~]$ lftp ftp://fe80::2c0:9fff:feed:33cc%eth0
lftp fe80::2c0:9fff:feed:33cc%eth0:~> debug 10
lftp fe80::2c0:9fff:feed:33cc%eth0:~> ls
---- dns cache hit
---- Connecting to fe80::2c0:9fff:feed:33cc%eth0 (fe80::2c0:9fff:feed:33cc) 
port 21
**** connect(control_sock): Invalid argument
---- Closing control socket
ls: Invalid argument
lftp fe80::2c0:9fff:feed:33cc%eth0:~> exit
zsh: exit 1     lftp ftp://fe80::2c0:9fff:feed:33cc%eth0

Telnet works fine:

[ar...@tarm ~]$ telnet fe80::2c0:9fff:feed:33cc%eth0 21
Trying fe80::2c0:9fff:feed:33cc%eth0.21...
Connected to fe80::2c0:9fff:feed:33cc%eth0.
Escape character is '^]'.
220-Welcome to Pure-FTPd.
220-You are user number 1 of 50 allowed.
220 You will be disconnected after 15 minutes of inactivity.

Note that ommiting interface correctly yelds error:

[ar...@tarm ~]$ telnet fe80::2c0:9fff:feed:33cc 21
Trying fe80::2c0:9fff:feed:33cc.21...
telnet: Unable to connect to remote host: Invalid argument
telnet: no connections result
zsh: exit 1     telnet fe80::2c0:9fff:feed:33cc 21

-- 
Arkadiusz Miƛkiewicz        PLD/Linux Team
arekm / maven.pl            http://ftp.pld-linux.org/