svn commit: r302296 - head/contrib/ipfilter/tools

Cy Schubert cy at FreeBSD.org
Thu Jun 30 14:53:47 UTC 2016


Author: cy
Date: Thu Jun 30 14:53:46 2016
New Revision: 302296
URL: https://svnweb.freebsd.org/changeset/base/302296

Log:
  Remove dead code.
  
  Approved by:	re@ (hrs@)
  MFC after:	1 week

Modified:
  head/contrib/ipfilter/tools/ipf.c

Modified: head/contrib/ipfilter/tools/ipf.c
==============================================================================
--- head/contrib/ipfilter/tools/ipf.c	Thu Jun 30 12:44:15 2016	(r302295)
+++ head/contrib/ipfilter/tools/ipf.c	Thu Jun 30 14:53:46 2016	(r302296)
@@ -410,23 +410,6 @@ static void flushfilter(arg, filter)
 		return;
 	}
 
-#ifdef	SIOCIPFFA
-	if (!strcmp(arg, "u")) {
-		closedevice();
-		/*
-		 * Flush auth rules and packets
-		 */
-		if (opendevice(IPL_AUTH, 1) == -1)
-			perror("open(IPL_AUTH)");
-		else {
-			if (ioctl(fd, SIOCIPFFA, &fl) == -1)
-				ipferror(fd, "ioctl(SIOCIPFFA)");
-		}
-		closedevice();
-		return;
-	}
-#endif
-
 	if (strchr(arg, 'i') || strchr(arg, 'I'))
 		fl = FR_INQUE;
 	if (strchr(arg, 'o') || strchr(arg, 'O'))


More information about the svn-src-head mailing list