You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ns-3-...@googlegroups.com
Hi,
I am a trying to add variable sized payload data and my own header to a packet. I have implemented the packet header class separately. Whenever I try to add header or payload data separately, it works fine. However, if I try to add the data first and then later the header it seems somehow the header overwrites(!) the data as well. The size of the packet shows it has all the bytes written to. However, I can't access the data. I can only read the header portion. Any Suggestion ? I am working on a deadline so an early response would be much appreciated.
thanks
kaisar
Tommaso Pecorella
unread,
Sep 10, 2014, 10:33:54 AM9/10/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ns-3-...@googlegroups.com
Hi,
without the code I can only guess, and my guess is: your header Deserialize method is bugged.
A more precise guess is: you are deserializing the header and you "know" the header's size from the packet's length (a design flaw).
Cheers,
T.
kaisar
unread,
Sep 10, 2014, 10:21:39 PM9/10/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message