IPGlobalStatistics.OutputPacketRoutingDiscards Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the number of routes that have been discarded from the routing table.
public:
abstract property long OutputPacketRoutingDiscards { long get(); };
public abstract long OutputPacketRoutingDiscards { get; }
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
public abstract long OutputPacketRoutingDiscards { get; }
member this.OutputPacketRoutingDiscards : int64
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
member this.OutputPacketRoutingDiscards : int64
Public MustOverride ReadOnly Property OutputPacketRoutingDiscards As Long
Property Value
An Int64 value that specifies the total number of valid routes that have been discarded.
- Attributes
Examples
The following code example displays statistics for outbound IP packets.
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 );
}
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);
}
Public Shared Sub ShowOutboundIPStatistics()
Dim properties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
Dim ipstat As IPGlobalStatistics = 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)
End Sub
Remarks
One possible reason for discarding a valid routing table entry could be to free buffer space for other entries.
Applies to
Dolgozzon együtt velünk a GitHubon
A tartalom forrása a GitHubon található, ahol létrehozhat és áttekinthet problémákat és lekéréses kérelmeket is. További információért tekintse meg a közreműködői útmutatónkat.