summaryrefslogtreecommitdiff
path: root/usr.bin/nc/netcat.c
AgeCommit message (Expand)Author
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
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-20add -F to usage() and help();Jason McIntyre
2013-08-20add -F flag to enabled fd-pass mode: establish connection and passDamien Miller
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
2012-07-07Allow UDP server to receive datagrams from multiple socket pairs with -kChristiano F. Haesbaert
2012-07-07Report incoming connections when -l is specified with -v.Christiano F. Haesbaert
2012-04-01error out if accept() failsTheo de Raadt
2012-03-17remove IP_JUMBO, SO_JUMBO, and RTF_JUMBO.David Gwynne
2012-02-09Update comments. ok deraadt@lum
2012-02-09Remove unused protocol value check. ok brynet@lum
2011-10-04change -w to apply to the connection as well. manpage bit from jmc@Federico G. Schwindt
2011-09-17Standarize the ToS option across nc/ping/traceroute so that they'llChristiano F. Haesbaert
2011-06-21Convert SO_RTABLE's protocol level to the SOL_SOCKET; ok claudioMike Belopuhov
2011-01-09Minor tweaks to nc(1) man page and usage.Jeremy Evans
2011-01-08Support unix domain sockets in nc(1) with -Uu.Jeremy Evans
2010-07-03Fix the naming of interfaces and variables for rdomains and rtablesPhilip Guenthe
2010-04-20Bump the default buffer sizes to be larger than default MTUs, from JanNicholas Marriott
2010-04-20Allocate the port number properly (don't allocate space then ignore it),Nicholas Marriott
2010-02-27Fix the atelnet() function, which was wrong in several ways.Nicholas Marriott
2009-10-08Do not write "Connection to ... succeeded" messages to stdout.Marco Pfatschbacher
2009-06-05The networking swissarmy knife needs to work on alternate domains as well.Claudio Jeker
2008-09-19documentation tweaks; synchronize synopsis and usage.Igor Sobrado
2008-05-09try SO_BINDANY for -s, but do not insist; ok bob, reykMarkus Friedl
2008-05-06allow setting of TCP send/receive buffer sizes; ok markus@Damien Miller
2007-02-20usage(): add -P and tweak -X; from Igor SobradoJason McIntyre
2006-06-02strtoul() -> strtonum(). Also change iflag to unsigned int, sinceRay Lai
2006-02-01remove obsolete code; from Ray Lai in PR 4998; ok tedu@ beck@Otto Moerbeek
2006-01-25implement HTTP proxy authentication support, very useful in a ssh_configDamien Miller
2006-01-20Explicitly include limits.h if we are going to use its contents.Todd C. Miller
2005-10-25Make set_common_sockopts() a void since it doesn't return anything anyway.Darren Tucker
2005-10-25Add a -T option to nc to allow setting of IP type-of-service bits onDarren Tucker
2005-07-24correct rval check for socket(). from alf schlichting. ok markus@marius eriksen
2005-05-28set jumbo flag on the listener, too. consolidate some common code.marius eriksen
2005-05-27Experimental support for opportunitic use of jumbograms where only some hostsRyan Thomas McBride
2005-05-24Switch atomicio to a simpler interface which returns size_t and usesAnil Madhavapeddy
2005-04-10Initialize len before calling accept(2). from mpech@, ok millert@Otto Moerbeek
2005-02-08Some extra strict warning cleanup. From Xin Li <delphij at FreeBSDOtto Moerbeek