Edit

Share via


IcmpV6Statistics.PacketTooBigMessagesSent Property

Definition

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

public:
 abstract property long PacketTooBigMessagesSent { long get(); };
public abstract long PacketTooBigMessagesSent { get; }
member this.PacketTooBigMessagesSent : int64
Public MustOverride ReadOnly Property PacketTooBigMessagesSent As Long

Property Value

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

Examples

The following example displays the value of this property.

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 );
}
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);
}
Public Shared Sub ShowIcmpV6BigPacketData() 
    Dim properties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
    Dim statistics As IcmpV6Statistics = properties.GetIcmpV6Statistics()
    Console.WriteLine(" Too Big Packet ........................ Sent: {0,-10}   Received: {1,-10}", statistics.PacketTooBigMessagesSent, statistics.PacketTooBigMessagesReceived)

End Sub

Remarks

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.

Applies to