History log of /freebsd-11-stable/contrib/ipfilter/tools/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
369273 16-Feb-2021 cy

MFC e673debe7db8ba95e4ee3b549d2570e71d19b596:

Simplify BSD macro tests.

All FreeBSD and NetBSD are BSD >= 199306 and have been for a long time.

(cherry picked from commit e673debe7db8ba95e4ee3b549d2570e71d19b596)

Git Hash: ba6bb2487a7e159556d8ef9ba773fb4fa65dd823
Git Author: cy@FreeBSD.org

369272 16-Feb-2021 cy

MFC 0f34c80f376345b98a972940dd4757e58d7beb06:

Replace the redundant MENTAT macro with SOLARIS.

MENTAT and SOLARIS are synonymous. Remove the extraneous duplicate
macro.

(cherry picked from commit 0f34c80f376345b98a972940dd4757e58d7beb06)

Git Hash: 8d6da0aae1c4ca288537c9875eaed1f65988e51f
Git Author: cy@FreeBSD.org

369245 09-Feb-2021 git2svn

MFC 4cd1807c7d2a67b633dd0c0bfde15091543a2514:

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.

(cherry picked from commit 4cd1807c7d2a67b633dd0c0bfde15091543a2514)

Git Hash: 0c7a33852aa5cd28a9d9b19b8f8034d60a9cb50f
Git Author: cy@FreeBSD.org


/freebsd-11-stable/contrib/ipfilter/bpf_filter.c
/freebsd-11-stable/contrib/ipfilter/ip_dstlist.c
/freebsd-11-stable/contrib/ipfilter/ip_dstlist.h
/freebsd-11-stable/contrib/ipfilter/ip_fil.c
/freebsd-11-stable/contrib/ipfilter/ip_fil_compat.c
/freebsd-11-stable/contrib/ipfilter/ip_msnrpc_pxy.c
/freebsd-11-stable/contrib/ipfilter/ipf.h
/freebsd-11-stable/contrib/ipfilter/iplang/iplang.h
/freebsd-11-stable/contrib/ipfilter/iplang/iplang_l.l
/freebsd-11-stable/contrib/ipfilter/iplang/iplang_y.y
/freebsd-11-stable/contrib/ipfilter/ipmon.h
/freebsd-11-stable/contrib/ipfilter/ipsend/ipresend.c
/freebsd-11-stable/contrib/ipfilter/ipsend/ipsend.c
/freebsd-11-stable/contrib/ipfilter/ipsend/ipsend.h
/freebsd-11-stable/contrib/ipfilter/ipsend/iptest.c
/freebsd-11-stable/contrib/ipfilter/ipsend/resend.c
/freebsd-11-stable/contrib/ipfilter/ipsend/sock.c
/freebsd-11-stable/contrib/ipfilter/ipt.h
/freebsd-11-stable/contrib/ipfilter/kmem.h
/freebsd-11-stable/contrib/ipfilter/lib/facpri.h
/freebsd-11-stable/contrib/ipfilter/lib/inet_addr.c
/freebsd-11-stable/contrib/ipfilter/lib/initparse.c
/freebsd-11-stable/contrib/ipfilter/lib/interror.c
/freebsd-11-stable/contrib/ipfilter/lib/ipft_hx.c
/freebsd-11-stable/contrib/ipfilter/lib/ipft_pc.c
/freebsd-11-stable/contrib/ipfilter/lib/ipft_tx.c
/freebsd-11-stable/contrib/ipfilter/lib/kmem.h
/freebsd-11-stable/contrib/ipfilter/lib/printipfexpr.c
/freebsd-11-stable/contrib/ipfilter/lib/save_execute.c
/freebsd-11-stable/contrib/ipfilter/lib/save_file.c
/freebsd-11-stable/contrib/ipfilter/lib/save_nothing.c
/freebsd-11-stable/contrib/ipfilter/lib/save_syslog.c
/freebsd-11-stable/contrib/ipfilter/lib/save_v1trap.c
/freebsd-11-stable/contrib/ipfilter/lib/save_v2trap.c
/freebsd-11-stable/contrib/ipfilter/lib/var.c
/freebsd-11-stable/contrib/ipfilter/man/ipf.4
/freebsd-11-stable/contrib/ipfilter/md5.c
/freebsd-11-stable/contrib/ipfilter/md5.h
/freebsd-11-stable/contrib/ipfilter/radix_ipf.c
/freebsd-11-stable/contrib/ipfilter/radix_ipf.h
ipf.c
ipf_y.y
ipfcomp.c
ipfs.c
ipfstat.c
ipfsyncd.c
ipftest.c
ipmon.c
ipmon_y.y
ipnat.c
ipnat_y.y
ippool.c
ippool_y.y
ipscan_y.y
ipsyncm.c
ipsyncs.c
lexer.c
lexer.h
/freebsd-11-stable/sys/contrib/ipfilter/netinet/fil.c
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_auth.c
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_auth.h
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_compat.h
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_dns_pxy.c
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_dstlist.c
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_dstlist.h
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_fil.h
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_frag.c
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_frag.h
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_ftp_pxy.c
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_htable.c
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_htable.h
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_ipsec_pxy.c
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_irc_pxy.c
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_lookup.c
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_lookup.h
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_nat.c
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_nat.h
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_nat6.c
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_netbios_pxy.c
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_pool.c
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_pool.h
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_pptp_pxy.c
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_proxy.c
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_proxy.h
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_raudio_pxy.c
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_rcmd_pxy.c
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_rpcb_pxy.c
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_rules.h
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_scan.c
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_scan.h
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_state.c
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_state.h
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_sync.c
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_sync.h
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_tftp_pxy.c
/freebsd-11-stable/sys/contrib/ipfilter/netinet/mlfk_ipl.c
/freebsd-11-stable/sys/contrib/ipfilter/netinet/radix_ipf.c
/freebsd-11-stable/sys/contrib/ipfilter/netinet/radix_ipf.h
363526 25-Jul-2020 cy

MFC r363277-r363283

r363277:
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

r363278:
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

r363279:
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

r363280:
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

r363281:
Make ipfstat -t header generic when IPv4 and IPv6 output are
displayed in the same display.

PR: 247952

r363282:
The output from usage() need not contain usage for -t when STATETOP
is not compiled in.

PR: 247952

359754 09-Apr-2020 kevans

MFC -fno-common fixes: r359389, r359394, r359397-r359399, r359403-r359404,
r359406, r359413-r359416, r359425, r359427, r359432-r359433, r359443,
r359675-r359677

Note: this is not necessarily a complete fix to get these programs to build
with -fno-common applied.

r359389:
config(8): fixes for -fno-common

Move this handful of definitions into main.c, properly declare these as
extern in config.h. This fixes the config(8) build with -fno-common.

Unexplained in my previous commit to gas, -fno-common will become the
default in GCC10 and LLVM11, so it's worth addressing these in advance.

r359394:
MFV r359393: tcsh: import 6974bc35a5cd

This removes an extra variable definition that causes the -fno-common build
to fail, which will be a new default in GCC10/LLVM11.

r359397:
zfs: fix -fno-common issues

A similar (or identical?) fix has already landed in OpenZFS.

-fno-common will become the default in GCC10/LLVM11.

r359398:
sh: remove duplicate el definition

el is declared extern in myhistedit.h and defined in histedit.c. Remove the
duplicate definition in input.c to appease the -fno-common build.

-fno-common will become the default in GCC10/LLVM11.

r359399:
telnet: remove some duplicate definitions, mark terminaltype extern

Most of these were already properly declared and defined elsewhere, this is
effectively just a minor cleanup that fixes the -fno-common build.

-fno-common will become the default in GCC10/LLVM11.

r359403:
Revert 359399: telnet -fno-common bits

There was a large misfire from my local diff that I need to investigate, and
this version committed did not build.

r359404:
Re-apply r359399: telnet -fno-common fix

line and auth_level's redefinitions are just extraneous

telnetd will #define extern and then include ext.h to allocate storage for
all of these extern'd vars; however, two of them are actually defined in
libtelnet instead. Instead of doing an #ifdef extern dance around those
function pointers, just add an EXTERN macro to make it easier to
differentiate by sight which ones will get allocated in globals.c and which
ones are defined elsewhere.

r359406:
telnet: kill off remaining duplicate definition

r359413:
ipfilter: remove duplicate definition of 'thishost'

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.

r359414:
iscontrol: move definition of vflag/iscsidev to iscontrol.c

Mark the declaration extern as these are used elsewhere; this fixes the
build with -fno-common.

r359415:
userboot: mark host_fsops as extern

This is already defined elsewhere; mark this declaration extern to the fix
the -fno-common build.

r359416:
systat: remove redundant definition of kd

kd is already properly declared in extern.h and defined in main.c, rendering
this definition useless. This fixes the -fno-common build.

r359425:
locate: fix -fno-common build

Just a single variable declaration to extern and define elsewhere here,
myctype.

-fno-common will become a default in GCC10/LLVM11.

r359427:
fsck_ffs/fsdb: fix -fno-common build

This one is also a small list:

- 3x duplicate definition (ufs2_zino, returntosingle, nflag)
- 5x 'needs extern', 3/5 of which are referenced in fsdb

-fno-common will become the default in GCC10/LLVM11.

r359432:
gdb: compile with -fcommon explicitly

As described in the comment, gdb relies on some of the linker magic that
happens with -fcommon. I suspect the life expectancy of gdb-in-base is low
enough that this isn't worth spending much time addressing, especially given
the vintage. Hit it with the -fcommon hammer so that it continues to just
work.

r359433:
bmake: fix -fno-common build

debug was declared extern, but debug_file was not; correct this and define
debug_file in main.c (as debug is) to fix the -fno-common build.

-fno-common will become the default with GCC10/LLVM11.

r359443:
MFV r359442: bmake: import -fno-common fix build back from upstream

sjg@ committed the local patch previously committed upstream; pull it in to
vendor/ to ease any potential stress of future imports.

r359675:
kqueue tests: fix -fno-common build

vnode_fd and kqfd are both shared among multiple CU; define them exactly
once.

In the case of vnode_fd, it was simply the declaration that needed
correction.

-fno-common will become the default in GCC10/LLVM11.

r359676:
ntpd: fix build with -fno-common

Only a small nit here: psl should be declared extern and defined exactly
once.

-fno-common will become the default in GCC10/LLVM11.

r359677:
yp*: fix -fno-common build

This is mostly two problems spread out far and wide:
- ypldap_process should be declared properly
- debug is defined differently in many programs

For the latter, just extern it and define it everywhere that actually needs
it. This mostly works out nicely for ^/libexec/ypxfr, which can remove the
assignment at the beginning of main in favor of defining it properly.

-fno-common will become the default in GCC10/LLVM11.


/freebsd-11-stable/bin/sh/input.c
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/zfs/zfs_util.h
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/zpool/zpool_util.h
/freebsd-11-stable/contrib/bmake/main.c
/freebsd-11-stable/contrib/bmake/make.h
/freebsd-11-stable/contrib/ipfilter/ipf.h
ipnat.c
/freebsd-11-stable/contrib/ntp/include/ntp_config.h
/freebsd-11-stable/contrib/ntp/ntpd/ntp_config.c
/freebsd-11-stable/contrib/tcsh/tc.sig.c
/freebsd-11-stable/contrib/telnet/telnetd/ext.h
/freebsd-11-stable/contrib/telnet/telnetd/global.c
/freebsd-11-stable/contrib/telnet/telnetd/sys_term.c
/freebsd-11-stable/contrib/telnet/telnetd/telnetd.c
/freebsd-11-stable/gnu/usr.bin/gdb/Makefile.inc
/freebsd-11-stable/libexec/ypxfr/ypxfr_main.c
/freebsd-11-stable/sbin/fsck_ffs/fsck.h
/freebsd-11-stable/sbin/fsck_ffs/gjournal.c
/freebsd-11-stable/sbin/fsck_ffs/globs.c
/freebsd-11-stable/sbin/fsck_ffs/setup.c
/freebsd-11-stable/sbin/fsdb/fsdb.c
/freebsd-11-stable/sbin/iscontrol/iscontrol.c
/freebsd-11-stable/sbin/iscontrol/iscontrol.h
/freebsd-11-stable/stand/userboot/userboot/libuserboot.h
/freebsd-11-stable/tests/sys/kqueue/libkqueue/common.h
/freebsd-11-stable/tests/sys/kqueue/libkqueue/proc.c
/freebsd-11-stable/tests/sys/kqueue/libkqueue/read.c
/freebsd-11-stable/tests/sys/kqueue/libkqueue/signal.c
/freebsd-11-stable/tests/sys/kqueue/libkqueue/timer.c
/freebsd-11-stable/tests/sys/kqueue/libkqueue/user.c
/freebsd-11-stable/tests/sys/kqueue/libkqueue/vnode.c
/freebsd-11-stable/usr.bin/locate/locate/locate.c
/freebsd-11-stable/usr.bin/locate/locate/locate.h
/freebsd-11-stable/usr.bin/systat/swap.c
/freebsd-11-stable/usr.sbin/config/config.h
/freebsd-11-stable/usr.sbin/config/main.c
/freebsd-11-stable/usr.sbin/rpc.yppasswdd/yppasswdd_main.c
/freebsd-11-stable/usr.sbin/rpc.ypupdated/ypupdated_main.c
/freebsd-11-stable/usr.sbin/rpc.ypxfrd/ypxfrd_main.c
/freebsd-11-stable/usr.sbin/ypldap/ypldap.c
/freebsd-11-stable/usr.sbin/ypldap/ypldap.h
/freebsd-11-stable/usr.sbin/ypserv/yp_access.c
/freebsd-11-stable/usr.sbin/ypserv/yp_error.c
/freebsd-11-stable/usr.sbin/ypserv/yp_main.c
358321 25-Feb-2020 cy

MFC r358064:

As with ipf(8), give ippool(8) the ability to load IP pools from multiple
files. This allows for loading, during the same invocation of ippool, of
multiple sources of input using multiple tools to concurrently maintain the
files such as fail2ban, macro preprocessors, and manually.

354111 26-Oct-2019 cy

MFC r352738:

Teach the ippool parser about address families. This is a precursor
to implementing IPv6 support within ippool which requires reworking
radix_ipf.c.

353094 04-Oct-2019 cy

MFC r352786:

Implement the dynamic add (-A) and removal (-R) of ippool pools
from the command line. Prior to this the functionality was mostly there
however since the pool type (-t) was not recognized by the -A and -R
command options -- not recognized by getopt(). Additionally the code to
implement the dynamic add and removal of pools didn't work.

When dynamically adding (-A) a pool a type (-t) to specify if the pool
is a tree or hash pool must be specified. When dynamically removing (-R)
a pool, omitting -t will cause a search-and-destroy which will remove
both types of pools matching the name given (-m).

PR: 218433

353093 04-Oct-2019 cy

MFC r352785:

The no resolve (OPT_NORESOLVE) does nothing. Additionally, it (-R)
conflicts with the command option of the same name (also -R).
Remove the superfluous and confusing non-global non-command -R option.

PR: 218433

353092 04-Oct-2019 cy

MFC r322075:

loadpoolfile() implements a -R (NORESOLVE) option which is not listed
in usage(). This commit trues up usage() with loadpoolfile().

353091 04-Oct-2019 cy

MFC r320664:

Document supported poollist() (ippool -l) options in usage() and in
ippool.8 man page.

353089 04-Oct-2019 cy

MFC r320428:

In poolnodecommand() (ippool -a and ippool -r) -m (pool name) is not
optional.

353088 04-Oct-2019 cy

MFC r320221:

poolflush() has no positional arguments.

353087 04-Oct-2019 cy

MFC r320187:

Fix -S handling within poolcommand(). Specifying a seed (-S) is only
valid when adding a pool (ippool -A), not when removing a pool
(ippool -R). It is a command line syntax error if specifying a seed (-S)
is specified when emoving a pool (-R).

353086 04-Oct-2019 cy

MFC r320143:

Flag poolnodecommand() (ippool -a and ippool -r) command line syntax
errors.

353085 04-Oct-2019 cy

MFC r320120:

poolcommand() (ippool -A and ippool -R) seed takes an argument.

353084 04-Oct-2019 cy

MFC r320095:

Flag poolcommand() (ippool -A and ippool -R) command line syntax errors.

353083 04-Oct-2019 cy

MFC r319930:

Chase r319848: remove -v option from getopt() call.

353082 04-Oct-2019 cy

MFC r319929:

-n (do nothing) is not a commmand option.

353081 04-Oct-2019 cy

MFC r319848:

-v (verbose) is not a command option. (See ippool.1 for a definition
of command options).

353080 04-Oct-2019 cy

MFC r319822:

Flag loadpoolfile() (ippool -f) command line syntax errors.

353079 04-Oct-2019 cy

MFC r319821:

Identify poolstats() (ippool -s) command line syntax errors.

353078 04-Oct-2019 cy

MFC r319820:

Identify command line syntax errors in poolflush() (ippool -F).

353077 04-Oct-2019 cy

MFC r319810:

Remove redundant assignment of infile from optarg in loadpoolfile()
which was previously assigned from optarg in the argument list from
main().

353076 04-Oct-2019 cy

MFC r319795:

Disable the -O (output fields) option in poollist() (ippool -l) for
now. The option does not presently work. However, similar functions in
ipfstat (for state) and ipnat (for nat) do work and provide outputs that
can be easily parsed by shell scripts or subsequently loaded into CSV
files. The intention here is to return to this option to make it work.
I suspect the problem is in printpoolfields.c.

353075 04-Oct-2019 cy

MFC r319794:

Flag poollist() (ippool -l) command line syntax errors.

353074 04-Oct-2019 cy

MFC r319273:

Remove NORESOLVE (-R) option from poollist() (ippool -l). It is not
used in poollist().

349716 04-Jul-2019 cy

MFC r349450-349451:

Update usage() to refect the current state of ipmon.

PR: 238816

344833 06-Mar-2019 cy

MFC r343701 & r343732:

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@
Differential Revision: https://reviews.freebsd.org/D19006


/freebsd-11-stable/contrib/ipfilter/arc4random.c
/freebsd-11-stable/contrib/ipfilter/ip_dstlist.c
/freebsd-11-stable/contrib/ipfilter/ip_fil.c
/freebsd-11-stable/contrib/ipfilter/ip_fil_compat.c
/freebsd-11-stable/contrib/ipfilter/ipf.h
/freebsd-11-stable/contrib/ipfilter/ipsend/.OLD/ip_compat.h
/freebsd-11-stable/contrib/ipfilter/ipsend/44arp.c
/freebsd-11-stable/contrib/ipfilter/ipsend/arp.c
/freebsd-11-stable/contrib/ipfilter/ipsend/dlcommon.c
/freebsd-11-stable/contrib/ipfilter/ipsend/ip.c
/freebsd-11-stable/contrib/ipfilter/ipsend/ipresend.c
/freebsd-11-stable/contrib/ipfilter/ipsend/ipsend.c
/freebsd-11-stable/contrib/ipfilter/ipsend/ipsend.h
/freebsd-11-stable/contrib/ipfilter/ipsend/ipsopt.c
/freebsd-11-stable/contrib/ipfilter/ipsend/iptest.c
/freebsd-11-stable/contrib/ipfilter/ipsend/iptests.c
/freebsd-11-stable/contrib/ipfilter/ipsend/resend.c
/freebsd-11-stable/contrib/ipfilter/ipsend/sdlpi.c
/freebsd-11-stable/contrib/ipfilter/ipsend/sock.c
/freebsd-11-stable/contrib/ipfilter/lib/getifname.c
/freebsd-11-stable/contrib/ipfilter/lib/getproto.c
/freebsd-11-stable/contrib/ipfilter/lib/inet_addr.c
/freebsd-11-stable/contrib/ipfilter/lib/kmem.c
/freebsd-11-stable/contrib/ipfilter/lib/printproto.c
/freebsd-11-stable/contrib/ipfilter/md5.c
ipf.c
ipfs.c
ipfstat.c
ipftest.c
ipmon.c
ipnat.c
ipnat_y.y
ippool.c
ippool_y.y
/freebsd-11-stable/sys/contrib/ipfilter/netinet/fil.c
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_auth.c
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_compat.h
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_dstlist.c
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_fil.h
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_frag.c
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_ftp_pxy.c
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_htable.c
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_irc_pxy.c
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_log.c
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_lookup.c
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_nat.c
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_nat.h
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_nat6.c
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_pool.c
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_proxy.c
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_raudio_pxy.c
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_scan.c
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_state.c
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ip_sync.c
319175 30-May-2017 cy

MFC r315368:

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

318206 12-May-2017 cy

MFC 317830:

Ifdef out a redundant if statement when INET6 is disabled.

318205 12-May-2017 cy

Revert r318203: Neglected to put "MFC 318203:" in the log.

Pointy hat to: cy

318203 12-May-2017 cy

Ifdef out a redundant if statement when INET6 is disabled.

317314 23-Apr-2017 cy

MFC r316993, r316994, r316997 as follows:

r316993:

Fix CID 1372601 in ipfilter/lib/parsefields.c, possible NULL pointer
dereference should reallocarray() fail.

Reported by: Coverity CID 1372601

r316994:

Fix CID 1372600 in ipfilter/tools/ipf_y.y, possible NULL pointer
dereference should reallocarray() fail.

Reported by: Coverity CID 1372600

r316997:

Use warnx() to issue error message.

Reported by: cem

313461 09-Feb-2017 cy

MFC r312791:

Use normal KNF cuddling of elses.

Reported by: bde

313441 08-Feb-2017 cy

MFC r312777, r312780:

Issue an error message when an incorrect flush argument is encountered
(and style fixup).

302408 08-Jul-2016 gjb

Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle.
Prune svn:mergeinfo from the new branch, as nothing has been merged
here.

Additional commits post-branch will follow.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


/freebsd-11-stable/MAINTAINERS
/freebsd-11-stable/cddl
/freebsd-11-stable/cddl/contrib/opensolaris
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/print
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/zfs
/freebsd-11-stable/cddl/contrib/opensolaris/lib/libzfs
/freebsd-11-stable/contrib/amd
/freebsd-11-stable/contrib/apr
/freebsd-11-stable/contrib/apr-util
/freebsd-11-stable/contrib/atf
/freebsd-11-stable/contrib/binutils
/freebsd-11-stable/contrib/bmake
/freebsd-11-stable/contrib/byacc
/freebsd-11-stable/contrib/bzip2
/freebsd-11-stable/contrib/com_err
/freebsd-11-stable/contrib/compiler-rt
/freebsd-11-stable/contrib/dialog
/freebsd-11-stable/contrib/dma
/freebsd-11-stable/contrib/dtc
/freebsd-11-stable/contrib/ee
/freebsd-11-stable/contrib/elftoolchain
/freebsd-11-stable/contrib/elftoolchain/ar
/freebsd-11-stable/contrib/elftoolchain/brandelf
/freebsd-11-stable/contrib/elftoolchain/elfdump
/freebsd-11-stable/contrib/expat
/freebsd-11-stable/contrib/file
/freebsd-11-stable/contrib/gcc
/freebsd-11-stable/contrib/gcclibs/libgomp
/freebsd-11-stable/contrib/gdb
/freebsd-11-stable/contrib/gdtoa
/freebsd-11-stable/contrib/groff
/freebsd-11-stable/contrib/ipfilter
/freebsd-11-stable/contrib/ldns
/freebsd-11-stable/contrib/ldns-host
/freebsd-11-stable/contrib/less
/freebsd-11-stable/contrib/libarchive
/freebsd-11-stable/contrib/libarchive/cpio
/freebsd-11-stable/contrib/libarchive/libarchive
/freebsd-11-stable/contrib/libarchive/libarchive_fe
/freebsd-11-stable/contrib/libarchive/tar
/freebsd-11-stable/contrib/libc++
/freebsd-11-stable/contrib/libc-vis
/freebsd-11-stable/contrib/libcxxrt
/freebsd-11-stable/contrib/libexecinfo
/freebsd-11-stable/contrib/libpcap
/freebsd-11-stable/contrib/libstdc++
/freebsd-11-stable/contrib/libucl
/freebsd-11-stable/contrib/libxo
/freebsd-11-stable/contrib/llvm
/freebsd-11-stable/contrib/llvm/projects/libunwind
/freebsd-11-stable/contrib/llvm/tools/clang
/freebsd-11-stable/contrib/llvm/tools/lldb
/freebsd-11-stable/contrib/llvm/tools/llvm-dwarfdump
/freebsd-11-stable/contrib/llvm/tools/llvm-lto
/freebsd-11-stable/contrib/mdocml
/freebsd-11-stable/contrib/mtree
/freebsd-11-stable/contrib/ncurses
/freebsd-11-stable/contrib/netcat
/freebsd-11-stable/contrib/ntp
/freebsd-11-stable/contrib/nvi
/freebsd-11-stable/contrib/one-true-awk
/freebsd-11-stable/contrib/openbsm
/freebsd-11-stable/contrib/openpam
/freebsd-11-stable/contrib/openresolv
/freebsd-11-stable/contrib/pf
/freebsd-11-stable/contrib/sendmail
/freebsd-11-stable/contrib/serf
/freebsd-11-stable/contrib/sqlite3
/freebsd-11-stable/contrib/subversion
/freebsd-11-stable/contrib/tcpdump
/freebsd-11-stable/contrib/tcsh
/freebsd-11-stable/contrib/tnftp
/freebsd-11-stable/contrib/top
/freebsd-11-stable/contrib/top/install-sh
/freebsd-11-stable/contrib/tzcode/stdtime
/freebsd-11-stable/contrib/tzcode/zic
/freebsd-11-stable/contrib/tzdata
/freebsd-11-stable/contrib/unbound
/freebsd-11-stable/contrib/vis
/freebsd-11-stable/contrib/wpa
/freebsd-11-stable/contrib/xz
/freebsd-11-stable/crypto/heimdal
/freebsd-11-stable/crypto/openssh
/freebsd-11-stable/crypto/openssl
/freebsd-11-stable/gnu/lib
/freebsd-11-stable/gnu/usr.bin/binutils
/freebsd-11-stable/gnu/usr.bin/cc/cc_tools
/freebsd-11-stable/gnu/usr.bin/gdb
/freebsd-11-stable/lib/libc/locale/ascii.c
/freebsd-11-stable/sys/cddl/contrib/opensolaris
/freebsd-11-stable/sys/contrib/dev/acpica
/freebsd-11-stable/sys/contrib/ipfilter
/freebsd-11-stable/sys/contrib/libfdt
/freebsd-11-stable/sys/contrib/octeon-sdk
/freebsd-11-stable/sys/contrib/x86emu
/freebsd-11-stable/sys/contrib/xz-embedded
/freebsd-11-stable/usr.sbin/bhyve/atkbdc.h
/freebsd-11-stable/usr.sbin/bhyve/bhyvegc.c
/freebsd-11-stable/usr.sbin/bhyve/bhyvegc.h
/freebsd-11-stable/usr.sbin/bhyve/console.c
/freebsd-11-stable/usr.sbin/bhyve/console.h
/freebsd-11-stable/usr.sbin/bhyve/pci_fbuf.c
/freebsd-11-stable/usr.sbin/bhyve/pci_xhci.c
/freebsd-11-stable/usr.sbin/bhyve/pci_xhci.h
/freebsd-11-stable/usr.sbin/bhyve/ps2kbd.c
/freebsd-11-stable/usr.sbin/bhyve/ps2kbd.h
/freebsd-11-stable/usr.sbin/bhyve/ps2mouse.c
/freebsd-11-stable/usr.sbin/bhyve/ps2mouse.h
/freebsd-11-stable/usr.sbin/bhyve/rfb.c
/freebsd-11-stable/usr.sbin/bhyve/rfb.h
/freebsd-11-stable/usr.sbin/bhyve/sockstream.c
/freebsd-11-stable/usr.sbin/bhyve/sockstream.h
/freebsd-11-stable/usr.sbin/bhyve/usb_emul.c
/freebsd-11-stable/usr.sbin/bhyve/usb_emul.h
/freebsd-11-stable/usr.sbin/bhyve/usb_mouse.c
/freebsd-11-stable/usr.sbin/bhyve/vga.c
/freebsd-11-stable/usr.sbin/bhyve/vga.h
302296 30-Jun-2016 cy

Remove dead code.

Approved by: re@ (hrs@)
MFC after: 1 week


288683 05-Oct-2015 ngie

Revert r288682

I meant to do this on ^/user/ngie/more-tests

Pointyhat to: ngie (use svn info next time...)


283295 22-May-2015 emaste

ipf(1): Use strchr(3) instead of deprecated index(3)

Reviewed by: cy
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D2607


281143 06-Apr-2015 glebius

Stop including if_var.h from userland.

Sponsored by: Nginx, Inc.


280971 01-Apr-2015 glebius

o Use new function ip_fillid() in all places throughout the kernel,
where we want to create a new IP datagram.
o Add support for RFC6864, which allows to set IP ID for atomic IP
datagrams to any value, to improve performance. The behaviour is
controlled by net.inet.ip.rfc6864 sysctl knob, which is enabled by
default.
o In case if we generate IP ID, use counter(9) to improve performance.
o Gather all code related to IP ID into ip_id.c.

Differential Revision: https://reviews.freebsd.org/D2177
Reviewed by: adrian, cy, rpaulo
Tested by: Emeric POUPON <emeric.poupon stormshield.eu>
Sponsored by: Netflix
Sponsored by: Nginx, Inc.
Relnotes: yes


271978 22-Sep-2014 cy

#552 destination port not zero after parsing nat rule

Approved by: glebius (mentor)
Obtained from: netbsd CVS repo (r1.4), ipfilter CVS repo (r1.38)


271977 22-Sep-2014 cy

3561691 gethost never returns an ipv6 address

Approved by: glebius (mentor)
Obtained from: ipfilter CVS repo (r1.34), netbsd CVS repo (r1.4)


271974 22-Sep-2014 cy

#551 ipf.conf address structure not properly zero filled

Approved by: glebius (mentor)
Obtained from: ipfilter CVS repo (r1.37), netbsd CVS repo (r1.3)


255332 06-Sep-2013 cy

Update ipfilter 4.1.28 --> 5.1.2.

Approved by: glebius (mentor)
BSD Licensed by: Darren Reed <darrenr@reed.wattle.id.au> (author)


214535 29-Oct-2010 rpaulo

Use pcap's bpf header, not our own copy of it.


194290 16-Jun-2009 rdivacky

Fix a typo that causes the for loop to exit immediately. There's
identical loop a few lines above.

Reviewed by: sam
Approved by: ed (mentor)
Silence from: darrenr (maintainer)


180778 24-Jul-2008 darrenr

2020447 IPFilter's NAT can undo name server random port selection

Approved by: darrenr
MFC after: 1 week
Security: CERT VU#521769


172776 18-Oct-2007 darrenr

Pullup IPFilter 4.1.28 from the vendor branch into HEAD.

MFC after: 7 days


171017 24-Jun-2007 darrenr

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


170268 04-Jun-2007 darrenr

Merge IPFilter 4.1.23 back to HEAD
See src/contrib/ipfilter/HISTORY for details of changes since 4.1.13


170264 04-Jun-2007 darrenr

This commit was generated by cvs2svn to compensate for changes in r170263,
which included commits to RCS files with non-trunk default branches.


161357 16-Aug-2006 guido

Resolve conflicts

MFC after: 1 weeks


157836 18-Apr-2006 darrenr

fix "ipf -Z" reporting rubbish and possibly panic'ing box

MFC after: 4 days


153881 30-Dec-2005 guido

Resolve conflicts (and believe me...you don't want to know).


146590 24-May-2005 cognet

arm defaults to unsigned char as well.


146277 16-May-2005 darrenr

Enable building /sbin/ipf (but not the rescue version) with the ability to
parse bpf strings for filter rules in ipf.conf


145989 08-May-2005 grehan

Fix tinderbox build on ppc.

Requested by: mlaier


145630 28-Apr-2005 darrenr

Patches from Ruslam Ermilov to remove NetBSD bits from Makefiles and cleanup
build problems with rescue.


145554 26-Apr-2005 darrenr

Fix include directives that were missing the netinet include directory, where
the ipl.h file is found. Also add back in ip_fil.c, which somehow went missing
in action.


145519 25-Apr-2005 darrenr

* Someone imported a lot of files with the wrong CVS tag, so lots of files need
that fixed in them....
* Keep unnecessary files out of the non-vendor part of this CVS repository.


145511 25-Apr-2005 darrenr

This commit was generated by cvs2svn to compensate for changes in r145510,
which included commits to RCS files with non-trunk default branches.