aboutsummaryrefslogtreecommitdiff
path: root/contrib/ipfilter/ipf.h
Commit message (Collapse)AuthorAgeFilesLines
* ipfilter: remove duplicate definition of 'thishost'Kyle Evans2020-03-291-1/+1
| | | | | | | | | | | | thishost is already defined in lib/initparse.c; no need for this one. This fixes the ipfilter build with -fno-common. -fno-common will become the default in GCC10/LLVM11. MFC after: 3 days Notes: svn path=/head/; revision=359413
* ipfilter #ifdef cleanup.Cy Schubert2019-02-031-18/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove #ifdefs for ancient and irrelevant operating systems from ipfilter. When ipfilter was written the UNIX and UNIX-like systems in use were diverse and plentiful. IRIX, Tru64 (OSF/1) don't exist any more. OpenBSD removed ipfilter shortly after the first time the ipfilter license terms changed in the early 2000's. ipfilter on AIX, HP/UX, and Linux never really caught on. Removal of code for operating systems that ipfilter will never run on again will simplify the code making it easier to fix bugs, complete partially implemented features, and extend ipfilter. Unsupported previous version FreeBSD code and some older NetBSD code has also been removed. What remains is supported FreeBSD, NetBSD, and illumos. FreeBSD and NetBSD have collaborated exchanging patches, while illumos has expressed willingness to have their ipfilter updated to 5.1.2, provided their zone-specific updates to their ipfilter are merged (which are of interest to FreeBSD to allow control of ipfilters in jails from the global zone). Reviewed by: glebius@ MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D19006 Notes: svn path=/head/; revision=343701
* TCP_PAWS_IDLE is does not exist in NetBSD and illumos. In FreeBSDCy Schubert2018-12-301-2/+0
| | | | | | | | | | | | TCP_PAWS_IDLE is defined in netinet/tcp_seq.h, however this header isn't included explicitly or implicitly at this point therefore as far ipfilter is concerned TCP_PAWS_IDLE is not defined. Remove the #ifdef and include netinet/tcp.h unconditionally. MFC after: 1 week Notes: svn path=/head/; revision=342605
* The ipftest(1) is a program that emulates ipf(4) operation and tests packetsGleb Smirnoff2015-02-191-3/+0
| | | | | | | | | | | | | | | | | against rules. It definitely doesn't need to know about kernel internals, such as 'struct ifaddr'. What it does with ifaddr, is that it only takes ifa_addr member of it, and treats it as sockaddr, while it is only a pointer to sockaddr. Fortunately, sizeof(struct ifaddr) > sizeof(struct sockaddr_in6), so no problems arise. Fix that declaring a private struct ifaddr in ipftest(1) and stop including if_var.h. Sponsored by: Netflix Sponsored by: Nginx, Inc. Notes: svn path=/head/; revision=279029
* Hide 'struct ifaddr' definition from userland. Two tools left that use it,Gleb Smirnoff2013-10-151-3/+4
| | | | | | | | | | | namely ipftest(1) and ifmcstat(1). These sniff structure definition using _WANT_IFADDR define. Sponsored by: Netflix Sponsored by: Nginx, Inc. Notes: svn path=/head/; revision=256518
* Update ipfilter 4.1.28 --> 5.1.2.Cy Schubert2013-09-061-31/+137
|\ | | | | | | | | | | | | | | Approved by: glebius (mentor) BSD Licensed by: Darren Reed <darrenr@reed.wattle.id.au> (author) Notes: svn path=/head/; revision=255332
| * As per the developers handbook (5.3.1 step 1), prepare the vendor trees forCy Schubert2013-07-191-297/+0
| | | | | | | | | | | | | | | | | | | | | | import of new ipfilter vendor sources by flattening them. To keep the tags consistent with dist, the tags are also flattened. Approved by: glebius (Mentor) Notes: svn path=/vendor/ipfilter/dist/; revision=253467
| * Import IPFilter 4.1.23 to vendor branch.Darren Reed2007-06-041-21/+14
| | | | | | | | | | | | | | See src/contrib/ipfilter/HISTORY for details of changes since 4.1.13 Notes: svn path=/vendor/ipfilter/dist/; revision=170263
| * Import IP Filter 4.1.13Guido van Rooij2006-08-161-2/+1
| | | | | | | | Notes: svn path=/vendor/ipfilter/dist/; revision=161351
| * Import IP Filter 4.1.10Guido van Rooij2005-12-301-3/+2
| | | | | | | | Notes: svn path=/vendor/ipfilter/dist/; revision=153877
* | Merge IPFilter 4.1.23 back to HEADDarren Reed2007-06-041-21/+14
| | | | | | | | | | | | | | See src/contrib/ipfilter/HISTORY for details of changes since 4.1.13 Notes: svn path=/head/; revision=170268
* | Resolve conflictsGuido van Rooij2006-08-161-2/+1
| | | | | | | | | | | | | | MFC after: 1 weeks Notes: svn path=/head/; revision=161357
* | Resolve conflicts (and believe me...you don't want to know).Guido van Rooij2005-12-301-1/+2
| | | | | | | | Notes: svn path=/head/; revision=153881
* | * Someone imported a lot of files with the wrong CVS tag, so lots of files needDarren Reed2005-04-251-1/+1
|/ | | | | | | | that fixed in them.... * Keep unnecessary files out of the non-vendor part of this CVS repository. Notes: svn path=/head/; revision=145519
* import ipfilter 4.1.8 into the vendor branchDarren Reed2005-04-251-79/+262
| | | | Notes: svn path=/vendor/ipfilter/dist/; revision=145510
* Import ipfilter 3.4.35 onto vendor branchDarren Reed2004-06-211-2/+2
| | | | Notes: svn path=/vendor/ipfilter/dist/; revision=130887
* Import IPFilter 3.4.25Darren Reed2002-03-191-1/+11
| | | | Notes: svn path=/vendor/ipfilter/dist/; revision=92686
* Import IPFilter version 3.4.20Darren Reed2001-07-281-5/+3
| | | | Notes: svn path=/vendor/ipfilter/dist/; revision=80486
* Import IP Filter 3.4.4 into FreeBSD-currentDarren Reed2000-05-241-3/+29
| | | | Notes: svn path=/vendor/ipfilter/dist/; revision=60841
* Import of ipfilter 3.3.3 in anticipation of its revival.Guido van Rooij1999-11-081-25/+29
| | | | | | | More to come in the next days. Notes: svn path=/vendor/ipfilter/dist/; revision=53024
* Import ipfilter 3.2.1 (update from 3.1.8)Peter Wemm1997-11-161-6/+12
| | | | Notes: svn path=/vendor/ipfilter/dist/; revision=31183
* Import version 3.2alpha7Darren Reed1997-05-251-8/+6
| | | | Notes: svn path=/vendor/ipfilter/dist/; revision=26119
* Import IP Filter version 3.2alpha4 to bring in working LKM for 2.2vendor/ipfilter/3.2a4Darren Reed1997-04-031-6/+20
| | | | | Notes: svn path=/vendor/ipfilter/dist/; revision=24583 svn path=/vendor/ipfilter/3.2a4/; revision=24585; tag=vendor/ipfilter/3.2a4
* Import IP Filter v3.1.7 into FreeBSD treevendor/ipfilter/3.1.7Darren Reed1997-02-091-0/+67
Notes: svn path=/vendor/ipfilter/dist/; revision=22514 svn path=/vendor/ipfilter/3.1.7/; revision=22516; tag=vendor/ipfilter/3.1.7