All these fixes were made months ago. I forgot to do a pull request before...
Please, check all them because I'm not sure if all these changes could lead to other problems in other AquaSim modules (there are fixes made to the phy module):
There is a call to RemoveHeader in the AquaSimRouting::Recv method and no header is attached to the the packet the first time it is sent to the routing layer. This is a problem when the size of the packet passed to AquaSimNetDevice::Send was less than the AquaSim header's size. In order to fix this, an AquaSimHeader has been attached to the packet in the AquaSimNetDevice::Send method before being sent to the lower layers. Here the AquaSimHeader::SetSize method is called passing the actual size of the packet.
All these fixes were made months ago. I forgot to do a pull request before... Please, check all them because I'm not sure if all these changes could lead to other problems in other AquaSim modules (there are fixes made to the phy module):