Fixing a bug that got introduced in 1.19 as a feature ! Decapsulation
of a live packet into a simulator packet must be performed right at the time of capture before introducing the packet into the network. In 1.19, I had optimized so that it is decapsulated just before the delivery of the packet to the traffic agent which leads to simulation based on a wrong packet size (i.e. the size of the encapsulated packet rather than the simulated one).
Showing with 46 additions and 38 deletions