Commit Graph

6 Commits

Author SHA1 Message Date
David du Colombier 2f4516ba69 devip: fix addrlen in connect() and bind()
On some systems, the third argument of connect() and bind()
is expected to be the length of the address family instead
of the length of the sockaddr structure.

R=rsc
http://codereview.appspot.com/6492074
2012-09-10 19:51:39 +02:00
David du Colombier 23a48c7cfe devip: add support for IPv6
Addresses are now stored as uchar[16] instead
of ulong, with enough room for IPv6.

Generic IP functions have been removed from
devip.c and replaced by libip, imported from
Plan 9.

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

On Windows, IPv6 name resolution is not enabled,
because mingw32 doesn't provide inet_ntop().

R=rsc
http://codereview.appspot.com/6408044
2012-08-03 21:30:17 +02:00
Russ Cox 21b830b1ac cleanups spotted by irix cc 2005-12-29 23:15:58 +00:00
Russ Cox 537f761602 mac warnings 2005-11-07 17:34:39 +00:00
Russ Cox 1c8b499228 silence all gcc warnings 2005-11-07 17:13:41 +00:00
Russ Cox 934846f35c a 2005-08-08 12:50:13 +00:00