SendPacket (void)
{
stringstream msg;
msg << "my payload";
Ptr packet = Create ((uint8_t*) msg.str().c_str(), msg.str().length());
m_socket->Send (packet);
if (++m_packetsSent < m_nPackets)
{
ScheduleTx ();
}
} .
So if I want to put some bits in the Data/payload field of an ethernet packet, for example only 000 in the firts 3 bits, the rest of the content I do not care, can someone tell me if this is possible to do in ns-3, and if possible give me some guide.
My doubt is How can I put 000 in the first bits of the data/payload field of the packet?
Can someone please advise me, all comment will be very appreciated
Best Regards,
Marco Cruz
On Wednesday, June 13, 2012 12:16:30 PM UTC+1, Marco Cruz wrote:
On Wednesday, June 13, 2012 12:16:30 PM UTC+1, Marco Cruz wrote:
On Wednesday, June 13, 2012 12:16:30 PM UTC+1, Marco Cruz wrote:
On Wednesday, June 13, 2012 12:16:30 PM UTC+1, Marco Cruz wrote: