IPGlobalStatistics.ReceivedPacketsWithAddressErrors Property

Definition

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

C#
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
public abstract long ReceivedPacketsWithAddressErrors { get; }
C#
public abstract long ReceivedPacketsWithAddressErrors { get; }

Property Value

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

Attributes

Examples

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

C#

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);
}

Remarks

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.

Applies to

Proizvod Verzije
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1