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

[ns] udp agent bug ? and patch



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_;