Commit Graph

67 Commits (02818883dfbd568cef8d85b5d57ab19815b060bf)

Author SHA1 Message Date
leitner 78306e451e typo
leitner 3636c04609 use SO_REUSEPORT
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
leitner c114890119 *cough*
leitner d4cdc92b4a remove warning
leitner 22f88f6550 add socket_deferaccept
leitner b0d5046428 fmt_ip6 compresses at best spot, not at first spot (Nikola Vladov)
leitner 0cda5dacc8 immer noch falsch
leitner 8420a7a724 fix man pages
leitner 3004b518ef switch to size_t and ssize_t
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)
leitner 144fb41918 remove warnings
leitner d361d81c64 make socket_(tc|ud)p[46] actually return non-blocking sockets as
documented (Richard Lyons)
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.
leitner f141d3e24f socket_accept4 should cope with being passed NULL pointers
leitner 10658ebe60 only write if dest is non-NULL
leitner eeffc36387 remove even more warnings
64-bit cleanliness issue with auto-NULL-appending macros
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")
leitner 9210337fa5 turns out there is one more error message that can signal missing IPv6
support in the kernel
leitner d6b7c29808 uh, the scope_id detection #defined the wrong constant. libowfat
always thought there was no scope_id.  Oops.
leitner 8873a442f2 man page update
leitner 08ea2e27a0 be backwards compatible to legacy BSD constant naming
leitner 25181575b6 fix ip6_fmt (martin paljak)
leitner f52aa87441 more alloca fixes
leitner 3eb26af29d work around IRIX
leitner 0bae11b63e remove socket_sendfile now that we have io_sendfile
make Makefile should also work with a BSD make ;)
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
leitner 15a54e002b More Windoze crap
leitner 82a4ae868d broken lose32 port using mingw (don't use!!!)
initial Solaris /dev/poll port
leitner 2af3efb074 work around itojun BSD IPV6_ONLY brokenness
leitner a8f6a1c121 remove special case stralloc textcode functions
write generic stralloc and array textcode wrapper functions
change textcode API to use long instead of int
add cescape fmt and scan functions to textcode
add fmt_foldwhitespace to textcode
leitner 824630a489 more BSD compat
leitner 53b201046e extended socket API; you can now pass NULL to ignore results you don't
need
leitner 92594f480b use sys/poll.h instead of poll.h for iopause
scan_ip6 returned 1 for "::"
leitner 85c18a49cb Lots of good clean-ups from Jukka Zitting!
leitner eb3596b745 ugly bug in scan_ip6 that manifests if the IPv6 number starts with a
decimal digit and :: skips the 12th byte.
leitner f908a9dcd4 fix socket routines
leitner 67b6379bbf s/socket_tcp/socket_tcp4/
leitner ae4b409c55 add and update man pages.
leitner 732c0235ba more bug fixes
leitner 40897bd709 bug fixes
leitner 24ef5b3bfc socklen_t compatibility cruft.
leitner d6ae7e2265 this time for real ;)
leitner 6a5887aa8b socklen_t test.
leitner d4753c43f3 test for ipv6 and if_name2index and socklen_t.
leitner 8ecb47a608 bsd and macosx compatibility
leitner b3edc1f613 various ip scanning fixes
leitner 03cfe1f188 be compatible to the RFC, not to the Linux kernel.
leitner cfddc730ea "::" case was handled incorrectly.
leitner 1093f1c267 oops