| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
| |
Remove the remaining unused source files. These were never used.
This is the last of a three commit series to move ipfilter.
Discussed with: glebius
Reviewed by: glebius, kp (for #network)
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D33510
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
MFC after: 1 week
|
| |
|
|
| |
MFC after: 3 days
|
| |
|
|
| |
MFC after: 3 days
|
| |
|
|
| |
MFC after: 3 days
|
| |
|
|
| |
MFC after: 3 days
|
| |
|
|
|
|
|
|
|
| |
- s/addresss/address/
This is a direct commit to contrib since the upstream is
no longer active.
MFC after: 3 days
|
| |
|
|
| |
MFC after: 1 week
|
| |
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
| |
All C compilers in 2021 support standard C and architectures that did
not were retired long ago. Simplify by removing now redundant
pre-standard C code.
MFC after: 1 week
|
| |
|
|
|
|
|
|
|
| |
complete description.
MFC after: 3 days
Notes:
svn path=/head/; revision=367069
|
| |
|
|
|
|
|
| |
MFC after: 2 months
Notes:
svn path=/head/; revision=366286
|
| |
|
|
|
|
|
|
|
| |
function.
MFC after: 2 months
Notes:
svn path=/head/; revision=366285
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
MFC after: 1 month
Notes:
svn path=/head/; revision=320455
|
| |
|
|
|
|
|
|
|
|
| |
and guaranteed to build everywhere in ipfilter.
Not all of this commit can be MFCed. Some is original code while others
are not.
Notes:
svn path=/head/; revision=320257
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
pools, implement outputting of IPv6 addresses in the ippool debug list
of hash type pools (ippool -l -d -t hash). Currently IPv6 in ippool tree
type pool handling is mostly implemented.
This continues theseries of commits to remediate ippool.
This will be MFCed with a yet to be committed series of fixes to ippool
after it has been fully remediated.
PR: 218433
Notes:
svn path=/head/; revision=318284
|
| |
|
|
|
|
|
|
|
|
| |
string.
MFC after: 3 days
X-MFC with: r318281
Notes:
svn path=/head/; revision=318283
|
| |
|
|
|
|
|
|
|
|
| |
colon (:) in error messages to assist the user in parsing out the error
from where or which object the error message refers to.
MFC after: 3 days
Notes:
svn path=/head/; revision=318281
|
| |
|
|
| |
Notes:
svn path=/head/; revision=318202
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
type pools (ippool -l -d -t tree). Currently IPv6 in ippool tree type
pool handling is partially implemented (meaning it doesn't work).
This is the first of a series of commits to remediate ippool.
This will be MFCed with a yet to be committed series of fixes to ippool
after it has been fully remediated.
PR: 218433
Notes:
svn path=/head/; revision=318173
|
| |
|
|
|
|
|
|
|
| |
Reported by: cem
MFC after: 1 week
X-MFC with: r316993, r316994
Notes:
svn path=/head/; revision=316997
|
| |
|
|
|
|
|
|
|
|
| |
reallocarray() fail.
Reported by: Coverity CID 1372601
MFC after: 1 week
Notes:
svn path=/head/; revision=316993
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
Notes:
svn path=/head/; revision=315368
|
| |
|
|
|
|
|
|
|
|
|
| |
Submitted by: trix_juniper.net (Tom Rix)
Discovered by: clang's static analyzer
MFC after: 4 days
Relnotes: ngie
Differential Revision: D9877
Notes:
svn path=/head/; revision=314627
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
under a shared read lock. This patch attempts to upgrade the lock to
an exclusive write lock. If the exclusive write lock fails to be
obtained, the current fragment is not placed at the head of the list.
This portion of the patch was inspired by NetBSD ip_frag.c r1.4 (which
effectively removed the section of code that performed the reordering).
The patch to sys/contrib/ipfilter/netinet/ip_compat.h adds the
MUTEX_TRY_UPGRADE macro to support the patch to ip_frag.c.
The patch to contrib/ipfilter/lib/rwlock_emul.c supports this patch
by emulating the mutex in userspace when exercised by ipftest(1).
Inspired by: NetBSD ip_frag.c r1.4
MFC after: 1 month
Notes:
svn path=/head/; revision=312787
|
| |
|
|
|
|
|
| |
Sponsored by: Nginx, Inc.
Notes:
svn path=/head/; revision=281143
|
| |
|
|
|
|
|
|
| |
Approved by: glebius (mentor)
Obtained from: ipfilter CVS repo (r1.14), netbsd CVS repo (r1.3)
Notes:
svn path=/head/; revision=271972
|
| |
|
|
|
|
|
|
| |
Approved by: glebius (mentor)
Obtained from: ipfilter CVS repo (r1.11)
Notes:
svn path=/head/; revision=271971
|
| |
|
|
|
|
|
|
| |
Approved by: glebius (mentor)
Obtained from: ipfilter CVS repo (r1.11), netbsd CVS repo (r1.5)
Notes:
svn path=/head/; revision=271970
|
| |
|
|
|
|
|
| |
I'm tired to see tinderbox spamming. Feel free to fix it your way.
Notes:
svn path=/head/; revision=268585
|
| |
|
|
|
|
|
|
|
|
| |
(NO_INET6) are specified.
Approved by: glebius
MFC after: 1 week
Notes:
svn path=/head/; revision=268286
|
| |\
| |
| |
| |
| |
| |
| |
| | |
Approved by: glebius (mentor)
BSD Licensed by: Darren Reed <darrenr@reed.wattle.id.au> (author)
Notes:
svn path=/head/; revision=255332
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
ipfilter tables via http by the user-level ippool utility. Previously
the 1024-byte buffer used to store a http request coudld easily overflow
if the length of the hostname part of the url passes exceeded 496 bytes. [1]
- Use snprintf to prevent possieble buffer overflows in future. [2]
- Do not try to close the descriptor twice on failure. [2]
Reported by: Maksymilian Arciemowicz <cxib@securityreason.com> [1]
Obtained from: NetBSD CVS [2]
MFC after: 2 weeks
Notes:
svn path=/head/; revision=193043
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
Approved by: darrenr
MFC after: 1 week
Security: CERT VU#521769
Notes:
svn path=/head/; revision=180778
|
| | |
| |
| |
| |
| |
| |
| | |
MFC after: 7 days
Notes:
svn path=/head/; revision=172776
|
| |\|
| |
| |
| |
| |
| |
| | |
which included commits to RCS files with non-trunk default branches.
Notes:
svn path=/head/; revision=172772
|
| | |
| |
| |
| | |
Notes:
svn path=/vendor/ipfilter/dist/; revision=172771
|
| | |
| |
| |
| | |
Notes:
svn path=/head/; revision=170269
|
| | |
| |
| |
| |
| |
| |
| | |
See src/contrib/ipfilter/HISTORY for details of changes since 4.1.13
Notes:
svn path=/head/; revision=170268
|
| |\|
| |
| |
| |
| |
| |
| | |
which included commits to RCS files with non-trunk default branches.
Notes:
svn path=/head/; revision=170264
|
| | |
| |
| |
| |
| |
| |
| | |
See src/contrib/ipfilter/HISTORY for details of changes since 4.1.13
Notes:
svn path=/vendor/ipfilter/dist/; revision=170263
|
| | |
| |
| |
| |
| |
| |
| | |
MFC after: 1 weeks
Notes:
svn path=/head/; revision=161357
|
| |\|
| |
| |
| |
| |
| |
| | |
which included commits to RCS files with non-trunk default branches.
Notes:
svn path=/head/; revision=161352
|
| | |
| |
| |
| | |
Notes:
svn path=/vendor/ipfilter/dist/; revision=161351
|
| | |
| |
| |
| | |
Notes:
svn path=/head/; revision=153881
|
| |\|
| |
| |
| |
| |
| |
| | |
which included commits to RCS files with non-trunk default branches.
Notes:
svn path=/head/; revision=153878
|
| | |
| |
| |
| | |
Notes:
svn path=/vendor/ipfilter/dist/; revision=153877
|