Class UDPErrorIndication

File: src/inet/transportlayer/contract/udp/UDPControlInfo.msg

C++ definition

Control info that is sent up from the UDP module to the application with UDP_I_ERROR as message kind when UDP receives an ICMP error for a packet previously sent from the socket.

See also: UDPCommandCode

Usage diagram:

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.

Inheritance diagram:

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.

Extends:

Name Type Description
UDPControlInfo class

Base class for UDP control info classes. The most convenient way to handle UDP is the UDPSocket class, which hides control info from you.

Fields:

Name Type Description
srcAddr L3Address

source IPv4 or IPv6 address of the undeliverable packet

destAddr L3Address

destination IPv4 or IPv6 address of the undeliverable packet

srcPort int

source port of the undeliverable packet

destPort int

destination port of the undeliverable packet

sockId int

must uniquely identify the socket in the UDP module

Source code:

//
// Control info that is sent up from the ~UDP module to the application with
// UDP_I_ERROR as message kind when ~UDP receives an ICMP error for a packet
// previously sent from the socket.
//
// @see ~UDPCommandCode
//
class UDPErrorIndication extends UDPControlInfo
{
    L3Address srcAddr;   // source IPv4 or IPv6 address of the undeliverable packet
    L3Address destAddr;  // destination IPv4 or IPv6 address of the undeliverable packet
    int srcPort;           // source port of the undeliverable packet
    int destPort;          // destination port of the undeliverable packet
}