MCPcopy Create free account
hub / github.com/F-Stack/f-stack / iflib_get_ip_forwarding

Function iflib_get_ip_forwarding

freebsd/net/iflib.c:2815–2826  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2813
2814#if defined(INET6) || defined(INET)
2815static void
2816iflib_get_ip_forwarding(struct lro_ctrl *lc, bool *v4, bool *v6)
2817{
2818 CURVNET_SET(lc->ifp->if_vnet);
2819#if defined(INET6)
2820 *v6 = V_ip6_forwarding;
2821#endif
2822#if defined(INET)
2823 *v4 = V_ipforwarding;
2824#endif
2825 CURVNET_RESTORE();
2826}
2827
2828/*
2829 * Returns true if it's possible this packet could be LROed.

Callers 1

iflib_rxeofFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected