88 Commits

Author SHA1 Message Date
leitner
79cc92ec6f remove warning for crippled operating systems 2016-05-23 09:46:05 +00:00
leitner
d26b8082d8 shut up new gcc 6 warnings 2016-04-27 14:07:49 +00:00
leitner
83712b7f23 attempt to support FreeBSD 2016-04-07 12:08:05 +00:00
leitner
189d8bad1d darwin compat 2015-11-11 08:04:00 +00:00
leitner
f74f9b9b25 add socket_udp4b and socket_udp6b 2015-10-16 17:12:22 +00:00
leitner
7bdc1b29bb a few missing headers and minor fixes
fix corking behavior for the case where a buffer follows a buffer in
iob_send
2015-09-06 18:01:02 +00:00
leitner
695843c79e small buffer optimization
fix botched noipv6 case in buffer_tcp6
2015-04-23 15:15:08 +00:00
leitner
d0e735e2c2 support noipv6 being set externally even when there is perfectly good
IPv6 support.
2015-03-20 14:58:13 +00:00
leitner
1856c8a2d7 damn it, fucked up the return value 2015-03-20 03:50:42 +00:00
leitner
6e022f98c9 ... but if errno==EINVAL still fall back to socket+fcntl (Robert Henney) 2015-03-20 03:34:37 +00:00
leitner
35f5a9692a if SOCK_NONBLOCK is defined, use it instead of socket+fcntl 2015-03-17 00:01:00 +00:00
leitner
a691887e75 forgot to check in the actual code m( 2014-10-07 11:40:43 +00:00
leitner
88167b5ce1 add socket_fastopen, socket_fastopen_connect4, socket_fastopen_connect6 and socket_quickack 2014-10-07 11:40:21 +00:00
leitner
dc4d204f4e also mention scan_ip6if(3) 2014-09-01 10:41:00 +00:00
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.
2014-04-19 17:45:14 +00:00
leitner
53e2af7389 never close fd 0, 1 or 2 in buffer_close 2014-03-15 13:17:58 +00:00
leitner
4a04c40595 get rid of more -Wconversion warnings 2014-03-14 19:42:54 +00:00
leitner
c099365ec7 mingw compile fix 2012-01-13 03:20:32 +00:00
leitner
82e6b4086b socket_remote4 does not need havescope.h 2011-09-16 03:11:43 +00:00
leitner
2cb6a12c92 #include <errno.h> 2010-01-28 21:40:03 +00:00
leitner
b4469f1ed8 support SCTP in addition to TCP 2010-01-18 19:49:03 +00:00
leitner
78306e451e typo 2009-01-13 19:26:09 +00:00
leitner
3636c04609 use SO_REUSEPORT 2008-09-17 00:06:23 +00:00
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
2008-09-10 09:51:26 +00:00
leitner
c114890119 *cough* 2007-11-02 00:43:43 +00:00
leitner
d4cdc92b4a remove warning 2007-11-02 00:43:04 +00:00
leitner
22f88f6550 add socket_deferaccept 2007-11-02 00:39:51 +00:00
leitner
b0d5046428 fmt_ip6 compresses at best spot, not at first spot (Nikola Vladov) 2007-03-04 13:13:19 +00:00
leitner
0cda5dacc8 immer noch falsch 2006-12-01 22:23:29 +00:00
leitner
8420a7a724 fix man pages 2006-12-01 22:10:49 +00:00
leitner
3004b518ef switch to size_t and ssize_t 2006-11-07 17:56:05 +00:00
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)
2006-06-23 03:53:16 +00:00
leitner
144fb41918 remove warnings 2006-05-18 06:13:25 +00:00
leitner
d361d81c64 make socket_(tc|ud)p[46] actually return non-blocking sockets as
documented (Richard Lyons)
2006-05-18 06:02:43 +00:00
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.
2005-09-09 22:12:23 +00:00
leitner
f141d3e24f socket_accept4 should cope with being passed NULL pointers 2005-08-05 15:45:22 +00:00
leitner
10658ebe60 only write if dest is non-NULL 2005-08-05 14:38:28 +00:00
leitner
eeffc36387 remove even more warnings
64-bit cleanliness issue with auto-NULL-appending macros
2005-05-12 06:52:29 +00:00
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")
2005-05-05 15:55:41 +00:00
leitner
9210337fa5 turns out there is one more error message that can signal missing IPv6
support in the kernel
2005-04-07 05:52:55 +00:00
leitner
d6b7c29808 uh, the scope_id detection #defined the wrong constant. libowfat
always thought there was no scope_id.  Oops.
2005-02-02 19:34:00 +00:00
leitner
8873a442f2 man page update 2004-09-17 13:51:35 +00:00
leitner
08ea2e27a0 be backwards compatible to legacy BSD constant naming 2004-02-25 17:11:26 +00:00
leitner
25181575b6 fix ip6_fmt (martin paljak) 2004-01-15 18:43:49 +00:00
leitner
f52aa87441 more alloca fixes 2004-01-06 23:35:06 +00:00
leitner
3eb26af29d work around IRIX 2004-01-06 23:20:23 +00:00
leitner
0bae11b63e remove socket_sendfile now that we have io_sendfile
make Makefile should also work with a BSD make ;)
2004-01-01 03:39:51 +00:00
leitner
0f60bacb89 add routines to scan and output ipv6 addresses with %eth0 notation.
also add compat formatting routines that will output v4-mapped addresses
  as ipv4 addresses
2003-12-05 19:53:59 +00:00
leitner
15a54e002b More Windoze crap 2003-11-20 23:49:38 +00:00
leitner
82a4ae868d broken lose32 port using mingw (don't use!!!)
initial Solaris /dev/poll port
2003-11-06 20:47:59 +00:00