Enum IcmpV4Code
- Namespace
- VpnHood.Net.Packets
- Assembly
- VpnHood.Net.Packets.dll
Specifies the code of an ICMPv4 message. A code means something only with its type, so values repeat: each value names the type it belongs to.
public enum IcmpV4Code : byte
Fields
EchoReply = 0The only code of EchoReply and EchoRequest.
NetUnreachable = 0DestinationUnreachable: the network is unreachable.
HostUnreachable = 1DestinationUnreachable: the host is unreachable.
ProtocolUnreachable = 2DestinationUnreachable: the protocol is unreachable.
PortUnreachable = 3DestinationUnreachable: the port is unreachable.
FragmentationNeeded = 4DestinationUnreachable: the datagram needs fragmenting but Don't Fragment is set; the next hop's MTU is in the low 16 bits of the message-specific field (RFC 1191).
SourceRouteFailed = 5DestinationUnreachable: the source route failed.
DestinationNetworkUnknown = 6DestinationUnreachable: the destination network is unknown.
DestinationHostUnknown = 7DestinationUnreachable: the destination host is unknown.
SourceHostIsolated = 8DestinationUnreachable: the source host is isolated.
NetworkAdminProhibited = 9DestinationUnreachable: the network is administratively prohibited.
HostAdminProhibited = 10DestinationUnreachable: the host is administratively prohibited.
NetworkUnreachableForTos = 11DestinationUnreachable: the network is unreachable for the type of service.
HostUnreachableForTos = 12DestinationUnreachable: the host is unreachable for the type of service.
CommunicationAdminProhibited = 13DestinationUnreachable: communication is administratively prohibited.
HostPrecedenceViolation = 14DestinationUnreachable: the host's precedence is violated.
PrecedenceCutoffInEffect = 15DestinationUnreachable: a precedence cutoff is in effect.
RedirectDatagramForNetwork = 0Redirect: redirect datagrams for the network.
RedirectDatagramForHost = 1Redirect: redirect datagrams for the host.
RedirectForTosAndNetwork = 2Redirect: redirect datagrams for the type of service and network.
RedirectForTosAndHost = 3Redirect: redirect datagrams for the type of service and host.
TimeToLiveExceededInTransit = 0TimeExceeded: the time to live ran out in transit.
FragmentReassemblyTimeExceeded = 1TimeExceeded: the fragment reassembly time ran out.
PointerIndicatesError = 0ParameterProblem: the pointer in the message points at the error.
MissingRequiredOption = 1ParameterProblem: a required option is missing.
BadLength = 2ParameterProblem: the length is bad.