svn commit: r302383 - stable/10/contrib/ipfilter/tools

Cy Schubert cy at FreeBSD.org
Thu Jul 7 02:23:53 UTC 2016


Author: cy
Date: Thu Jul  7 02:23:52 2016
New Revision: 302383
URL: https://svnweb.freebsd.org/changeset/base/302383

Log:
  MFC r302296:
  
  Remove dead code.

Modified:
  stable/10/contrib/ipfilter/tools/ipf.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/contrib/ipfilter/tools/ipf.c
==============================================================================
--- stable/10/contrib/ipfilter/tools/ipf.c	Wed Jul  6 23:49:19 2016	(r302382)
+++ stable/10/contrib/ipfilter/tools/ipf.c	Thu Jul  7 02:23:52 2016	(r302383)
@@ -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-stable mailing list