MultihopD2DPacket

Namespace simu5g

MultihopD2DPacket

class

MultihopD2DPacket

Extend this packet for creating your own multihop message

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
FieldsChunk class (no description)

Fields

Name Type Description
srcId MacNodeId
msgid uint32_t

unique id of the message < sender id | local msg id >

srcCoord Coord
maxRadius double
ttl int

time-to-live (to avoid flooding)

hops unsigned int

number of hops

lastHopSenderId MacNodeId
payloadTimestamp simtime_t
payloadSize unsigned int
chunkLength

Source code

//
// MultihopD2DPacket
//
// Extend this packet for creating your own multihop message
//
class MultihopD2DPacket extends inet::FieldsChunk
{
    MacNodeId srcId;
    uint32_t msgid;          // unique id of the message  < sender id  | local msg id >

    inet::Coord srcCoord;
    double maxRadius;

    int ttl;                 // time-to-live (to avoid flooding)
    unsigned int hops;       // number of hops

    MacNodeId lastHopSenderId;

    simtime_t payloadTimestamp;
    unsigned int payloadSize;

    chunkLength = D2D_MULTIHOP_HEADER_LENGTH;
}
File: src/apps/d2dMultihop/MultihopD2DPacket.msg