plan9port/src/cmd/vbackup
David du Colombier 3409bc9ae1 lib9/dial: add support for IPv6
The function p9dialparse() returns the host as a sockaddr_storage
structure instead of a u32int, to be able to handle both IPv4
and IPv6 addresses. Because the sockaddr_storage structure also
handle port numbers and Unix path names, there is no longer
need to set them in the calling functions. However, these values
are still returned for convenience.

The sockaddr_in and sockaddr_un structures have been replaced
by sockaddr_storage to handle Unix, IPv4 and IPv6 sockets.

Names and addresses are resolved using either gethostbyname()
or getaddrinfo() functions.

The getaddrinfo() function is documented in RFC2553 and standardized
since POSIX.1-2001. It supports both IPv4 and IPv6 addresses.
The gethostbyname() function is deprecated since POSIX.1-2008.
However, some libc implementations don't handle getaddrinfo()
properly, thus we preferred to try gethostbyname() first.

I've tried to preserve most of the old code logic to prevent
from surprising or unwanted behavior.

R=rsc
http://codereview.appspot.com/6255068
2012-06-02 21:50:59 +02:00
..
config.c
COPYRIGHT
diskcat.c merge 2007-11-27 15:39:06 -05:00
diskftp.c merge 2007-11-27 15:39:06 -05:00
disknfs.c merge 2007-11-27 15:39:06 -05:00
mkfile
mount-BSD.c vbackup: fix build on FreeBSD 8 2009-09-12 23:26:48 -04:00
mount-Darwin.c
mount-FreeBSD.c
mount-Linux.c use linux/version.h 2006-05-16 15:47:59 +00:00
mount-NetBSD.c
mount-none.c
mount-OpenBSD.c
mount-SunOS.c
mountnfs.h
nfs3srv.c vnfs: add -i flag to allow remote root 2008-07-20 04:50:09 -04:00
nfs3srv.h vnfs: add -i flag to allow remote root 2008-07-20 04:50:09 -04:00
queue.c Fix a handful of small one-time memory leaks in vbackup, 2006-10-19 21:58:59 +00:00
queue.h Fix a handful of small one-time memory leaks in vbackup, 2006-10-19 21:58:59 +00:00
util.c
vbackup.c vbackup: adapt to new libventi interface 2009-06-10 10:16:40 -07:00
vcat.c vbackup: update to new libventi interface 2009-06-16 10:28:13 -04:00
vftp.c vftp: walk fixes (Fazlul Shahriar) 2008-06-01 08:50:49 -04:00
vmount.c lib9/dial: add support for IPv6 2012-06-02 21:50:59 +02:00
vmount0.c lib9/dial: add support for IPv6 2012-06-02 21:50:59 +02:00
vnfs.c fix type-punned pointer warnings from gcc 2010-03-10 14:50:33 -08:00