svn commit: r342385 - head/sys/contrib/ipfilter/netinet

Cy Schubert cy at FreeBSD.org
Mon Dec 24 01:12:44 UTC 2018


Author: cy
Date: Mon Dec 24 01:12:43 2018
New Revision: 342385
URL: https://svnweb.freebsd.org/changeset/base/342385

Log:
  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.
  
  MFC after:	1 week

Modified:
  head/sys/contrib/ipfilter/netinet/ip_fil.h

Modified: head/sys/contrib/ipfilter/netinet/ip_fil.h
==============================================================================
--- head/sys/contrib/ipfilter/netinet/ip_fil.h	Mon Dec 24 01:12:22 2018	(r342384)
+++ head/sys/contrib/ipfilter/netinet/ip_fil.h	Mon Dec 24 01:12:43 2018	(r342385)
@@ -1813,9 +1813,6 @@ extern	int	ipf_resolvefunc __P((ipf_main_softc_t *, vo
 extern	void	*ipf_resolvenic __P((ipf_main_softc_t *, char *, int));
 extern	int	ipf_send_icmp_err __P((int, fr_info_t *, int));
 extern	int	ipf_send_reset __P((fr_info_t *));
-#if  (defined(__FreeBSD_version) && (__FreeBSD_version < 501000)) || \
-     !defined(_KERNEL) || defined(linux)
-#endif
 extern	void	ipf_apply_timeout __P((ipftq_t *, u_int));
 extern	ipftq_t	*ipf_addtimeoutqueue __P((ipf_main_softc_t *, ipftq_t **,
 					  u_int));


More information about the svn-src-all mailing list