| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | lib9/dial: fix addrlen in connect() and bind() | David du Colombier | 2012-09-04 | 1 | -3/+17 |
| | | | | | | | | | | 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/6489072 | ||||
| * | lib9/dial: add support for IPv6 | David du Colombier | 2012-06-02 | 1 | -29/+24 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 | ||||
| * | lib9: fix local addr in dial | Jani Lahtinen | 2011-08-16 | 1 | -1/+1 |
| | | | | | | | R=rsc CC=plan9port.codebot http://codereview.appspot.com/4826049 | ||||
| * | dial: allow host==0 when net=="unix" | Fazlul Shahriar | 2009-08-17 | 1 | -1/+1 |
| | | | | | http://codereview.appspot.com/108042 | ||||
| * | dial: reject dial to * (aka 0.0.0.0) | Russ Cox | 2009-08-15 | 1 | -0/+5 |
| | | | | | | | fixes #15 http://code.swtch.com/plan9port/issues/15 http://codereview.appspot.com/107043 | ||||
| * | experiment: translation from standard notations to plan 9 in netmkaddr | rsc | 2006-07-23 | 1 | -0/+3 |
| | | |||||
| * | set qid.vers (Erik Quanstrom) | rsc | 2005-12-29 | 1 | -7/+9 |
| | | |||||
| * | allow broadcast | rsc | 2005-12-26 | 1 | -0/+2 |
| | | |||||
| * | better error messages | rsc | 2005-07-13 | 1 | -1/+5 |
| | | |||||
| * | add local address to dial | rsc | 2005-02-13 | 1 | -3/+42 |
| | | |||||
| * | publish p9dialparse | rsc | 2004-06-16 | 1 | -3/+1 |
| | | |||||
| * | various tweaks. | rsc | 2004-02-09 | 1 | -0/+5 |
| | | |||||
| * | Annoying changes to work on Sun boxes. | rsc | 2003-11-23 | 1 | -1/+0 |
| | | |||||
| * | Various additions and fixes. | rsc | 2003-11-23 | 1 | -0/+92 |
