This documentation is archived and is not being maintained.

IPGlobalStatistics.ReceivedPacketsWithAddressErrors Property

Note: This property is new in the .NET Framework version 2.0.

Gets the number of Internet Protocol (IP) packets with address errors that were received.

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

public abstract long ReceivedPacketsWithAddressErrors { get; }
/** @property */
public abstract long get_ReceivedPacketsWithAddressErrors ()

public abstract function get ReceivedPacketsWithAddressErrors () : long

Property Value

An Int64 value that specifies the total number of IP packets received with errors in the address portion of the header.

The value returned by this property includes packets discarded for address related issues in the header fields, such as invalid addresses. If packet forwarding is not enabled, the value returned by this property includes packets that were discarded because the destination address was not a local address.

The following code example displays statistics for received IP packets with errors.

       
public static void ShowInboundIPErrors()
{
    IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
    IPGlobalStatistics ipstat = properties.GetIPv4GlobalStatistics();
    Console.WriteLine("  Inbound Packet Errors:");
    Console.WriteLine("      Header Errors ....................... : {0}", 
        ipstat.ReceivedPacketsWithHeadersErrors);
    Console.WriteLine("      Address Errors ...................... : {0}", 
        ipstat.ReceivedPacketsWithAddressErrors);
    Console.WriteLine("      Unknown Protocol Errors ............. : {0}", 
        ipstat.ReceivedPacketsWithUnknownProtocol);
}

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0
Show: