[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] udp agent bug ? and patch
Hi Alexander,
I was wondering why a so relevant bug has been never discovered (e.g. it
affects all statistics about bandwidth). Moreover my trace files about UDP
always were correct.
At a first look is obviuos bug, but looking more carefully I found as
follow:
1. in UdpAgent::sendmsg
p = allocpkt();
this instruction call allocpkt() defined in agent.h/cc,
2. in Agent::allocpkt
initpkt(p);
3. in Agent::initpkt
ch->size() = size_;
size_ is defined in agent.h and UdpAgent inherits it.
So it seems there is no bug.
Bye,
Sergio