This documentation is archived and is not being maintained.

IcmpV6Statistics.PacketTooBigMessagesReceived Property

Gets the number of Internet Control Message Protocol version 6 (ICMPv6) Packet Too Big messages received.

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

public abstract long PacketTooBigMessagesReceived { get; }

Property Value

Type: System.Int64
An Int64 value that specifies the total number of ICMP Packet Too Big messages received.

A router sends a Packet Too Big message when a packet cannot be forwarded because it is larger than the maximum transmission unit (MTU) of the outgoing link.

The following example displays the value of this property.

public static void ShowIcmpV6BigPacketData ()
{
    IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
    IcmpV6Statistics statistics = properties.GetIcmpV6Statistics();
    Console.WriteLine (" Too Big Packet ........................ Sent: {0,-10}   Received: {1,-10}", 
    statistics.PacketTooBigMessagesSent, statistics.PacketTooBigMessagesReceived);
}
void ShowIcmpV6BigPacketData ()
{
    IPGlobalProperties* properties = IPGlobalProperties::GetIPGlobalProperties();
    IcmpV6Statistics* statistics = properties->GetIcmpV6Statistics();
    Console::WriteLine (S" Too Big Packet ........................ Sent: {0,-10}   Received: {1,-10}",
        __box(statistics->PacketTooBigMessagesSent), __box(statistics->PacketTooBigMessagesReceived));
}

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

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

.NET Framework

Supported in: 3.5, 3.0, 2.0
Show: