]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r342385:
authorcy <cy@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 31 Dec 2018 03:53:33 +0000 (03:53 +0000)
committercy <cy@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 31 Dec 2018 03:53:33 +0000 (03:53 +0000)
commit8611fb0ce5991c2e7b8fd58bf3e6e78e019ca7a5
tree2cc025ae50a511be17d6610edb467f3f6f0b71df
parent46005be637109d1ca0b29235e5e4d133105e1998
MFC r342385:

Remove an empty #if block.

The interesting thing is that looking through Darren's commit logs,
the line containing an extern ppsratecheck() definition was removed
from the v5-1-RELEASE branch but not from HEAD (I have taken his
CVS tree and converted it to GIT). There is a commit adding an
additional #if defined to the empty block. I can only assume that
this was intentional for something later. Looking through HEAD the
extern ppsratecheck() is there. However if we put it back it would
conflict with a static ppsratecheck() definition in fil.c when
building ipftest.

Therefore we remove this empty block.

ppsratecheck() is a function in the FreeBSD kernel. However ipftest
cannot call the ppsratecheck() in the kernel. Therefore one exists in
fil.c for use when building the userland ipftest utility which
approximates the packet filter in userland for testing of ipfilter
rules against packets captured with tcpdump.

git-svn-id: svn://svn.freebsd.org/base/stable/10@342641 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/contrib/ipfilter/netinet/ip_fil.h