IcmpV6Statistics Class
Provides Internet Control Message Protocol for Internet Protocol version 6 (ICMPv6) statistical data for the local computer.
Assembly: System (in System.dll)
ICMPV6 is a set of error and informational messages for use with Internet Protocol version 6 (IPv6). This class is used by the GetIcmpV6Statistics method to return ICMPV6 traffic information.
The properties in this class correlate to the Management Information Base objects for ICMPv6 defined in IETF RFC 2466. ICMPv6 is defined in RFC 2463.
The following example displays the current ICMPv6 statistics.
void ShowIcmpV6Statistics()
{
IPGlobalProperties* properties = IPGlobalProperties::GetIPGlobalProperties();
IcmpV6Statistics* stat = properties->GetIcmpV6Statistics();
Console::WriteLine(S"ICMP V6 Statistics:");
Console::WriteLine(S" Messages ............................ Sent: {0,-10} Received: {1,-10}",
__box(stat->MessagesSent), __box(stat->MessagesReceived));
Console::WriteLine(S" Errors .............................. Sent: {0,-10} Received: {1,-10}",
__box(stat->ErrorsSent), __box(stat->ErrorsReceived));
Console::WriteLine(S" Echo Requests ....................... Sent: {0,-10} Received: {1,-10}",
__box(stat->EchoRequestsSent), __box(stat->EchoRequestsReceived));
Console::WriteLine(S" Echo Replies ........................ Sent: {0,-10} Received: {1,-10}",
__box(stat->EchoRepliesSent), __box(stat->EchoRepliesReceived));
Console::WriteLine(S" Destination Unreachables ............ Sent: {0,-10} Received: {1,-10}",
__box(stat->DestinationUnreachableMessagesSent), __box(stat->DestinationUnreachableMessagesReceived));
Console::WriteLine(S" Parameter Problems .................. Sent: {0,-10} Received: {1,-10}",
__box(stat->ParameterProblemsSent), __box(stat->ParameterProblemsReceived));
Console::WriteLine(S" Packets Too Big ..................... Sent: {0,-10} Received: {1,-10}",
__box(stat->PacketTooBigMessagesSent), __box(stat->PacketTooBigMessagesReceived));
Console::WriteLine(S" Redirects ........................... Sent: {0,-10} Received: {1,-10}",
__box(stat->RedirectsSent), __box(stat->RedirectsReceived));
Console::WriteLine(S" Router Advertisements ............... Sent: {0,-10} Received: {1,-10}",
__box(stat->RouterAdvertisementsSent), __box(stat->RouterAdvertisementsReceived));
Console::WriteLine(S" Router Solicitations ................ Sent: {0,-10} Received: {1,-10}",
__box(stat->RouterSolicitsSent), __box(stat->RouterSolicitsReceived));
Console::WriteLine(S" Time Exceeded ....................... Sent: {0,-10} Received: {1,-10}",
__box(stat->TimeExceededMessagesSent), __box(stat->TimeExceededMessagesReceived));
Console::WriteLine(S" Neighbor Advertisements ............. Sent: {0,-10} Received: {1,-10}",
__box(stat->NeighborAdvertisementsSent), __box(stat->NeighborAdvertisementsReceived));
Console::WriteLine(S" Neighbor Solicitations .............. Sent: {0,-10} Received: {1,-10}",
__box(stat->NeighborSolicitsSent), __box(stat->NeighborSolicitsReceived));
Console::WriteLine(S" Membership Queries .................. Sent: {0,-10} Received: {1,-10}",
__box(stat->MembershipQueriesSent), __box(stat->MembershipQueriesReceived));
Console::WriteLine(S" Membership Reports .................. Sent: {0,-10} Received: {1,-10}",
__box(stat->MembershipReportsSent), __box(stat->MembershipReportsReceived));
Console::WriteLine(S" Membership Reductions ............... Sent: {0,-10} Received: {1,-10}",
__box(stat->MembershipReductionsSent), __box(stat->MembershipReductionsReceived));
Console::WriteLine(S"");
}
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.