Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Nov 2020 22:35:31 +0000 (UTC)
From:      Cy Schubert <cy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r368201 - in stable: 11/contrib/ipfilter/lib 12/contrib/ipfilter/lib
Message-ID:  <202011302235.0AUMZVmM091971@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cy
Date: Mon Nov 30 22:35:30 2020
New Revision: 368201
URL: https://svnweb.freebsd.org/changeset/base/368201

Log:
  MFC r366285:
  
  Resurrect ipfilter's getifname, replacing the stub with the real
  function.

Modified:
  stable/12/contrib/ipfilter/lib/getifname.c
Directory Properties:
  stable/12/   (props changed)

Changes in other areas also in this revision:
Modified:
  stable/11/contrib/ipfilter/lib/getifname.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/12/contrib/ipfilter/lib/getifname.c
==============================================================================
--- stable/12/contrib/ipfilter/lib/getifname.c	Mon Nov 30 22:16:11 2020	(r368200)
+++ stable/12/contrib/ipfilter/lib/getifname.c	Mon Nov 30 22:35:30 2020	(r368201)
@@ -16,7 +16,6 @@
  * Given a pointer to an interface in the kernel, return a pointer to a
  * string which is the interface name.
  */
-#if 0
 char *getifname(ptr)
 	struct ifnet *ptr;
 {
@@ -80,13 +79,3 @@ char *getifname(ptr)
 # endif
 #endif
 }
-#else
-char *getifname(ptr)
-	struct ifnet *ptr;
-{
-#if 0
-	ptr = ptr;
-#endif
-	return "X";
-}
-#endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202011302235.0AUMZVmM091971>