aboutsummaryrefslogtreecommitdiff
path: root/src/lib9/announce.c
AgeCommit message (Collapse)AuthorFilesLines
2020-01-10Trivial changes: whitespace and modes.Dan Cross1-1/+0
Remote whitespace at the ends of lines. Remove blank lines from the ends of files. Change modes on source files so that they are not executable. Signed-off-by: Dan Cross <cross@gajendra.net>
2012-09-04lib9/dial: fix addrlen in connect() and bind()David du Colombier1-4/+18
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
2012-06-02lib9/dial: add support for IPv6David du Colombier1-19/+9
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
2005-07-13unix is not a variable namersc1-0/+1
2004-06-16publish p9dialparsersc1-2/+1
2004-06-16DAMN BERKELEY.rsc1-1/+5
2004-03-25Today's changes.rsc1-2/+3
More changes.
2003-12-11Add support for user-level 9P servers/clients and various bug fixes to go ↵rsc1-8/+17
with them.
2003-11-23Annoying changes to work on Sun boxes.rsc1-1/+2
2003-11-23Various additions and fixes.rsc1-0/+137