leitner
421df2174c
systems without fastopen support return EPIPE
6 years ago
leitner
1137831ddd
make fastopen fall back to connect if len==0
6 years ago
leitner
ed67042965
undo freebsd fix, does not compile
7 years ago
leitner
2cc0eec6cc
#define _POSIX_SOURCE for FreeBSD
7 years ago
leitner
61db2acee6
no :: at the end if it's only :0
7 years ago
leitner
a4a2aed3de
fmt_ip6 was violating rfc5952 section 4.2.2
7 years ago
leitner
760598ec2f
#include <foo.h> -> #include <libowfat/foo.h>
8 years ago
leitner
a7f74699da
add #include <string.h> for memset/strcpy
8 years ago
leitner
79cc92ec6f
remove warning for crippled operating systems
9 years ago
leitner
d26b8082d8
shut up new gcc 6 warnings
9 years ago
leitner
83712b7f23
attempt to support FreeBSD
9 years ago
leitner
189d8bad1d
darwin compat
9 years ago
leitner
f74f9b9b25
add socket_udp4b and socket_udp6b
9 years ago
leitner
7bdc1b29bb
a few missing headers and minor fixes
...
fix corking behavior for the case where a buffer follows a buffer in
iob_send
9 years ago
leitner
695843c79e
small buffer optimization
...
fix botched noipv6 case in buffer_tcp6
10 years ago
leitner
d0e735e2c2
support noipv6 being set externally even when there is perfectly good
...
IPv6 support.
10 years ago
leitner
1856c8a2d7
damn it, fucked up the return value
10 years ago
leitner
6e022f98c9
... but if errno==EINVAL still fall back to socket+fcntl (Robert Henney)
10 years ago
leitner
35f5a9692a
if SOCK_NONBLOCK is defined, use it instead of socket+fcntl
10 years ago
leitner
a691887e75
forgot to check in the actual code m(
10 years ago
leitner
88167b5ce1
add socket_fastopen, socket_fastopen_connect4, socket_fastopen_connect6 and socket_quickack
10 years ago
leitner
dc4d204f4e
also mention scan_ip6if(3)
10 years ago
leitner
8581b74a84
on FreeBSD, on a PF_INET6 socket, recvfrom and friends can actually
...
return a sockaddr with family PF_INET. WTF? Work around that.
11 years ago
leitner
53e2af7389
never close fd 0, 1 or 2 in buffer_close
11 years ago
leitner
4a04c40595
get rid of more -Wconversion warnings
11 years ago
leitner
c099365ec7
mingw compile fix
13 years ago
leitner
82e6b4086b
socket_remote4 does not need havescope.h
13 years ago
leitner
2cb6a12c92
#include <errno.h>
15 years ago
leitner
b4469f1ed8
support SCTP in addition to TCP
15 years ago
leitner
78306e451e
typo
16 years ago
leitner
3636c04609
use SO_REUSEPORT
16 years ago
leitner
67bfd53652
check for socket() returning -1 before trying to set the socket
...
non-blocking so we don't hide the "too many open files" error code
16 years ago
leitner
c114890119
*cough*
17 years ago
leitner
d4cdc92b4a
remove warning
17 years ago
leitner
22f88f6550
add socket_deferaccept
17 years ago
leitner
b0d5046428
fmt_ip6 compresses at best spot, not at first spot (Nikola Vladov)
18 years ago
leitner
0cda5dacc8
immer noch falsch
18 years ago
leitner
8420a7a724
fix man pages
18 years ago
leitner
3004b518ef
switch to size_t and ssize_t
18 years ago
leitner
83c1186870
fix for NetBSD 3.0 (they broke their sys/types.h)
...
remove support for ip6.int reverse lookup in DNS routines (the domain is
no longer delegated)
19 years ago
leitner
144fb41918
remove warnings
19 years ago
leitner
d361d81c64
make socket_(tc|ud)p[46] actually return non-blocking sockets as
...
documented (Richard Lyons)
19 years ago
leitner
c1c50c7dbd
further Windoze support (test/io5.c works, gatling still doesn't)
...
This is just to get gatling to work, I may remove it again after
that.
19 years ago
leitner
f141d3e24f
socket_accept4 should cope with being passed NULL pointers
20 years ago
leitner
10658ebe60
only write if dest is non-NULL
20 years ago
leitner
eeffc36387
remove even more warnings
...
64-bit cleanliness issue with auto-NULL-appending macros
20 years ago
leitner
6196f771cd
remove a few gcc 4 warnings
...
work around freebsd 5.4 brokenness (if you don't have IPv6 in the
kernel, socket(PF_INET6,SOCK_STREAM,0) returns EPROTONOSUPPORT
instead of EPFNOSUPPORT, which basically says "yeah, I know IPv6,
but TCP? never heard of it")
20 years ago
leitner
9210337fa5
turns out there is one more error message that can signal missing IPv6
...
support in the kernel
20 years ago
leitner
d6b7c29808
uh, the scope_id detection #defined the wrong constant. libowfat
...
always thought there was no scope_id. Oops.
20 years ago
leitner
8873a442f2
man page update
20 years ago