次の方法で共有


IPGlobalStatistics.OutputPacketRoutingDiscards プロパティ

定義

ルーティング テーブルから破棄された経路の数を取得します。

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

プロパティ値

破棄された有効な経路の数を示す Int64 値。

属性

次のコード例では、送信 IP パケットの統計情報を表示します。

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

注釈

有効なルーティング テーブル エントリを破棄する理由の 1 つは、他のエントリのバッファー領域を解放する可能性があります。

適用対象