IPv6 literal addresses on command line

Paul Slootman paul at debian.org
Tue Nov 18 23:35:51 EST 2003

On Tue 18 Nov 2003, cam wrote:
> To summarise: no-one is currently using rsync over IPv6 on linux. 

I just tried a simple test, and it sure seems to work. For lack of an
rsync server that talks IPv6 and wants to talk to me, I can't actually
verify the working. However, I see that it initiates an IPv6 connection:

$ strace -o strace.out -f rsync bla www.xxxxx.net::bla

excerpt from strace.out:

3006  recvfrom(3, "\f}\201\200\0\1\0\1\0\2\0\2\3www\5xxxxx\3net\0\0\1\0\1"..., 1024, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("")}, [16]) = 121
3006  close(3)                          = 0
3006  socket(PF_INET6, SOCK_STREAM, IPPROTO_TCP) = 3
3006  connect(3, {sa_family=AF_INET6, sin6_port=htons(873), inet_pton(AF_INET6, "3ffe:xxxx:2000:1820::2", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = ? ERESTARTSYS (To be restarted)

(hostname and IPv6 address mangled a bit to protect the innocent.)

> unable to find the host and appeared, unlike BSD, to ignore the /etc/hosts
> file.

I don't have any IPv6 addresses in my hosts file...

Paul Slootman

More information about the rsync mailing list