summaryrefslogtreecommitdiff
path: root/usr.sbin/tcpdrop
AgeCommit message (Collapse)Author
2019-11-27use _PATH_ names for unveil if possibleTheo de Raadt
2018-11-08tcpdrop(8) needs to access only two files, in this case /etc/hosts andRicardo Mestre
/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@
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
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)
2015-01-13Give tcpdrop a proper usage() like other programs in the tree.Lawrence Teo
ok bluhm@
2015-01-01Remove an unnecessary freeaddrinfo() call, since errx() would free allLawrence Teo
the memory including the one allocated by the earlier getaddrinfo() (pointed out by claudio@). feedback from claudio@ ok bluhm@
2014-08-28er, rehook httpd.Jason McIntyre
here's a thought: if i just leave man pages alone, they will eventually come good. while here, remove some escape sequences;
2014-06-29If you want <sys/queue.h>, you need to include it. Don't assume thatTheo de Raadt
<sys/sysctl.h> will pull in the universe (I am working on breaking that assumption in a gentle fashion)
2014-03-13Unhook httpd(8) from build; man page bitsFlorian Obser
tweaks jmc@ OK krw@, gilles@, lteo@, tedu@, todd@, benno@, sthen@ "The time is right." and much help getting the show on the road deraadt@
2014-01-10Check the return values of the strdup() calls.Lawrence Teo
OK deraadt@
2013-10-24no need for netinet/ip_var.h (and friends)Theo de Raadt
2013-07-16use .Mt for email addresses; from Jan Stary <hans at stare dot cz>; ok jmc@Ingo Schwarze
2013-07-09switch the rval to 1 before loop through the linked list \Gleydson Soares
and finally change back to 0 afterwards. so teach tcpdrop to exit 1 if \ ail->ai_family != aif_family. OK markus@
2013-07-09rename laddr2 to faddr2 for more consistency. OK markus@Gleydson Soares
2012-12-18We no longer use struct eproc for kinfo_proc in sysctl.h so thereTodd C. Miller
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@
2009-06-13tcpdrop broke with the addition of routing domains. Repair.Andreas Gunnarsson
ok claudio@
2007-07-02Add HISTORY and AUTHORS sections. OK jmc@.Xavier Santolaria
2007-05-31convert to new .Dd format;Jason McIntyre
2007-03-28flesh out the addresses to make it clear what they are; requested by jmcTheo de Raadt
2007-03-25support a 2 address format (addr:port addr:port) like fstat outputs.Theo de Raadt
also enhance ipv6 support by unpacking the [addr]:port format. ok beck, itojun, various others
2006-01-03in EXAMPLES:Jason McIntyre
- regular grep will do - root not needed for fstat from ray lai;
2006-01-03check getnameinfo() return for 0 and use errx() vs. err(); old ok markus@Kevin Steves
2004-05-24typos from Fabio Olive Leite;Jason McIntyre
2004-05-22missing headerTheo de Raadt
2004-05-09prettyTheo de Raadt
2004-04-28clean up EXAMPLES;Jason McIntyre
ok pb@
2004-04-28Improve a bit. ok markus@Otto Moerbeek
2004-04-27add an example w/ fstat(1)Philipp Buehler
2004-04-27initial documentationMarkus Friedl
2004-04-27Set oldp en oldlenp to NULL; provide feedback; set exit status.Otto Moerbeek
ok markus@
2004-04-26drop tcp connections using sysctl(2)Markus Friedl