svn commit: r349186 - head/sys/net

Marko Zec zec at FreeBSD.org
Wed Jun 19 08:49:26 UTC 2019


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();
 }


More information about the svn-src-head mailing list