aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/tcpdrop
Commit message (Collapse)AuthorAgeFilesLines
* usr.sbin: Automated cleanup of cdefs and other formattingWarner Losh2023-11-271-1/+0
| | | | | | | | | | | | | | | | Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row. Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/ Sponsored by: Netflix
* Remove $FreeBSD$: two-line nroff patternWarner Losh2023-08-161-2/+0
| | | | Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-162-2/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-161-2/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* Mark usage function as __dead2 in programs where it does not returnAlfonso Gregory2023-07-071-1/+1
| | | | | | | | In most cases, usage does not return, so mark them as __dead2. For the cases where they do return, they have not been marked __dead2. Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/735
* Update/fix Makefile.depend for userlandSimon J. Gerraty2023-04-191-1/+0
|
* tcpdrop: tweak commentsMichael Tuexen2021-12-041-2/+2
| | | | | MFC after: 1 week Sponsored by: Netflix, Inc.
* tcpdrop: explicitly choose TCP as the transport protocolMichael Tuexen2021-12-041-0/+1
| | | | | MFC after: 1 week Sponsored by: Netflix, Inc.
* tcpdrop: allow TCP connections to be filtered by cc-algoMichael Tuexen2021-12-042-18/+55
| | | | | | | | | In addition to filtering by stack and state, allow filtering by the congestion control module used. Choose the command line options to be consistent with the ones of sockstat. MFC after: 1 week Sponsored by: Netflix, Inc.
* tcpdrop: update man page, since the fastack stack has been removedMichael Tuexen2021-12-041-5/+5
| | | | | MFC after: 1 week Sponsored by: Netflix, Inc.
* tcpdrop: use a better name of a variable.Michael Tuexen2021-12-041-6/+6
| | | | | | | No functional change intended. MFC after: 1 week Sponsored by: Netflix, Inc.
* Use uintptr_t alone when assigning to kvaddr_t variables.Brooks Davis2018-07-101-1/+1
| | | | | | | Suggested by: jhb Notes: svn path=/head/; revision=336170
* Work around lame warnings in ancient gcc on 32-bit platforms.Brooks Davis2018-07-051-1/+1
| | | | | | | Fixes r335979. Notes: svn path=/head/; revision=336002
* tcpdrop: ensure NUL termination of a stringEric van Gyzen2018-05-281-3/+3
| | | | | | | | | | | | | strncpy did not guarantee NUL termination of the "stack" string. Use strlcpy instead. While I'm here, avoid unnecessary memset and strnlen calls. Reported by: Coverity CID: 1381035 Sponsored by: Dell EMC Notes: svn path=/head/; revision=334265
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Remove empty line accidently introduced in r323626.Michael Tuexen2017-09-151-1/+0
| | | | Notes: svn path=/head/; revision=323627
* Add references. Suggested by Maxim Konovalov.Michael Tuexen2017-09-151-2/+5
| | | | | | | Sponsored by: Netflix, Inc. Notes: svn path=/head/; revision=323626
* Bump date missed in r323596. Trim trailing whitespace.Michael Tuexen2017-09-141-2/+2
| | | | | | | Sponsored by: Netflix, Inc. Notes: svn path=/head/; revision=323599
* Add a description how tcpdrop handles the case of specifying theMichael Tuexen2017-09-141-0/+20
| | | | | | | | | -s and the -S option. Sponsored by: Netflix, Inc. Notes: svn path=/head/; revision=323596
* Allow TCP connections to be filtered by stack and state.Michael Tuexen2017-09-122-14/+108
| | | | | | | | | | Choose the command line options to be consistent with the ones of sockstat. Sponsored by: Netflix, Inc. Notes: svn path=/head/; revision=323493
* o Clean the whole array of IPv4 addresses not just a local part.Maxim Konovalov2017-04-281-1/+1
| | | | | | | | PR: 218923 Submitted by: Daniel McRobb Notes: svn path=/head/; revision=317546
* Hide struct inpcb, struct tcpcb from the userland.Gleb Smirnoff2017-03-211-9/+7
| | | | | | | | | | | | | | | | | | | | | | | This is a painful change, but it is needed. On the one hand, we avoid modifying them, and this slows down some ideas, on the other hand we still eventually modify them and tools like netstat(1) never work on next version of FreeBSD. We maintain a ton of spares in them, and we already got some ifdef hell at the end of tcpcb. Details: - Hide struct inpcb, struct tcpcb under _KERNEL || _WANT_FOO. - Make struct xinpcb, struct xtcpcb pure API structures, not including kernel structures inpcb and tcpcb inside. Export into these structures the fields from inpcb and tcpcb that are known to be used, and put there a ton of spare space. - Make kernel and userland utilities compilable after these changes. - Bump __FreeBSD_version. Reviewed by: rrs, gnn Differential Revision: D10018 Notes: svn path=/head/; revision=315662
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+18
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge head from 7/28Simon J. Gerraty2014-08-191-2/+2
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=270164
| * Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * Sync with HEAD.David E. O'Brien2013-02-082-4/+39
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246555
| * | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+19
| | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | use .Mt to mark up email addresses consistently (part2)Baptiste Daroussin2014-06-201-2/+2
| |/ |/| | | | | | | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de> Notes: svn path=/head/; revision=267668
* | Allow the address and ports to be separated by a colon or period ratherJohn Baldwin2013-01-302-4/+39
|/ | | | | | | | | | | than a space to permit directly pasting the output of commands such as netstat and sockstat on the command line. Reviewed by: net MFC after: 1 week Notes: svn path=/head/; revision=246129
* Include param.h for CACHE_LINE_SIZE to unbreak the build.Bjoern A. Zeeb2011-06-061-1/+2
| | | | Notes: svn path=/head/; revision=222765
* o Remove an incomplete sentence.Maxim Konovalov2011-04-231-2/+0
| | | | | | | | | PR: docs/156593 Submitted by: Yuri Pankov MFC after: 1 week Notes: svn path=/head/; revision=220965
* The last big commit: let usr.sbin/ use WARNS=6 by default.Ed Schouten2010-01-021-1/+0
| | | | Notes: svn path=/head/; revision=201390
* o) Restructure tcpdrop(8) to provide a facility to try to drop all establishedJuli Mallett2009-06-012-56/+319
| | | | | | | | | | | | | connections. Including a flag to instead output a sequence of tcpdrop(8) invocations that would accomplish the same thing, which is convenient for scripting. o) Make tcpdrop complain if the addresses given to it are entirely in different address families, rather than failing silently. o) When cross-referencing httpd(8), do not explicitly specify the apache2 port, since the example in question is generic. Notes: svn path=/head/; revision=193203
* Normalize usage output.Ruslan Ermilov2007-10-311-2/+4
| | | | Notes: svn path=/head/; revision=173223
* - Remove MLINKS to nonexistant manpagesChristian Brueffer2005-07-141-1/+1
| | | | | | | | | | - Change some section numbers to match reality - For MLINKS to manpages from ports, mention which port installs them MFC after: 3 days Notes: svn path=/head/; revision=148011
* o Improve the example a bit.Maxim Konovalov2005-03-141-1/+1
| | | | | | | Submitted by: hrs Notes: svn path=/head/; revision=143583
* Sort xrefsMaxim Konovalov2005-03-141-2/+2
| | | | Notes: svn path=/head/; revision=143569
* o Replace OpenBSD-specific example by FreeBSD's one.Maxim Konovalov2005-03-141-4/+4
| | | | | | | Noticed by: Daniel O'Connor Notes: svn path=/head/; revision=143568
* o Add handling of an IPv4-mapped IPv6 address.Maxim Konovalov2005-02-141-4/+5
| | | | | | | | | | | | | | | | o Use SYSCTL_IN() macro instead of direct call of copyin(9). Submitted by: ume o Move sysctl_drop() implementation to sys/netinet/tcp_subr.c where most of tcp sysctls live. o There are net.inet[6].tcp[6].getcred sysctls already, no needs in a separate struct tcp_ident_mapping. Suggested by: ume Notes: svn path=/head/; revision=141886
* o Implement net.inet.tcp.drop sysctl and userland part, tcpdrop(8)Maxim Konovalov2005-02-063-0/+160
utility: The tcpdrop command drops the TCP connection specified by the local address laddr, port lport and the foreign address faddr, port fport. Obtained from: OpenBSD Reviewed by: rwatson (locking), ru (man page), -current MFC after: 1 month Notes: svn path=/head/; revision=141381