]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r349898, r349916:
authorCy Schubert <cy@FreeBSD.org>
Thu, 18 Jul 2019 11:43:09 +0000 (11:43 +0000)
committerCy Schubert <cy@FreeBSD.org>
Thu, 18 Jul 2019 11:43:09 +0000 (11:43 +0000)
commit14869b726ee888d50243cd9500a462e1309faabb
treec2f6922980f109db53a83c9a05a638e9b31302ca
parent1bc489aaa3d45332cab4ced94a39dcd6b8c0dc2c
MFC r349898, r349916:

ipfilter commands, in this case ipf(8), passes its operations and rules
via an ioctl interface. Rules can be added or removed and stats and
counters can be zeroed out. As the ipfilter interprets these
instructions or operations they are stored in an integer called
addrem (add/remove). 0 is add, 1 is remove, and 2 is clear stats and
counters. Much of this is not documented. This commit documents these
operations by replacing simple integers with a self documenting
enum along with a few basic comments.
sys/contrib/ipfilter/netinet/fil.c