Redigera

Dela via


IcmpV6Statistics.PacketTooBigMessagesReceived Property

Definition

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

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

Property Value

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

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