summaryrefslogtreecommitdiff
path: root/usr.bin/nc/netcat.c
AgeCommit message (Collapse)Author
2000-12-01-Wall cleanupEric Jackson
2000-09-26more cleanup and have nlog() deal with errno now as well.Eric Jackson
2000-09-26no need to reset h_errnoEric Jackson
do the cmdline correctly, deal with \n and \t fix up nlog() use arc4random instead of srandom()/random()
2000-09-26fix minor typoEric Jackson
2000-09-26no need to use goto..Eric Jackson
2000-09-26Implement a function for errorsEric Jackson
it pays attention to h_error so we now have no need to handle this ourselves.
2000-09-26some warnings should only be shown with -vEric Jackson
2000-09-26Alot of cleanups to netcatEric Jackson
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
2000-07-25a quick fix, and then i run away screaming in terrorTheo de Raadt
2000-07-07If the timeout is not set, don't send a zeroed timeout to select.Artur Grabowski
This solves the problem with nc hogging all cpu.
2000-07-06do not assume h_errs[] is clean, use %sTheo de Raadt
2000-01-31massive indent passTheo de Raadt
2000-01-24first cut at indent.. more to comeTheo de Raadt
1999-08-16include unistd.hArtur Grabowski
1999-06-05buf oflow; and use inet_aton()Theo de Raadt
1997-04-07paranoid about MAXHOSTNAMELENTheo de Raadt
1997-01-15getopt(3) returns -1 when out of args, not EOF, whee!Todd C. Miller
1996-09-05nc is *hobbit*'s netcat; let the sysadm have the same tools the crackersTheo de Raadt
have, so that he may learn what the network is about and protect it better.