IPGlobalStatistics::ForwardingEnabled Property
.NET Framework (current version)
Gets a Boolean value that specifies whether Internet Protocol (IP) packet forwarding is enabled.
Assembly: System (in System.dll)
This value determines whether the computer forwards IP datagrams destined for another computer. Typically, routers forward packets and host computers do not.
The following code example displays the value of this property.
void ShowIPStatistics() { IPGlobalProperties ^ properties = IPGlobalProperties::GetIPGlobalProperties(); IPGlobalStatistics ^ ipstat = properties->GetIPv4GlobalStatistics(); Console::WriteLine( " Forwarding enabled ...................... : {0}", ipstat->ForwardingEnabled ); Console::WriteLine( " Interfaces .............................. : {0}", ipstat->NumberOfInterfaces ); Console::WriteLine( " IP addresses ............................ : {0}", ipstat->NumberOfIPAddresses ); Console::WriteLine( " Routes .................................. : {0}", ipstat->NumberOfRoutes ); Console::WriteLine( " Default TTL ............................. : {0}", ipstat->DefaultTtl ); }
.NET Framework
Available since 2.0
Available since 2.0
Show: