Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Jun 2019 08:49:25 +0000 (UTC)
From:      Marko Zec <zec@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r349186 - head/sys/net
Message-ID:  <201906190849.x5J8nPWO073666@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: zec
Date: Wed Jun 19 08:49:24 2019
New Revision: 349186
URL: https://svnweb.freebsd.org/changeset/base/349186

Log:
  V_ip6_forwarding and V_ipforwarding have been defined in ip6_var.h /
  ip_var.h since at least 2008, so make use of those definitions here.
  
  MFC after:	3 days

Modified:
  head/sys/net/iflib.c

Modified: head/sys/net/iflib.c
==============================================================================
--- head/sys/net/iflib.c	Wed Jun 19 08:39:19 2019	(r349185)
+++ head/sys/net/iflib.c	Wed Jun 19 08:49:24 2019	(r349186)
@@ -2688,10 +2688,10 @@ iflib_get_ip_forwarding(struct lro_ctrl *lc, bool *v4,
 {
 	CURVNET_SET(lc->ifp->if_vnet);
 #if defined(INET6)
-	*v6 = VNET(ip6_forwarding);
+	*v6 = V_ip6_forwarding;
 #endif
 #if defined(INET)
-	*v4 = VNET(ipforwarding);
+	*v4 = V_ipforwarding;
 #endif
 	CURVNET_RESTORE();
 }



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