PacketTooBigMessagesSent Property

IcmpV6Statistics.PacketTooBigMessagesSent Property

 

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

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

public abstract long PacketTooBigMessagesSent { get; }

Property Value

Type: System.Int64

An Int64 value that specifies the total number of ICMP Packet Too Big messages sent.

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

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft