No description
Find a file
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
acid merge 2012-03-05 16:36:31 -05:00
bin fix INSTALL warnings 2012-05-29 15:11:14 -04:00
dict now with hget 2005-07-18 22:52:05 +00:00
dist OS X PowerPC fixes (thanks Cameron Kaiser) 2011-10-23 17:55:23 -04:00
face faces for lp. 2005-09-13 01:24:50 +00:00
font font: add peter face to font/times/*.font 2009-08-24 08:05:09 -07:00
include lib9/dial: add support for IPv6 2012-06-02 21:50:59 +02:00
lib fortune 2012-03-26 11:27:31 -04:00
log ignore everything 2005-02-13 22:09:54 +00:00
lp lp: move devices to devices.sample 2009-04-30 07:28:37 -07:00
mac Plumb.app: prevent the Finder's activation after Devdraw's 2012-01-16 17:04:52 -05:00
mail merge 2007-11-27 15:39:06 -05:00
man venti(7): fix typo 2012-03-26 17:59:49 +02:00
ndb ndb/local: remove rsc-specific entries (oops) 2008-06-04 13:28:05 -04:00
news odds and ends 2004-04-21 23:43:46 +00:00
plumb plumb: character offsets start at 1, not 0 2011-08-31 09:22:22 -04:00
postscript troff: yet another case problem (OS X) 2008-02-01 07:54:19 -05:00
proto forgotten files 2005-01-13 04:56:07 +00:00
sky add here 2005-01-27 19:28:22 +00:00
src lib9/dial: add support for IPv6 2012-06-02 21:50:59 +02:00
tmac tmac.an: insert spaces after .?? request names 2008-11-11 11:01:03 -08:00
troff tr2post: rename charlib files to not be case-dependent (OS X) 2008-01-31 16:58:38 -05:00
unix unix: move Makefile so that it cannot be run accidentally 2009-08-24 07:53:01 -07:00
.cvsignore merge 2007-11-27 15:39:06 -05:00
.hgignore merge 2009-07-14 22:55:52 -07:00
.hgtags Added tag rtag for changeset 0b0321e26f56 2007-06-24 20:05:05 -04:00
CHANGES CHANGES: add pointer to web version 2008-05-10 13:38:21 -04:00
configure For annoying people like Uriel. 2005-11-25 13:18:11 +00:00
CONTRIBUTORS CONTRIBUTORS: add Abhishek Kulkarni 2012-05-29 15:10:26 -04:00
INSTALL OS X PowerPC fixes (thanks Cameron Kaiser) 2011-10-23 17:55:23 -04:00
install.txt install: typo in man page 2009-04-30 08:30:49 -07:00
LICENSE allow less restricted use of plan9port-specific code 2009-08-14 21:08:23 -07:00
Makefile For annoying people like Uriel. 2005-11-25 13:18:11 +00:00
rcmain Make fn cd safe for rc -e. 2005-08-10 16:59:19 +00:00
README add text version of install(1) 2005-11-28 16:36:57 +00:00
TODO Note 9P2000.u 2005-08-31 04:00:14 +00:00

This is a port of many Plan 9 libraries and programs to Unix.

* Installation

To install, run ./INSTALL.  It builds mk and then uses mk to
run the rest of the installation.  

For more details, see install(1), at install.txt in this directory
and at http://swtch.com/plan9port/man/man1/install.html.

* Documentation

See http://swtch.com/plan9port/man/ for more documentation.
(Documentation is also in this tree, but you need to run
a successful install first.  After that, "9 man 1 intro".)

Intro(1) contains a list of man pages that describe new features
or differences from Plan 9.

* Helping out

If you'd like to help out, great!  The TODO file contains a small list.

If you port this code to other architectures, please share your changes
so others can benefit.

Please use diff -u or CVS (see below) to prepare patches.

* CVS

You can use CVS to keep your local copy up-to-date as we make 
changes and fix bugs.  See the cvs(1) man page here ("9 man cvs")
for details on using cvs.

* Contact

Russ Cox <rsc@swtch.com>