aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ipfwpcap
Commit message (Collapse)AuthorAgeFilesLines
* ipfwpcap: Fix build after libpcap 1.10.6 updateJoseph Mingrone2026-03-151-7/+2
| | | | | | | | | | pcap-int.h now references SIZEOF_TIME_T from libpcap's config.h, which is not available to consumers of the internal header outside of the libpcap build. Switch to the public <pcap.h> header and replace the direct FILE* casts and ferror()/fflush() calls with pcap_dump_flush(3), which is the correct public API for flushing a pcap dump file. Sponsored by: The FreeBSD Foundation
* 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$: two-line .h patternWarner Losh2023-08-161-2/+0
| | | | Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
* Update/fix Makefile.depend for userlandSimon J. Gerraty2023-04-191-1/+1
|
* ipfwpcap: use PF_DIVERT/SOCK_RAW instead of PF_INET/SOCK_RAW/IPPROTO_DIVERTGleb Smirnoff2022-08-301-1/+1
|
* Buildfix for GCC after r334277.Hans Petter Selasky2018-05-281-0/+2
| | | | | | | | MFC after: 1 month Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=334279
* Remove "all rights reserved" on files where I have copyright.Niclas Zeising2018-05-091-1/+0
| | | | | | | | | | According to r333391 it is not needed any more. Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D15370 Notes: svn path=/head/; revision=333420
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* usr.sbin: normalize paths using SRCTOP-relative paths or :H when possibleEnji Cooper2017-03-041-1/+1
| | | | | | | | | | This simplifies make logic/output MFC after: 1 month Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=314659
* MFV r313676: libpcap 1.8.1Xin LI2017-02-131-0/+1
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=313695
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+19
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | 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 sync of headSimon J. Gerraty2015-05-271-2/+1
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * 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 from headSimon J. Gerraty2012-11-041-2/+2
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=242545
| * | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | Convert usr.sbin to LIBADDBaptiste Daroussin2014-11-251-2/+1
| |_|/ |/| | | | | | | | | | | | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275054
* | | 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
* | Update my e-mail to my FreeBSD one.Niclas Zeising2012-07-191-2/+2
|/ | | | | | | Approved by: joel (mentor) Notes: svn path=/head/; revision=238612
* Replace index() and rindex() calls with strchr() and strrchr().Ed Schouten2012-01-031-1/+1
| | | | | | | | | | | | | The index() and rindex() functions were marked LEGACY in the 2001 revision of POSIX and were subsequently removed from the 2008 revision. The strchr() and strrchr() functions are part of the C standard. This makes the source code a lot more consistent, as most of these C files also call into other str*() routines. In fact, about a dozen already perform strchr() calls. Notes: svn path=/head/; revision=229403
* The last big commit: let usr.sbin/ use WARNS=6 by default.Ed Schouten2010-01-021-2/+0
| | | | Notes: svn path=/head/; revision=201390
* Several cleanups to ipfwpcap(8).Ed Schouten2009-05-312-63/+62
| | | | | | | | | | | | | | | | - Enable WARNS?=6. - Include missing headers. - Mark prog and pidfile as static. Remove unneeded initializer. - Use ANSI prototypes. - Remove unneeded fp variable. - snprintf() guarantees the buffer to be null terminated. Remove unneeded - 1 and bzero call. - Remove unneeded casting. Submitted by: Pawel Worach, Christoph Mallon Notes: svn path=/head/; revision=193188
* Add a signal handler for SIGINT to make sure that the PID fileChristian S.J. Peron2007-10-121-0/+1
| | | | | | | | | | | | | gets cleaned up upon receiving SIGINT. This un-breaks subsequent executions of ipfwpcap and helps when debugging network/divert issues like this: ipfwpcap -r 6000 - | tcpdump -r - MFC after: 1 week Notes: svn path=/head/; revision=172581
* Change authors e-mail.Joel Dahl2006-11-121-1/+1
| | | | | | | Requested by: Niclas Zeising Notes: svn path=/head/; revision=164228
* Revise markup.Ruslan Ermilov2006-09-301-7/+10
| | | | Notes: svn path=/head/; revision=162893
* add define's from config.h for pcap-int.h; this is a noop nowSam Leffler2006-09-041-0/+4
| | | | | | | but will be required for libpcap 0.9.4 Notes: svn path=/head/; revision=162011
* s/packages/packets/Joel Dahl2006-05-221-2/+2
| | | | | | | Noticed by: maxim Notes: svn path=/head/; revision=158822
* Add manual page for ipfwpcap(8).Joel Dahl2006-05-222-1/+130
| | | | | | | | Reviewed by: phk, brueffer Submitted by: Niclas Zeising <lothrandil@n00b.apagnu.se> Notes: svn path=/head/; revision=158821
* Add a small tool which captures packets on a DIVERT socket and writesPoul-Henning Kamp2005-10-172-0/+320
them as pcap (tcpdump) format data to a file or pipe. Volunters wanted for: manpage Contributed by: P Kern <pkern@cns.utoronto.ca> Notes: svn path=/head/; revision=151427