Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Apr 2020 17:01:15 +0000 (UTC)
From:      Cy Schubert <cy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r360100 - head/sys/contrib/ipfilter/netinet
Message-ID:  <202004191701.03JH1F42002790@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cy
Date: Sun Apr 19 17:01:14 2020
New Revision: 360100
URL: https://svnweb.freebsd.org/changeset/base/360100

Log:
  fib4_free_nh_ext is an empty function. It does nothing. Don't call it.
  
  MFC after:	2 weeks

Modified:
  head/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c

Modified: head/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c
==============================================================================
--- head/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c	Sun Apr 19 16:30:49 2020	(r360099)
+++ head/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c	Sun Apr 19 17:01:14 2020	(r360100)
@@ -699,7 +699,6 @@ ipf_fastroute(m0, mpp, fin, fdp)
 	struct ifnet *ifp, *sifp;
 	struct sockaddr_in dst;
 	struct nhop4_extended nh4;
-	int has_nhop = 0;
 	u_long fibnum = 0;
 	u_short ip_off;
 	frdest_t node;
@@ -782,7 +781,6 @@ ipf_fastroute(m0, mpp, fin, fdp)
 		goto bad;
 	}
 
-	has_nhop = 1;
 	if (ifp == NULL)
 		ifp = nh4.nh_ifp;
 	if (nh4.nh_flags & NHF_GATEWAY)
@@ -925,9 +923,6 @@ done:
 		V_ipfmain.ipf_frouteok[0]++;
 	else
 		V_ipfmain.ipf_frouteok[1]++;
-
-	if (has_nhop)
-		fib4_free_nh_ext(fibnum, &nh4);
 
 	return 0;
 bad:



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