Commits
- Commit:
d96e9e5dc39a356febed132703e46bf73bac6850
- From:
- jvd23 <46013531+jvd23@users.noreply.github.com>
- Via:
- Russ Cox <rsc@golang.org>
- Date:
lib9: fix memory leak in dial of regular file (#284)
- Commit:
fa325e9b42b0bdfb48857d1958d9fb7ceac55151
- From:
- Dan Cross <cross@gajendra.net>
- Date:
Trivial changes: whitespace and modes.
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>
- Commit:
3dade5fe59d80e9d23916d15db93ea39407f694e
- From:
- David du Colombier <0intro@gmail.com>
- Via:
- Russ Cox <rsc@swtch.com>
- Date:
lib9/dial: 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/6489072
- 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:
0c2ef23ff3d400d5e18eebeec2113cf81c5fb269
- From:
- Jani Lahtinen <jani.lahtinen8@gmail.com>
- Via:
- Russ Cox <rsc@swtch.com>
- Date:
lib9: fix local addr in dial
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/4826049
- Commit:
5186b55afc97730b733a85cdcb38d6ee7fdd32c7
- From:
- Fazlul Shahriar <fshahriar@gmail.com>
- Date:
dial: allow host==0 when net=="unix"
http://codereview.appspot.com/108042
- Commit:
6d558e12b04a468ec630d282265f033f54f6fa41
- From:
- Russ Cox <rsc@swtch.com>
- Date:
dial: reject dial to * (aka 0.0.0.0)
fixes #15 http://code.swtch.com/plan9port/issues/15
http://codereview.appspot.com/107043
- Commit:
6215fd56f1c9d9392806efd1ac499f91c8ae83fb
- From:
- rsc <devnull@localhost>
- Date:
experiment: translation from standard notations to plan 9 in netmkaddr
- Commit:
3d484b0d1a2a49113683f40a66a7fc4c1bebcda1
- From:
- rsc <devnull@localhost>
- Date:
set qid.vers (Erik Quanstrom)
- Commit:
74f9b0c62cfe49a5e49380a2cf6eb99f762a8d76
- From:
- rsc <devnull@localhost>
- Date:
allow broadcast
- Commit:
835c1e4786bf14ca8a6b17d8538f8881f55ae764
- From:
- rsc <devnull@localhost>
- Date:
better error messages
- Commit:
e5d68728eb1fb4526b67358e7e55698eea4ed315
- From:
- rsc <devnull@localhost>
- Date:
add local address to dial
- Commit:
e42882dc96325652ff553838e560e6901b5d7977
- From:
- rsc <devnull@localhost>
- Date:
publish p9dialparse
- Commit:
d51419bf4397cf13d0c50bf84c125477c6bed307
- From:
- rsc <devnull@localhost>
- Date:
various tweaks.
- Commit:
1c253ceb586c4519f42ce115954c4efab787f81a
- From:
- rsc <devnull@localhost>
- Date:
Annoying changes to work on Sun boxes.