ICMPv6Message

Namespace inet

ICMPv6Message

packet

Represents an ICMPv6 packet.

Notes: 1. number of octets excluding the error datagram that is usually appended in optInfo, i.e. the Type|CODE|CHECKSUM|UNUSED/POINTER/MTU/OTHER as defined in RFC2463 2. Any ICMP type with MSB set, i.e. >=128 is an Informational ICMP message

Fields

Name Type Description
type int

int code; //TODO: this should be specific to different ICMP types.

Source code

//
// Represents an ICMPv6 packet.
//
// Notes:
//    1. number of octets excluding the error datagram that is usually appended
//       in optInfo, i.e. the Type|CODE|CHECKSUM|UNUSED/POINTER/MTU/OTHER
//       as defined in RFC2463
//    2. Any ICMP type with MSB set, i.e. >=128 is an Informational ICMP message
//
packet ICMPv6Message
{
    int type @enum(ICMPv6Type);
        //int code; //TODO: this should be specific to different ICMP types.
}

File: src/inet/networklayer/icmpv6/ICMPv6Message.msg