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
This commit is contained in:
Marko Zec 2019-06-19 08:49:24 +00:00
parent 6aee0bfa85
commit 188adcb7e4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=349186

View File

@ -2688,10 +2688,10 @@ iflib_get_ip_forwarding(struct lro_ctrl *lc, bool *v4, bool *v6)
{
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();
}