Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | use err vs. errx and display function; from Owl. ok fgsch@ | stevesk | 2002-12-30 | 1 | -4/+4 |
| | |||||
* | include function in error; from Owl. ok fgsch@ | stevesk | 2002-12-30 | 1 | -4/+4 |
| | |||||
* | fix calloc's. also check for errors; fixes PR/3043. | fgsch | 2002-12-28 | 1 | -5/+10 |
| | |||||
* | Recent modifications to netcat changed the behaviour to only exit when both | aaron | 2002-12-13 | 1 | -2/+2 |
| | | | | | | the read (network) and write (stdin) ends of the socket were both closed. This is not how nc traditionally works. Instead, revert back to finishing up when read() on the socket returns 0; deraadt@, vincent@ ok. | ||||
* | update usage; ok ericj@ | markus | 2002-11-13 | 1 | -3/+4 |
| | |||||
* | correct handling of EOF on both tty input and network. for example, | vincent | 2002-07-04 | 1 | -11/+15 |
| | | | | | | | this allows stuff like nc -l 10101 < /dev/null to have nc exit automatically when it gets EOF from the network. ok ericj@ | ||||
* | define SUN_LEN if it is not already for portability. | vincent | 2002-07-01 | 1 | -1/+6 |
| | | | | millert made the same suggestion, so i guess it's ok ;) | ||||
* | use SUN_LEN to calculate AF_UNIX sockaddr's length. + some style | vincent | 2002-07-01 | 1 | -22/+18 |
| | | | | ok ericj@ | ||||
* | Avoid spinning poll, and while we're at it more closely reproduce the | hugh | 2002-05-30 | 1 | -3/+9 |
| | | | | original netcat's timeout behaviour. Theo says go. | ||||
* | more snprintf | deraadt | 2002-05-29 | 1 | -2/+2 |
| | |||||
* | check that we got the port before trying to listen | ericj | 2002-03-10 | 1 | -2/+2 |
| | | | | pr 2436; Alexander Yurchenko <grange@rt.mipt.ru> | ||||
* | add support for SOCKS4 with option -X socks_version, default is 5; ok ericj@ | markus | 2002-02-28 | 1 | -5/+11 |
| | |||||
* | -Wall cleanup. | ericj | 2002-02-19 | 1 | -3/+5 |
| | | | | from Kevin Steves <stevesk@pobox.com> | ||||
* | Manual cleanup of remaining userland __P use (excluding packages maintained ↵ | millert | 2002-02-17 | 1 | -2/+2 |
| | | | | outside the tree) | ||||
* | oops, add -U to usage | ericj | 2002-02-17 | 1 | -2/+2 |
| | |||||
* | add support for connecting too and listening on AF_UNIX sockets. | ericj | 2002-02-17 | 1 | -11/+103 |
| | | | | connect support from dave@arbor.net.. rest by me | ||||
* | fix pr#2091. patch applied. | ericj | 2002-02-17 | 1 | -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 ↵ | millert | 2002-02-16 | 1 | -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#2147 | jakob | 2001-10-28 | 1 | -4/+1 |
| | |||||
* | fix getaddrinfo error handling | jakob | 2001-10-28 | 1 | -2/+2 |
| | |||||
* | KNF + ansi | jakob | 2001-09-02 | 1 | -34/+20 |
| | |||||
* | update command summary | jakob | 2001-09-02 | 1 | -3/+4 |
| | |||||
* | remove unused variable | jakob | 2001-09-02 | 1 | -3/+1 |
| | |||||
* | add very basic proxy support using socks5 client code from niklas@. | jakob | 2001-09-02 | 1 | -4/+49 |
| | | | | ok ericj@. | ||||
* | use calloc | ericj | 2001-08-25 | 1 | -3/+3 |
| | |||||
* | fix diagnostic messages | ericj | 2001-08-02 | 1 | -3/+3 |
| | | | | from Dima Dorfman <dima@unixfreak.org> | ||||
* | more magic stuff to define's | ericj | 2001-06-27 | 1 | -8/+9 |
| | |||||
* | Spit out errno message instead of just exitting. ericj@ ok. | smart | 2001-06-27 | 1 | -3/+3 |
| | |||||
* | Compile cleanly with -Wall | smart | 2001-06-27 | 1 | -13/+23 |
| | |||||
* | remove some unused var's. | ericj | 2001-06-26 | 1 | -3/+2 |
| | | | | from jasoni@ | ||||
* | allow -k for udp and tcp | ericj | 2001-06-26 | 1 | -5/+6 |
| | |||||
* | be weary of atoi(). | ericj | 2001-06-26 | 1 | -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 specified | ericj | 2001-06-26 | 1 | -2/+3 |
| | | | | | but no source address reported by jakob@ | ||||
* | rewrite telnet negotiation | ericj | 2001-06-26 | 1 | -33/+26 |
| | |||||
* | rename variable, as not to conflict | ericj | 2001-06-26 | 1 | -6/+6 |
| | |||||
* | type in usage: Surpress -> Suppress | jasoni | 2001-06-26 | 1 | -2/+2 |
| | |||||
* | Import completely re-written netcat w/ support for IPv6. | ericj | 2001-06-25 | 1 | -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. | millert | 2001-05-04 | 1 | -4/+3 |
| | | | | Removed from man page and usage; closes PR 1808 | ||||
* | fix verbosity levels. pointed out by J.D. Carlson <jd@noc7.uchsc.edu> | ericj | 2001-01-16 | 1 | -6/+7 |
| | |||||
* | -Wall cleanup | ericj | 2000-12-01 | 1 | -1/+6 |
| | |||||
* | more cleanup and have nlog() deal with errno now as well. | ericj | 2000-09-26 | 1 | -40/+24 |
| | |||||
* | no need to reset h_errno | ericj | 2000-09-26 | 1 | -31/+22 |
| | | | | | | do the cmdline correctly, deal with \n and \t fix up nlog() use arc4random instead of srandom()/random() | ||||
* | fix minor typo | ericj | 2000-09-26 | 1 | -2/+2 |
| | |||||
* | no need to use goto.. | ericj | 2000-09-26 | 1 | -22/+22 |
| | |||||
* | Implement a function for errors | ericj | 2000-09-26 | 1 | -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 -v | ericj | 2000-09-26 | 1 | -10/+11 |
| | |||||
* | Alot of cleanups to netcat | ericj | 2000-09-26 | 1 | -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 terror | deraadt | 2000-07-25 | 1 | -1/+2 |
| | |||||
* | If the timeout is not set, don't send a zeroed timeout to select. | art | 2000-07-07 | 1 | -2/+8 |
| | | | | This solves the problem with nc hogging all cpu. | ||||
* | do not assume h_errs[] is clean, use %s | deraadt | 2000-07-06 | 1 | -1/+1 |
| |