aboutsummaryrefslogtreecommitdiff
path: root/lib/net.c
AgeCommit message (Collapse)Author
2021-01-26Fix bug pointed out by asm89 and add test.Rob Landley
2019-07-13net.c: add missing static.Elliott Hughes
Pointed out during code review of the recent refactor.
2019-07-11bind/connect cleanup.Elliott Hughes
Rename the existing xbind/xconnect to xbindany/xconnectany, to make room for new xbind/xconnect that are more like 'x' versions of the regular bind and connect. Move explicit bind/connect callers over to xbind/xconnect. Of the affected commands, only netcat is actually used by Android. It was the most recent patch to netcat that made the lack of a more traditional xbind/xconnect apparent.
2019-02-23Bumper typo cleanup.Elliott Hughes
Inspired by some of the small patches that have gone by recently. Limited to only things found in `generated/help.h`, plus a wider cleanup for the more common "milisecond" typo.
2019-02-20Make xgetaddrinfo() return a wildcard address for NULL host, and xconnbind()Rob Landley
always set SO_REUSEADDR (which won't reuse an active port but merely disables the strange "but reply packets might come in after we close the socket" hand-wringing timeout nobody's cared about in decades.)
2019-02-13Move nanomove(), nanodiff(), union socksaddr, and xrecvwait() to lib.Rob Landley
2019-01-18Teach xpoll() to measure time if interrupted, and wait for what's left.Rob Landley
2019-01-16Move xsendto() to lib/net.c.Rob Landley
2019-01-12Merge xconnect/xbind.Rob Landley
2018-12-10nc: add IPv6 support.Josh Gao
2018-07-19Tweak/add some comments.Rob Landley
2018-01-30Basic ping support.Rob Landley
Requires echo 0 $((1<<30)) > /proc/sys/net/ipv4/ping_group_range (as root)
2017-07-17Split out xgetaddrinfo() from xconnect()Rob Landley
2017-01-04Some lib fixes: mark xvfork() noinline, make xsendfile() return bytes copied,Rob Landley
make xsocket()'s returned fd CLOEXEC.
2016-10-11Make netcat work with nommu and factor out poll() loop into net/net.c.Rob Landley
2016-01-28Add SIGWINCH support to top, and implement -o and -n in pgrep/pkill.Rob Landley
2016-01-16Move create_uuid() to lib and xpoll() to lib/net.c.Rob Landley
2015-08-05Switch nbd_client to xconnect() and make xconnect() try all returned addressesRob Landley
before failing.
2015-08-05Tweak xconnect: socket can be a string (ala "ftp") from /etc/services.Rob Landley
Still need a rethink on how to handle socket/bind/connect sequence.
2015-08-03Factor out xconnect(), plus some other small cleanups to telnet.c.Rob Landley
2015-04-27Some infrastructure hexedit needs. (Poor man's curses.)Rob Landley
2013-11-02Merge toynet.h into toys.h: musl supports it and micromanaging uClibc config ↵Rob Landley
options isn't very interesting anymore.
2013-04-26Add posix headers to toynet.h, move xioctl() to lib.c, introduce lib/net.c ↵Rob Landley
and move xsocket() to it.