svn commit: r341456 - head/contrib/ipfilter

Cy Schubert cy at FreeBSD.org
Tue Dec 4 06:11:05 UTC 2018


Author: cy
Date: Tue Dec  4 06:11:04 2018
New Revision: 341456
URL: https://svnweb.freebsd.org/changeset/base/341456

Log:
  As part of the general cleanup of the ipfilter code, special cases
  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

Modified:
  head/contrib/ipfilter/ip_fil.c

Modified: head/contrib/ipfilter/ip_fil.c
==============================================================================
--- head/contrib/ipfilter/ip_fil.c	Tue Dec  4 04:55:49 2018	(r341455)
+++ head/contrib/ipfilter/ip_fil.c	Tue Dec  4 06:11:04 2018	(r341456)
@@ -482,14 +482,7 @@ ipf_fastroute(m, mpp, fin, fdp)
 	m->mb_ifp = ifp;
 	printpacket(fin->fin_out, m);
 
-#if defined(__sgi) && (IRIX < 60500)
-	(*ifp->if_output)(ifp, (void *)ip, NULL);
-# if TRU64 >= 1885
-	(*ifp->if_output)(ifp, (void *)m, NULL, 0, 0);
-# else
 	(*ifp->if_output)(ifp, (void *)m, NULL, 0);
-# endif
-#endif
 done:
 	fin->fin_ifp = sifp;
 	fin->fin_out = sout;


More information about the svn-src-all mailing list