IPGlobalStatistics.OutputPacketsWithNoRoute Property

 

Gets the number of Internet Protocol (IP) packets for which the local computer could not determine a route to the destination address.

Namespace:   System.Net.NetworkInformation
Assembly:  System (in System.dll)

public abstract long OutputPacketsWithNoRoute { get; }

Property Value

Type: System.Int64

An Int64 value that specifies the number of packets that could not be sent because a route could not be found.

IP packets that fall into this category are discarded.

The following code example displays statistics for outbound IP packets.


public static void ShowOutboundIPStatistics()
{
    IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
    IPGlobalStatistics ipstat = properties.GetIPv4GlobalStatistics();
    Console.WriteLine("  Outbound Packet Data:");
    Console.WriteLine("      Requested ........................... : {0}", 
        ipstat.OutputPacketRequests);
    Console.WriteLine("      Discarded ........................... : {0}", 
        ipstat.OutputPacketsDiscarded);
    Console.WriteLine("      No Routing Discards ................. : {0}", 
        ipstat.OutputPacketsWithNoRoute);
    Console.WriteLine("      Routing Entry Discards .............. : {0}", 
        ipstat.OutputPacketRoutingDiscards);   
}

.NET Framework
Available since 2.0
Return to top
Show: