summaryrefslogtreecommitdiff
path: root/usr.bin/nc
AgeCommit message (Expand)Author
2016-01-04Use the correct values for TLS certificate / private key flags.Brent Cook
2015-12-28include time.h over sys/time.h for ctime(3)Brent Cook
2015-12-17Add missing colon after "Peer name" in verbose output. Mentioned on themmcc
2015-12-16clean up some unused variables, and add the printing of the certificate validityBob Beck
2015-12-10Specify SOCKS version in error messages. ok deraadt@mmcc
2015-12-10Map SOCKS error codes to error strings. With input from deraadt@mmcc
2015-12-08pledge nc better - Load the certificate into memory and then do the pledge,Bob Beck
2015-12-07Get rid of modulo bias and replace the naive shuffle by thetb
2015-11-23rename variable 'sun' to allow building on SolarisBrent Cook
2015-11-13Since rtable was hoisted to the top with setrtable, it should have noTheo de Raadt
2015-11-12with -V argument, dont set rtable on the socket, instead set if for the wholeSebastian Benoit
2015-11-01KNF; from Rob PierceTheo de Raadt
2015-10-23Initial pledge of netcat - unfortunately flawed because fiddling the rtableidBob Beck
2015-10-11Userspace doesn't need to use SUN_LEN(): connect() and bind() must acceptPhilip Guenther
2015-09-25avoid trailing .Ns, reduce .Xo and .Sm, drop redundant .BkIngo Schwarze
2015-09-13display negotiated TLS version and cipher suite in verbose mode.Bob Beck
2015-09-12Adapt to just committed libtls api changeBob Beck
2015-09-12use SOCK_CLOEXEC instead of fnctl; ok guenther beck jsingTheo de Raadt
2015-09-12fix previous;Jason McIntyre
2015-09-11spaces found during a readTheo de Raadt
2015-09-11Add TLS suppport to nc. Provides a useful little test and script tool.Bob Beck
2015-09-08Netcat could hang during write(2) although poll(2) reports that theAlexander Bluhm
2015-09-03synchronize synopsis and usage.Igor Sobrado
2015-07-26remove unused variableCharles Longeau
2015-03-26The code in socks.c writes multiple times in a row to a socket. If theTobias Stoeckmann
2015-03-26Fix error message in case of write failure.Tobias Stoeckmann
2015-03-26Check for short writes in fdpass(). Clean up while at it.Tobias Stoeckmann
2015-03-26Sync camel case of "ProxyUseFdpass" with ssh_config(5).Tobias Stoeckmann
2015-02-14Support for nc -T on IPv6 addresses.Jeremie Courreges-Anglas
2014-10-30my mistake. we already did increase buffers to 16k; increasing to 64kTed Unangst
2014-10-30rework the poll loop to poll in both directions so it doesn't get stuckTed Unangst
2014-10-26POLLIN is not guaranteed to be set in revents for EOF so check forTodd C. Miller
2014-10-24Remove unnecessary include: netinet/in_systm.h is not needed by theseLawrence Teo
2014-07-20Make sure the correct errno is reported by warn* or err* and notPhilip Guenther
2014-06-10stick with 16k buffers for a little while to avoid bufferbloat.Ted Unangst
2014-06-10increase buffer size to 64k, and actually use it. ok deraadtTed Unangst
2014-05-20Use errc/warnc to simplify code.Philip Guenther
2014-03-12Unbreak nc -6 -l. Don't retrieve and thus later set the routing tableJeremie Courreges-Anglas
2014-02-26Once more, the default routing table id is inherited from the processClaudio Jeker
2014-02-10one of the examples needs -N to work again;Jason McIntyre
2013-10-26Only use setsockopt(..SO_RTABLE..) if the -V flag is given to nc/telnet,Stuart Henderson
2013-10-21Oups, a little bit overzealous. If we "route -T4 exec telnet foo", thenPeter Hessler
2013-10-21Set the requested rdomain on the socket instead of only on the IPv4 part.Peter Hessler
2013-08-20escape not-full-stop-dot at eol;Jason McIntyre
2013-08-20add -F to usage() and help();Jason McIntyre
2013-08-20add -F flag to enabled fd-pass mode: establish connection and passDamien Miller
2013-07-16use .Mt for email addresses; from Jan Stary <hans at stare dot cz>; ok jmc@Ingo Schwarze
2013-04-29use FD_CLOEXEC instead of 1; from David HillOkan Demirmen
2013-03-20Don't shutdown nc(1)'s network socket when stdin closes. Matches *Hobbit*'sStuart Henderson
2013-03-12All accept() errors are considered fatal, until someone gives a differentTheo de Raadt