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:
zec 2019-06-19 08:49:24 +00:00
parent d1b8349a53
commit 4cc7ca905d

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