Table of Contents

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 = 0

The only code of EchoReply and EchoRequest.

NetUnreachable = 0

DestinationUnreachable: the network is unreachable.

HostUnreachable = 1

DestinationUnreachable: the host is unreachable.

ProtocolUnreachable = 2

DestinationUnreachable: the protocol is unreachable.

PortUnreachable = 3

DestinationUnreachable: the port is unreachable.

FragmentationNeeded = 4

DestinationUnreachable: 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 = 5

DestinationUnreachable: the source route failed.

DestinationNetworkUnknown = 6

DestinationUnreachable: the destination network is unknown.

DestinationHostUnknown = 7

DestinationUnreachable: the destination host is unknown.

SourceHostIsolated = 8

DestinationUnreachable: the source host is isolated.

NetworkAdminProhibited = 9

DestinationUnreachable: the network is administratively prohibited.

HostAdminProhibited = 10

DestinationUnreachable: the host is administratively prohibited.

NetworkUnreachableForTos = 11

DestinationUnreachable: the network is unreachable for the type of service.

HostUnreachableForTos = 12

DestinationUnreachable: the host is unreachable for the type of service.

CommunicationAdminProhibited = 13

DestinationUnreachable: communication is administratively prohibited.

HostPrecedenceViolation = 14

DestinationUnreachable: the host's precedence is violated.

PrecedenceCutoffInEffect = 15

DestinationUnreachable: a precedence cutoff is in effect.

RedirectDatagramForNetwork = 0

Redirect: redirect datagrams for the network.

RedirectDatagramForHost = 1

Redirect: redirect datagrams for the host.

RedirectForTosAndNetwork = 2

Redirect: redirect datagrams for the type of service and network.

RedirectForTosAndHost = 3

Redirect: redirect datagrams for the type of service and host.

TimeToLiveExceededInTransit = 0

TimeExceeded: the time to live ran out in transit.

FragmentReassemblyTimeExceeded = 1

TimeExceeded: the fragment reassembly time ran out.

PointerIndicatesError = 0

ParameterProblem: the pointer in the message points at the error.

MissingRequiredOption = 1

ParameterProblem: a required option is missing.

BadLength = 2

ParameterProblem: the length is bad.