This may be a repeat post but I want some help regarding GPSR repository. I want to know how we've to pass position of sender and receiver nodes if we're using ns2mobility helper class? In all the examples given, the position is passed.
But when I'm using a piece of code which runs perfectly for aodv in the same repository, it gives ns3 assert error that deserialze() method is trying to read beyond the buffer values. I also went through the gpsr-packet.cc and compared it with apdv-packet.cc. What I found is gpsr needs position of nodes and I believe that's the problem with my program. So any kind of help is appreciated. :)
First of all, if you read that post more carefully you would see that there was a discussion about FlowMonitor and that packets are not tracked.Probably, it was not fixed, hence you need to use other methods of calculating your statistics (look at the statistics module)
In addition, the broadcast flows (those with destination 10.1.1.255) are not to be monitored by flowmonitor. This has been 'fixed' (flows are not shown) in the svn tree.
Finally, I do not understand why you get so many flows with the same src/dst. It should not happen if the ports are the same.