Packet length in "TrafficGen" application

6 views
Skip to first unread message

Sarra Sarah

unread,
Apr 9, 2016, 11:03:21 AM4/9/16
to OMNeT++ Users

Hi,
I want to set the packet size, is it true to put it in the "headerlength"parameter of "TrafficGen" application? if yes, why it is nommed "headerlength" instead of "packetLength"? 

In "TrafficGen.cc":

ApplPkt *pkt = new ApplPkt("BROADCAST_MESSAGE", TRAFFIC_GEN_PACKET);
pkt->setDestAddr(LAddress::L3BROADCAST);
// we use the host modules getIndex() as a appl address
pkt->setSrcAddr( myApplAddr() );
pkt->setBitLength(headerLength);


The packetLength is the size of only the data or data with header? 
What is the maximum packet size of ieee802.15.4? 

Any help please to set the packet size.
Reply all
Reply to author
Forward
0 new messages