summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tcpdrop (follow)
Commit message (Collapse)AuthorAgeFilesLines
* use _PATH_ names for unveil if possiblederaadt2019-11-271-3/+4
|
* tcpdrop(8) needs to access only two files, in this case /etc/hosts andmestre2018-11-081-2/+10
| | | | | | | | | /etc/resolv.conf both with read permissions for the purpose of name resolution, so unveil(2) both files with "r" perms and disable further filesystem access. While here sort the headers alphabetically. OK bluhm@
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-161-2/+1
| | | | | | | | | possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
* Give tcpdrop a proper usage() like other programs in the tree.lteo2015-01-131-14/+20
| | | | ok bluhm@
* Remove an unnecessary freeaddrinfo() call, since errx() would free alllteo2015-01-011-4/+2
| | | | | | | | the memory including the one allocated by the earlier getaddrinfo() (pointed out by claudio@). feedback from claudio@ ok bluhm@
* er, rehook httpd.jmc2014-08-281-6/+6
| | | | | | | here's a thought: if i just leave man pages alone, they will eventually come good. while here, remove some escape sequences;
* If you want <sys/queue.h>, you need to include it. Don't assume thatderaadt2014-06-291-1/+2
| | | | | <sys/sysctl.h> will pull in the universe (I am working on breaking that assumption in a gentle fashion)
* Unhook httpd(8) from build; man page bitsflorian2014-03-131-5/+5
| | | | | | | tweaks jmc@ OK krw@, gilles@, lteo@, tedu@, todd@, benno@, sthen@ "The time is right." and much help getting the show on the road deraadt@
* Check the return values of the strdup() calls.lteo2014-01-101-1/+9
| | | | OK deraadt@
* no need for netinet/ip_var.h (and friends)deraadt2013-10-241-2/+1
|
* use .Mt for email addresses; from Jan Stary <hans at stare dot cz>; ok jmc@schwarze2013-07-161-3/+3
|
* switch the rval to 1 before loop through the linked list \gsoares2013-07-091-1/+3
| | | | | | | and finally change back to 0 afterwards. so teach tcpdrop to exit 1 if \ ail->ai_family != aif_family. OK markus@
* rename laddr2 to faddr2 for more consistency. OK markus@gsoares2013-07-091-8/+8
|
* We no longer use struct eproc for kinfo_proc in sysctl.h so theremillert2012-12-181-1/+2
| | | | | | | is no direct need for sys/proc.h or sys/resource.h. Some consumers of kinfo_proc need these for the proc flags and rlimit defines like RLIM_INF so add the appropriate includes to them. OK deraadt@ sthen@
* tcpdrop broke with the addition of routing domains. Repair.andreas2009-06-131-1/+2
| | | | ok claudio@
* Add HISTORY and AUTHORS sections. OK jmc@.xsa2007-07-021-2/+13
|
* convert to new .Dd format;jmc2007-05-311-2/+2
|
* flesh out the addresses to make it clear what they are; requested by jmcderaadt2007-03-282-14/+16
|
* support a 2 address format (addr:port addr:port) like fstat outputs.deraadt2007-03-252-19/+60
| | | | | also enhance ipv6 support by unpacking the [addr]:port format. ok beck, itojun, various others
* in EXAMPLES:jmc2006-01-031-2/+2
| | | | | | | - regular grep will do - root not needed for fstat from ray lai;
* check getnameinfo() return for 0 and use errx() vs. err(); old ok markus@stevesk2006-01-031-7/+7
|
* typos from Fabio Olive Leite;jmc2004-05-241-3/+3
|
* missing headerderaadt2004-05-221-1/+2
|
* prettyderaadt2004-05-091-6/+4
|
* clean up EXAMPLES;jmc2004-04-281-9/+9
| | | | ok pb@
* Improve a bit. ok markus@otto2004-04-281-7/+6
|
* add an example w/ fstat(1)pb2004-04-271-1/+19
|
* initial documentationmarkus2004-04-271-0/+41
|
* Set oldp en oldlenp to NULL; provide feedback; set exit status.otto2004-04-271-9/+27
| | | | ok markus@
* drop tcp connections using sysctl(2)markus2004-04-262-0/+91