Namespace inet
UDPDataIndication
classControl info that is attached to received data packets, sent up from the UDP module to the application with UDP_I_DATA as message kind.
See also: UDPCommandCode
Extends
Name | Type | Description |
---|---|---|
UDPControlInfo | (unknown -- not in documented files) |
Fields
Name | Type | Description |
---|---|---|
srcAddr | L3Address |
source IPv4 or IPv6 address of the received packet |
destAddr | L3Address |
destination IPv4 or IPv6 address of the received packet |
srcPort | int |
source port of the received packet |
destPort | int |
destination port of the received packet |
ttl | int |
TTL field of the received packet |
interfaceId | int |
interface on which the packet was received (see InterfaceTable) |
typeOfService | unsigned char |
IPv4 Type of Service / IPv6 Traffic Class field of received packet |
Source code
// // Control info that is attached to received data packets, sent up from the // ~UDP module to the application with UDP_I_DATA as message kind. // // @see ~UDPCommandCode // class UDPDataIndication extends UDPControlInfo { L3Address srcAddr; // source IPv4 or IPv6 address of the received packet L3Address destAddr; // destination IPv4 or IPv6 address of the received packet int srcPort; // source port of the received packet int destPort; // destination port of the received packet int ttl; // TTL field of the received packet int interfaceId; // interface on which the packet was received (see ~InterfaceTable) unsigned char typeOfService; // IPv4 Type of Service / IPv6 Traffic Class field of received packet }File: src/inet/transportlayer/contract/udp/UDPControlInfo.msg