Commits
- Commit:
6f568da64e625a1e517de6147058888515a0ccb7
- From:
- David du Colombier <0intro@gmail.com>
- Date:
lib9/p9dialparse: fix segfault on gethostbyname
In some situations, gethostbyname can
return an empty address list.
R=rsc
http://codereview.appspot.com/6443097
- Commit:
4db1ecb904b545dbc067634d1ae39ef5bc37e525
- From:
- Russ Cox <rsc@swtch.com>
- Date:
lib9: remove ss_len manipulation in _p9dialparse
Not all systems have ss_len, and we've never set it before.
R=rsc
http://codereview.appspot.com/6497102
- Commit:
1c996338485a3515b8557562f68b0455b1c5a507
- From:
- Russ Cox <rsc@swtch.com>
- Date:
lib9: fix announce on OS X
R=rsc
http://codereview.appspot.com/6495109
- Commit:
d765c37110688fc763c964628d410cb039510b0e
- From:
- David du Colombier <0intro@gmail.com>
- Date:
lib9: fix openbsd build
Fix build error and warning on OpenBSD 5.1,
as reported by Dimitri Sokolyuk.
R=rsc
http://codereview.appspot.com/6350044
- Commit:
3409bc9ae1614ba47430a3f593fdbe5fc177c878
- From:
- David du Colombier <0intro@gmail.com>
- Date:
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
- Commit:
0c9c620f39e56c42802504003fd05664aba670a4
- From:
- Russ Cox <rsc@swtch.com>
- Date:
fix type-punned pointer warnings from gcc
R=rsc
http://codereview.appspot.com/396042
- Commit:
4b1648d5592f4956a80737a51802ebd63bde1ef7
- From:
- rsc <devnull@localhost>
- Date:
ignore /net/ prefixes - been long enough
- Commit:
772b39cd98587a1ac72a4876bb5aac9e7a498f36
- From:
- rsc <devnull@localhost>
- Date:
add dns
- Commit:
fc11cb4bbba44a375852ff7652ec740819b5cca9
- From:
- rsc <devnull@localhost>
- Date:
make sure to set p9unix
- Commit:
b589fce2fbf05ae18a6f015240f87ce2a163521f
- From:
- rsc <devnull@localhost>
- Date:
hard code list of plan 9 services in case they are not in /etc/services
- Commit:
c2070b2fc9d32d055104d55652d409a684f96881
- From:
- wkj <devnull@localhost>
- Date:
Include netinet/in.h to get ntohs prototype.
- Commit:
e42882dc96325652ff553838e560e6901b5d7977
- From:
- rsc <devnull@localhost>
- Date:
publish p9dialparse
- Commit:
478ee9636fcfe3509d0a901d1250524a5c41d3a8
- From:
- rsc <devnull@localhost>
- Date:
Make things build on FreeBSD again.
- Commit:
1c253ceb586c4519f42ce115954c4efab787f81a
- From:
- rsc <devnull@localhost>
- Date:
Annoying changes to work on Sun boxes.
- Commit:
fd04aacee17b348da206c13a550dc1029669805f
- From:
- rsc <devnull@localhost>
- Date:
Various additions and fixes.