| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
are committed separately to document fixing them separately from
the general cleanup. In this case we don't want to hide the utter
brokenness of what is being fixed.
Clean up a discombobulated block of #if's, with one block unreachable.
ip_fil.c is used in ipftest which is used to dry-run test ipfilter
rules in userspace without loading them in the kernel. The call to
(*ifp->if_output) matches that in the FreeBSD kernel.
Further testing and work will be required to make ipftest fully
functional.
MFC after: 1 week
Notes:
svn path=/head/; revision=341456
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
| |
Discovered by: Coverity.
Approved by: glebius (mentor)
Approved by: re (blanket)
Notes:
svn path=/head/; revision=255761
|
| |\
| |
| |
| |
| |
| |
| |
| | |
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
|
| | |
| |
| |
| | |
Notes:
svn path=/vendor/ipfilter/dist/; revision=172771
|
| | |
| |
| |
| |
| |
| |
| | |
See src/contrib/ipfilter/HISTORY for details of changes since 4.1.13
Notes:
svn path=/vendor/ipfilter/dist/; revision=170263
|
| | |
| |
| |
| | |
Notes:
svn path=/vendor/ipfilter/dist/; revision=161351
|
| | |
| |
| |
| | |
Notes:
svn path=/vendor/ipfilter/dist/; revision=145551
|
| | |
| |
| |
| | |
Notes:
svn path=/vendor/ipfilter/dist/; revision=145510
|
| | |
| |
| |
| | |
Notes:
svn path=/vendor/ipfilter/dist/; revision=130887
|
| | |
| |
| |
| | |
Notes:
svn path=/vendor/ipfilter/dist/; revision=110917
|
| | |
| |
| |
| |
| |
| |
| | |
on to the vendor branch.
Notes:
svn path=/vendor/ipfilter/dist/; revision=102521
|
| | |
| |
| |
| | |
Notes:
svn path=/vendor/ipfilter/dist/; revision=98005
|
| | |
| |
| |
| | |
Notes:
svn path=/vendor/ipfilter/dist/; revision=95419
|
| | |
| |
| |
| | |
Notes:
svn path=/vendor/ipfilter/dist/; revision=92686
|
| | |
| |
| |
| | |
Notes:
svn path=/vendor/ipfilter/dist/; revision=80486
|
| | |
| |
| |
| | |
Notes:
svn path=/head/; revision=181313
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| | |
| |
| |
| |
| |
| |
| | |
See src/contrib/ipfilter/HISTORY for details of changes since 4.1.13
Notes:
svn path=/head/; revision=170268
|
| | |
| |
| |
| |
| |
| |
| | |
MFC after: 1 weeks
Notes:
svn path=/head/; revision=161357
|
| | |
| |
| |
| |
| |
| |
| |
| | |
the ipl.h file is found. Also add back in ip_fil.c, which somehow went missing
in action.
Notes:
svn path=/head/; revision=145554
|
| |/
|
|
|
|
|
| |
Not objected to by: -arch
Notes:
svn path=/head/; revision=78415
|
| |
|
|
| |
Notes:
svn path=/vendor/ipfilter/dist/; revision=67615
|
| |
|
|
| |
Notes:
svn path=/vendor/ipfilter/dist/; revision=64588
|
| |
|
|
| |
Notes:
svn path=/vendor/ipfilter/dist/; revision=63516
|
| |
|
|
| |
Notes:
svn path=/vendor/ipfilter/dist/; revision=60841
|
| |
|
|
|
|
|
| |
Approved by: jkh
Notes:
svn path=/vendor/ipfilter/dist/; revision=57093
|
| |
|
|
|
|
|
| |
Obtained from: ftp://coombs.anu.edu.au/pub/net/firewall/ip-filter/ip_fil3.3.6.tar.gz
Notes:
svn path=/vendor/ipfilter/dist/; revision=55924
|
| |
|
|
|
|
|
| |
More to come in the next days.
Notes:
svn path=/vendor/ipfilter/dist/; revision=53024
|
| |
|
|
|
|
|
| |
Obtained from: Darren Reed via http://cheops.anu.edu.au/~avalon/
Notes:
svn path=/vendor/ipfilter/dist/; revision=37074
|
| |
|
|
| |
Notes:
svn path=/vendor/ipfilter/dist/; revision=34739
|
| |
|
|
| |
Notes:
svn path=/vendor/ipfilter/dist/; revision=31183
|
| |
|
|
| |
Notes:
svn path=/vendor/ipfilter/dist/; revision=26119
|
| |
|
|
|
| |
Notes:
svn path=/vendor/ipfilter/dist/; revision=24583
svn path=/vendor/ipfilter/3.2a4/; revision=24585; tag=vendor/ipfilter/3.2a4
|
| |
|
|
|
| |
Notes:
svn path=/vendor/ipfilter/dist/; revision=23279
svn path=/vendor/ipfilter/3.1.8/; revision=23281; tag=vendor/ipfilter/3.1.8
|
|
|
Notes:
svn path=/vendor/ipfilter/dist/; revision=22514
svn path=/vendor/ipfilter/3.1.7/; revision=22516; tag=vendor/ipfilter/3.1.7
|