aboutsummaryrefslogtreecommitdiff
path: root/sys/contrib/ipfilter/netinet/ip_pool.c
Commit message (Collapse)AuthorAgeFilesLines
* ipfilter: Move kernel bits to netpfilCy Schubert2021-12-201-1475/+0
| | | | | | | | | | | | | | | | Through fixes and improvements our ipfilter sources have diverged enough to warrant move from contrib into sys/netpil. Now that I'm planning on implementing MSS clamping as in iptables it makes more sense to move ipfilter to netpfil. This is the first of three commits the ipfilter move. Suggested by glebius on two occaions. Suggested by and discussed with: glebius Reviewed by: glebius, kp (for #network) MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D33510
* ipfilter: Replace sprintf with range checking version (snprintf)Cy Schubert2021-12-141-2/+2
| | | | MFC after: 1 week
* ipfilter: The SNPRINTF macro doesn't exist, remove itCy Schubert2021-12-141-8/+0
| | | | MFC after: 1 week
* Simplify the FreeBSD check using __FreeBSD__ compiler macro.Cy Schubert2021-02-091-1/+1
| | | | | | | | Rather than rely on __FreeBSD_version, defined in sys/param.h, use __FreeBSD__ defined by the compiler. Reported by: emaste MFC after: 1 week
* Indentation cleanup resulting from the cleanup of #ifdefs.Cy Schubert2021-02-021-1/+1
| | | | | | | | | | | The conscious decision was made not to perform any indentation or whitespace cleanup while cleaning out old redunant #ifdefs. The reason for this was to avoid confusing future readers of history and diffs with cosmetic changes, making bisection of any possible bugs introduced more difficult. This commit cleans up the whitespace detritus left behind from the previous #ifdef cleanup commits. MFC after: 1 week
* Retire the K&R/STD C __P prototype declarations.Cy Schubert2021-02-021-37/+37
| | | | | | | | | In the old days when K&R C and STD C were each in use a workaround (read hack) was required to allow the same code to work on each without modification. All C compilers support STD C. We can finally put the __P prototype to rest. MFC after: 1 week
* ipfilter #ifdef cleanup.Cy Schubert2019-02-031-8/+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
* Update ipfilter 4.1.28 --> 5.1.2.Cy Schubert2013-09-061-387/+884
|\ | | | | | | | | | | | | | | 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-992/+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-sys/ipfilter/dist/; revision=253467
* Import IPFilter 4.1.28Darren Reed2007-10-181-50/+37
| | | | Notes: svn path=/vendor-sys/ipfilter/dist/; revision=172771
* Import IPFilter 4.1.23 to vendor branch.Darren Reed2007-06-041-77/+298
| | | | | | | See src/contrib/ipfilter/HISTORY for details of changes since 4.1.13 Notes: svn path=/vendor-sys/ipfilter/dist/; revision=170263
* Import IP Filter version 4.1.10Guido van Rooij2005-12-301-7/+5
| | | | Notes: svn path=/vendor-sys/ipfilter/dist/; revision=153872
* import ipfilter 4.1.8 into the kernel source treeDarren Reed2005-04-251-0/+786
Notes: svn path=/vendor-sys/ipfilter/dist/; revision=145516