[netsim] Calculate the delay for each packet.
authorHolger Hans Peter Freyther <zecke@selfish.org>
Fri, 1 Jan 2010 04:09:54 +0000 (05:09 +0100)
committerHolger Hans Peter Freyther <zecke@selfish.org>
Fri, 1 Jan 2010 04:11:45 +0000 (05:11 +0100)
commit374975f3dd22fd355f385a63ed2809ecab9569da
tree3388f8b25ddee6cd8764d37d82b7712882c9da2b
parent3d70e3388be9a174e9f5071d64a2817035d611f0
[netsim] Calculate the delay for each packet.

For the + 900ms delay packets got delayed further and further. This
is now fixed by comparing the current time to the packet time and then
deciding to let the packet through immediately (if it was delayed for
too long) or calculating how much more time it should stay in the
queue.
host-tools/netsim/netsim.cpp