| #
c1f6704b
|
| 15-Oct-2023 |
Elyes Haouas <ehaouas@noos.fr> |
ipf: Fix some typos
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
|
| #
51e16cb8
|
| 23-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
sbin: Remove ancient SCCS tags.
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl
sbin: Remove ancient SCCS tags.
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script.
Sponsored by: Netflix
show more ...
|
| #
2a63c3be
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line .c comment pattern
Remove /^/[*/]\s*\$FreeBSD\$.*\n/
|
| #
e095cbab
|
| 01-Jun-2023 |
Elyes Haouas <ehaouas@noos.fr> |
ipf/ipfstat: Fix typos
Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/653
|
| #
2ac057dd
|
| 18-Apr-2023 |
John Baldwin <jhb@FreeBSD.org> |
ipf: Use C89 function definitions.
Reviewed by: zlei Differential Revision: https://reviews.freebsd.org/D39523
|
| #
44bc3019
|
| 04-Jan-2022 |
Cy Schubert <cy@FreeBSD.org> |
ipfilter userland: Style(9) requires a space after return
Reported by: jrtc27 Fixes: 2582ae5740181e0d2bab10003d66ae91c9b56329 MFC after: 1 month
|
| #
5e13b104
|
| 22-Dec-2021 |
Cy Schubert <cy@FreeBSD.org> |
ipfilter userland: Fix whitespace errors
Replace leading spaces with a tabs on affected lines.
MFC after: 1 month
|
| #
27fc2234
|
| 22-Dec-2021 |
Cy Schubert <cy@FreeBSD.org> |
ipfilter userland: Remove trailing whitespace
MFC after: 1 month
|
| #
2582ae57
|
| 22-Dec-2021 |
Cy Schubert <cy@FreeBSD.org> |
ipfilter: Adjust userland returns to conform to style(9)
Adjust ipfilter's userland return statements to conform to style(9).
MFC after: 1 month
|
| #
efeb8bff
|
| 20-Dec-2021 |
Cy Schubert <cy@FreeBSD.org> |
ipflter: ANSIfy userland function declarations
Convert ipfilter userland function declarations from K&R to ANSI. This syncs our function declarations with NetBSD hg commit 75edcd7552a0 (apply our ch
ipflter: ANSIfy userland function declarations
Convert ipfilter userland function declarations from K&R to ANSI. This syncs our function declarations with NetBSD hg commit 75edcd7552a0 (apply our changes). Though not copied from NetBSD, this change was partially inspired by NetBSD's work and inspired by style(9).
Reviewed by: glebius (for #network) MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D33595
show more ...
|
| #
41edb306
|
| 15-Dec-2021 |
Cy Schubert <cy@FreeBSD.org> |
ipfilter: Move userland bits to sbin
Through fixes and improvements our ipfilter sources have diverged enough to warrant move from contrib into sbin/ipf. Now that I'm planning on implementing MSS cl
ipfilter: Move userland bits to sbin
Through fixes and improvements our ipfilter sources have diverged enough to warrant move from contrib into sbin/ipf. Now that I'm planning on implementing MSS clamping as in iptables it makes more sense to move ipfilter to sbin.
This is the second of three commits of 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
show more ...
|
| #
a6fb9bbe
|
| 13-Dec-2021 |
Cy Schubert <cy@FreeBSD.org> |
ipfilter userland: Replace sprintf with range checking version (snprintf)
MFC after: 1 week
|
| #
4cd1807c
|
| 26-Jan-2021 |
Cy Schubert <cy@FreeBSD.org> |
Retire the K&R/STD C __P prototype declarations.
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 modificati
Retire the K&R/STD C __P prototype declarations.
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
show more ...
|
| #
64a1886d
|
| 17-Jul-2020 |
Cy Schubert <cy@FreeBSD.org> |
-4 and -6 only make sense with -i, -o, and -t.
PR: 247952 MFC after: 1 week
|
| #
ebdefe6c
|
| 17-Jul-2020 |
Cy Schubert <cy@FreeBSD.org> |
The output from usage() need not contain usage for -t when STATETOP is not compiled in.
PR: 247952 MFC after: 1 week
|
| #
e082c893
|
| 17-Jul-2020 |
Cy Schubert <cy@FreeBSD.org> |
Make ipfstat -t header generic when IPv4 and IPv6 output are displayed in the same display.
PR: 247952 MFC after: 1 week
|
| #
08c24e2f
|
| 17-Jul-2020 |
Cy Schubert <cy@FreeBSD.org> |
ipfstat -t defaults to IPv4 output. Make consistent with ipfstat -i and ipfstat -o where without an argument IPv4 and IPv6 states are shown. Use -4 and -6 to limit the display to IPv4 or IPv6 respect
ipfstat -t defaults to IPv4 output. Make consistent with ipfstat -i and ipfstat -o where without an argument IPv4 and IPv6 states are shown. Use -4 and -6 to limit the display to IPv4 or IPv6 respectively.
PR: 247952 MFC after: 1 week
show more ...
|
| #
88b86bb0
|
| 17-Jul-2020 |
Cy Schubert <cy@FreeBSD.org> |
Historically ipfstat listings and stats only listed IPv4 or IPv6 output. ipfstat would list IPv4 outputs by default while -6 would produce IPv6 outputs. This commit combines the ipfstat -i and -o out
Historically ipfstat listings and stats only listed IPv4 or IPv6 output. ipfstat would list IPv4 outputs by default while -6 would produce IPv6 outputs. This commit combines the ipfstat -i and -o outputs into one listing of IPv4 and IPv6 rules. The -4 option lists only IPv4 rules (as the default before) while -6 continues to list only rules that affect IPv6.
PR: 247952 Reported by: joeb1@a1poweruser.com MFC after: 1 week
show more ...
|
| #
53176601
|
| 17-Jul-2020 |
Cy Schubert <cy@FreeBSD.org> |
fr_family (the protocol family) must be AF_INET or AF_INET6, as in the kernel, not an arbitrary 4 or 6.
This only affected printing ipfilter stats and rules from a kernel dump. (This is currently un
fr_family (the protocol family) must be AF_INET or AF_INET6, as in the kernel, not an arbitrary 4 or 6.
This only affected printing ipfilter stats and rules from a kernel dump. (This is currently undocumented.)
PR: 247952 MFC after: 1 week
show more ...
|
| #
ce1c2aaf
|
| 17-Jul-2020 |
Cy Schubert <cy@FreeBSD.org> |
Only use the use_inet6 variable when INET6 is a build option.
This is a prerequisite to upcoming argument processing cleanups which will resolve consistency as was done with ippool previously.
PR:
Only use the use_inet6 variable when INET6 is a build option.
This is a prerequisite to upcoming argument processing cleanups which will resolve consistency as was done with ippool previously.
PR: 247952 MFC after: 1 week
show more ...
|
| #
0fcd8cab
|
| 03-Feb-2019 |
Cy Schubert <cy@FreeBSD.org> |
ipfilter #ifdef cleanup.
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,
ipfilter #ifdef cleanup.
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
show more ...
|
| #
3820c3aa
|
| 16-Mar-2017 |
Cy Schubert <cy@FreeBSD.org> |
calloc() and realloc() modernization.
This commit replaces calloc calls, which called calloc() as if it were malloc() by allocating a multiple of objects as a sizeof multiplied by the number of obje
calloc() and realloc() modernization.
This commit replaces calloc calls, which called calloc() as if it were malloc() by allocating a multiple of objects as a sizeof multiplied by the number of objects. The patch rectifies this by calling calloc() as it was meant to be called.
This commit also replaces realloc() with reallocarray() in a similar fashion as above. Instead of calculating the memory to reallocated (changed) by multiplying sizeof by the number of objects, the sizeof and number are passed as separate arguments to reallocarray(), letting reallocarray() do the multiplication instead. Like the calloc() adjustment above, this is approach is cleaner and more elegant than than the previous code.
This has been tested on my production firewall and a laptop (also running ipfilter).
Submitted by: pfg MFC after: 6 weeks
show more ...
|
| #
bfc88dcb
|
| 06-Sep-2013 |
Cy Schubert <cy@FreeBSD.org> |
Update ipfilter 4.1.28 --> 5.1.2.
Approved by: glebius (mentor) BSD Licensed by: Darren Reed <darrenr@reed.wattle.id.au> (author)
|
| #
e86e3442
|
| 18-Oct-2007 |
Darren Reed <darrenr@FreeBSD.org> |
Pullup IPFilter 4.1.28 from the vendor branch into HEAD.
MFC after: 7 days
|
| #
a909f886
|
| 24-Jun-2007 |
Darren Reed <darrenr@FreeBSD.org> |
ipfstat should parse "any" when used with -D/-S command line options
PR: bin/113879 Submitted by: kabe@sra-tohoku.co.jp Reviewed by: darrenr Approved by: re
|