summaryrefslogtreecommitdiff
path: root/src/usr.bin/nc/netcat.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* check that we got the port before trying to listenericj2002-03-101-2/+2
| | | | pr 2436; Alexander Yurchenko <grange@rt.mipt.ru>
* add support for SOCKS4 with option -X socks_version, default is 5; ok ericj@markus2002-02-281-5/+11
|
* -Wall cleanup.ericj2002-02-191-3/+5
| | | | from Kevin Steves <stevesk@pobox.com>
* Manual cleanup of remaining userland __P use (excluding packages maintained ↵millert2002-02-171-2/+2
| | | | outside the tree)
* oops, add -U to usageericj2002-02-171-2/+2
|
* add support for connecting too and listening on AF_UNIX sockets.ericj2002-02-171-11/+103
| | | | connect support from dave@arbor.net.. rest by me
* fix pr#2091. patch applied.ericj2002-02-171-2/+2
| | | | | patch from Brian J. Kifiak <bk@rt.fm> should be looked at closer..
* Part one of userland __P removal. Done with a simple regexp with some minor ↵millert2002-02-161-9/+9
| | | | hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
* remove bogus error-check, resolve pr#2147jakob2001-10-281-4/+1
|
* fix getaddrinfo error handlingjakob2001-10-281-2/+2
|
* KNF + ansijakob2001-09-021-34/+20
|
* update command summaryjakob2001-09-021-3/+4
|
* remove unused variablejakob2001-09-021-3/+1
|
* add very basic proxy support using socks5 client code from niklas@.jakob2001-09-021-4/+49
| | | | ok ericj@.
* use callocericj2001-08-251-3/+3
|
* fix diagnostic messagesericj2001-08-021-3/+3
| | | | from Dima Dorfman <dima@unixfreak.org>
* more magic stuff to define'sericj2001-06-271-8/+9
|
* Spit out errno message instead of just exitting. ericj@ ok.smart2001-06-271-3/+3
|
* Compile cleanly with -Wallsmart2001-06-271-13/+23
|
* remove some unused var's.ericj2001-06-261-3/+2
| | | | from jasoni@
* allow -k for udp and tcpericj2001-06-261-5/+6
|
* be weary of atoi().ericj2001-06-261-8/+19
| | | | suggested by theo.. also do range checking on ports
* dont set the source address to 127.0.0.1 if a local port is specifiedericj2001-06-261-2/+3
| | | | | but no source address reported by jakob@
* rewrite telnet negotiationericj2001-06-261-33/+26
|
* rename variable, as not to conflictericj2001-06-261-6/+6
|
* type in usage: Surpress -> Suppressjasoni2001-06-261-2/+2
|
* Import completely re-written netcat w/ support for IPv6.ericj2001-06-251-1278/+463
| | | | | very little usage has changed, man page soon to come for it as well. deraadt@ ok
* GAPING_SECURITY_HOLE was removed so there is no -e option.millert2001-05-041-4/+3
| | | | Removed from man page and usage; closes PR 1808
* fix verbosity levels. pointed out by J.D. Carlson <jd@noc7.uchsc.edu>ericj2001-01-161-6/+7
|
* -Wall cleanupericj2000-12-011-1/+6
|
* more cleanup and have nlog() deal with errno now as well.ericj2000-09-261-40/+24
|
* no need to reset h_errnoericj2000-09-261-31/+22
| | | | | | do the cmdline correctly, deal with \n and \t fix up nlog() use arc4random instead of srandom()/random()
* fix minor typoericj2000-09-261-2/+2
|
* no need to use goto..ericj2000-09-261-22/+22
|
* Implement a function for errorsericj2000-09-261-62/+79
| | | | | it pays attention to h_error so we now have no need to handle this ourselves.
* some warnings should only be shown with -vericj2000-09-261-10/+11
|
* Alot of cleanups to netcatericj2000-09-261-830/+571
| | | | | | | | | | | | use errx/warn instead of homegrown functions indent properly to make the code readable get rid of generic.h as its not used dont declare optarg register is depreciated get rid of undocumented options -a and -e throw out IP_OPTIONS code for now, its not on by default and doesnt work properly make usage more like other bsd commands
* a quick fix, and then i run away screaming in terrorderaadt2000-07-251-1/+2
|
* If the timeout is not set, don't send a zeroed timeout to select.art2000-07-071-2/+8
| | | | This solves the problem with nc hogging all cpu.
* do not assume h_errs[] is clean, use %sderaadt2000-07-061-1/+1
|
* massive indent passderaadt2000-01-311-262/+195
|
* first cut at indent.. more to comederaadt2000-01-241-1126/+1175
|
* include unistd.hart1999-08-161-0/+3
|
* buf oflow; and use inet_aton()deraadt1999-06-051-5/+3
|
* paranoid about MAXHOSTNAMELENderaadt1997-04-071-10/+12
|
* getopt(3) returns -1 when out of args, not EOF, whee!millert1997-01-151-1/+1
|
* nc is *hobbit*'s netcat; let the sysadm have the same tools the crackersderaadt1996-09-051-0/+1668
have, so that he may learn what the network is about and protect it better.