summaryrefslogtreecommitdiff
path: root/src/usr.bin/nc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* usage(): add -P and tweak -X; from Igor Sobradojmc2007-02-201-3/+3
|
* tweaks; from claus assmann (pr #5317);jmc2006-12-021-3/+3
|
* Also accept "HTTP/1.1 200" as a success response.ray2006-09-251-2/+3
| | | | OK djm@.
* strtoul() -> strtonum(). Also change iflag to unsigned int, sinceray2006-06-021-23/+21
| | | | | | sleep takes an unsigned integer. OK moritz@, jaredy@, and dhill@
* type correctness; from Ray Lai in PR 5011; ok millert@otto2006-02-111-2/+2
|
* remove obsolete code; from Ray Lai in PR 4998; ok tedu@ beck@otto2006-02-011-8/+1
|
* use "proxy_protocol" as the arg to -X, not "proxy_version";jmc2006-01-311-2/+2
| | | | from ray lai;
* implement HTTP proxy authentication support, very useful in a ssh_configdjm2006-01-253-23/+95
| | | | ProxyCommand; ok beck@
* Explicitly include limits.h if we are going to use its contents.millert2006-01-201-1/+2
|
* Make set_common_sockopts() a void since it doesn't return anything anyway.dtucker2005-10-251-3/+3
| | | | Makes netcat -Wall clean. ok djm@
* Add a -T option to nc to allow setting of IP type-of-service bits ondtucker2005-10-252-4/+43
| | | | connections. Man page corrections jmc@, code corrections and ok djm@
* correct rval check for socket(). from alf schlichting. ok markus@marius2005-07-241-2/+2
|
* oops... .Dl does not like to be inundated with args, and my last commit justjmc2005-07-171-3/+4
| | | | exceeded the happy number - use a display instead.
* some improvements from alf schlichting:jmc2005-07-171-14/+11
| | | | | | | | | | - correct syntax for retrieving an http page. this example further corrected by ian darwin (thanks!) - the -v flag is relatively useless when port scanning, so remove it from the example, and reword the description appropriately - udp port scans always report ports as open (i.e. are useless) so remove example claiming it works, and add CAVEATS to note that -uz is relatively useless
* set jumbo flag on the listener, too. consolidate some common code.marius2005-05-281-28/+29
| | | | ok mcbride@
* Experimental support for opportunitic use of jumbograms where only some hostsmcbride2005-05-271-8/+22
| | | | | | | | | | | | | | on the local network support them. This adds a new socket option, SO_JUMBO, and a new route flag, RTF_JUMBO. If _both_ the socket option is set and the route for the host has RTF_JUMBO set, ip_output will fragment the packet to the largest possible size for the link, ignoring the card's MTU. The semantics of this feature will be evolving rapidly; talk to us if you intend to use it. ok deraadt@ marius@
* style nit from hshoexer@avsm2005-05-261-1/+2
|
* Switch atomicio to a simpler interface which returns size_t and usesavsm2005-05-244-55/+78
| | | | | | | 0 to signal errors. should be no functional change in nc apart from different error messages. "groovy", said deraadt@
* Teach the SOCKS5 code more of the protocol, so it can send domain namesdjm2005-05-201-56/+102
| | | | | | to the proxy instead of resolving them locally and sending IPv4 addresses. This improves privacy, e.g. when using nc with OpenSSH DynamicForward tunnels, and gives us better IPv6 support; ok beck@
* HTTP proxy doesn't need an address lookup - saves some time and avoids adjm2005-05-201-2/+4
| | | | spurious error if the lookup fails. from Ray; ok markus@
* cross reference proxy example to relevant ssh option;jmc2005-05-201-3/+11
| | | | originally from ray; help/ok djm@
* fix SOCKS5 code for case where data comes in the same packet as the response;djm2005-05-191-2/+2
| | | | ok dtucker@ markus@
* KNF, no binary change; ok jaredy@djm2005-05-191-44/+44
|
* Initialize len before calling accept(2). from mpech@, ok millert@otto2005-04-101-1/+2
|
* use a standard hostname in EXAMPLES (host.example.com), which alsojmc2005-02-211-11/+12
| | | | | | fixes an error; from ray;
* Some extra strict warning cleanup. From Xin Li <delphij at FreeBSDotto2005-02-083-13/+14
| | | | dot ORG> with a twist from myself. No binary change. ok djm@
* better wording for -l;jmc2005-01-071-3/+3
|
* - better documenting of `host' and `port[s]'jmc2005-01-071-4/+25
| | | | - note that -l ignores timeouts
* explicitly mention port in an example;jmc2004-12-311-2/+2
| | | | from fgsch@
* provide a valid sockaddr_storage structure to be used as second argument forhshoexer2004-12-101-2/+2
| | | | | | accept(2) ok djm markus
* http proxy CONNECT support; ok beck@djm2004-10-173-26/+111
|
* remove return error variables.. set but never usedderaadt2004-09-151-15/+11
|
* ansi; khalek@linuxgamers.netderaadt2004-07-201-5/+1
|
* add -D for sodebug; ok deraadt, jmcmarkus2004-07-152-5/+22
|
* add keeps to SYNOPSIS and sync usage();jmc2004-03-122-5/+7
|
* Print error when connect() fails. ok markus@ deraadt@mcbride2004-03-071-1/+4
|
* spaces, was reading code..deraadt2004-03-031-4/+4
|
* add -d to usage too, from carson hardingtedu2004-03-032-4/+5
|
* resolve pr3694. add -d [etached] to ignore stdin. ok henning@ mcbride@tedu2004-03-012-5/+11
|
* - sort options and SYNOPSISjmc2004-02-202-94/+226
| | | | | | | | | | - better document which options do/don't work together - add sections showing some possible uses of nc - code (comment) typos - sync usage() and help suggestions/improvements from otto@ ok deraadt@
* rename tcp sockopt TCP_SIGNATURE_ENABLE to TCP_MD5SIGhenning2004-01-311-3/+3
| | | | | requested by theo ok markus@ hshoexer@
* -S enables tcp md5 signature option; ok deraadt@, mcbride@markus2004-01-222-6/+25
|
* check alloca; pointed out by nimadeus@pandora.bederaadt2003-10-191-2/+3
|
* Off-by-ones, from aaron@miod2003-09-221-2/+2
|
* document -w timeout; from cedric@jmc2003-09-051-1/+15
| | | | ok deraadt@
* refer to RFCs consistently (RFC XXXX);jmc2003-08-081-2/+2
|
* Kill dead code after errx(). From Andrey Matveev; ericj@ OKmillert2003-07-251-5/+2
|
* protosderaadt2003-07-073-6/+10
|
* in the unix domain socket case, give an ENAMETOOLONG error instead ofavsm2003-07-071-3/+17
| | | | | silently truncating the socket file millert@ ok
* more proto fixesderaadt2003-06-262-6/+12
|