Simon Tatham
|
5e42fe8fc9
Aha, _that's_ why I've been periodically getting blocking-write
|
17 éve |
Simon Tatham
|
020c481dd4
Duplicate r7795 in uxnet.c.
|
17 éve |
Ben Harris
|
86eac20abb
Set FD_CLOEXEC in a little convenience function that does the right thing
|
18 éve |
Simon Tatham
|
fd6d9bd677
I've just discovered that using the saved sessions menu from Unix
|
18 éve |
Jacob Nevins
|
2e06985445
Failure to connect to a Unix-domain socket could cause a segfault. Fixed.
|
19 éve |
Ben Harris
|
4598889284
A couple of places in sk_newlistener were using AF_INET6 even with NO_IPV6.
|
19 éve |
Jacob Nevins
|
1f2f60de04
Correct apparent misspelling of `SIOCATMARK'.
|
20 éve |
Ben Harris
|
62cdb81e0a
Rather than checking for <sys/sockio.h>, just include it if our other
|
20 éve |
Ben Harris
|
4cb79827c6
Check for <sys/sockio.h> and include it in uxnet.c if we find it. It's
|
20 éve |
Ben Harris
|
38b266727a
On some systems (NetBSD 1.6 and Solaris 9, at least), GCC doesn't understand
|
20 éve |
Jacob Nevins
|
6eec320f0b
Unify GET_32BIT()/PUT_32BIT() et al from numerous source files into misc.h.
|
20 éve |
Simon Tatham
|
5c5dc61522
Fixes for NO_IPV6 compilation under Unix.
|
20 éve |
Simon Tatham
|
ee56a6b48f
Remove the two logevent calls passing NULL as the first argument.
|
20 éve |
Jacob Nevins
|
70de40ba0a
Simon suggests a better solution to valgrind's complaining about
|
20 éve |
Jacob Nevins
|
680869b866
Initialise (struct Socket_tag).connected in sk_register().
|
20 éve |
Jacob Nevins
|
01c4c363d9
Initialise (struct Socket_tag).connected in sk_newlistener() since Valgrind
|
20 éve |
Ben Harris
|
3d44cb23c8
Use AF_UNIX, not AF_LOCAL, since the former is in POSIX and the latter is not.
|
20 éve |
Ben Harris
|
865fbaa8ce
Overhaul of client-side XDM-AUTHORIZATION-1:
|
20 éve |
Ben Harris
|
5e35aa383a
Buffer overruns are embarassing (even if caused by user error), so assert
|
20 éve |
Ben Harris
|
3f725a56ef
Move sockaddr_is_loopback() to before sk_address_is_local(), and define the
|
20 éve |
Ben Harris
|
15e7d71f39
When checking if a connection comes from localhost, don't assume it's an IPv4
|
20 éve |
Ben Harris
|
30fae9ffcb
When calling getaddrinfo() for a listening socket, pass in a suggested type
|
20 éve |
Ben Harris
|
a54961fe87
Stupid typo, spotted by GCC.
|
20 éve |
Ben Harris
|
258a87361a
If getaddrinfo() fails, it's not safe to dereference the struct addrinfo* it
|
20 éve |
Ben Harris
|
961319c14c
Dispose of a variable whose only use was being set to zero.
|
20 éve |
Simon Tatham
|
f70efc5cc6
Support for falling back through the list of addresses returned from
|
20 éve |
Simon Tatham
|
8167dfd406
Rewrite of Unix sk_newlistener() which should fix any possible
|
20 éve |
Ben Harris
|
b4f0ffc2bf
INADDR_NONE is nonstandard. Use (in_addr_t)(-1) instead.
|
20 éve |
Simon Tatham
|
378dbbb06b
sk_namelookup() on Unix was failing to translate from our platform-
|
20 éve |
Simon Tatham
|
3669401216
Having laboriously constructed a hints parameter for getaddrinfo, it
|
20 éve |