[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] udp agent bug ? and patch



Thanks for the bug report. The change will be reflected
in tomorrow's snapshot.


Kun-chan Lan

On Tue, 7 Aug 2001, Neundorf Alexander wrote:

> Hi, 
> 
> there seems to be an obvious bug in the udp agent up to version 2.1b8. If the incoming packets are larger than the udp packet size, it creates enough packets to send them all, but enters the size only in the last packet.
> 
> Bye
> Alex
> 
> *** udp.mod.cc	Tue Aug  7 13:14:20 2001
> --- udp.cc	Tue Aug  7 13:14:45 2001
> ***************
> *** 62,67 ****
> --- 62,68 ----
>   	double local_time = Scheduler::instance().clock();
>   	while (n-- > 0) {
>   		p = allocpkt();
> + 		hdr_cmn::access(p)->size() = size_;
>   		hdr_rtp* rh = hdr_rtp::access(p);
>   		rh->flags() = 0;
>   		rh->seqno() = ++seqno_;
> 
>