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

Re: [ns] Bug in packet.h



Lars, 

Thanks. This should go into tomorrow's snapshot.

- Haobo

On Wed, 8 Nov 2000, Lars Christensen wrote:

> 
> Hi,
> 
> There is small bug in packet.h that affects use of the "extra packet data"
> though Agent::allocpkt(size) and Packet::accessdata()/Packet::size(). 
> 
> AppData::size() is virtual and const, but the overriding method
> Packet::size() is not const, and AppData::size() is thus not overridden as
> intended.
> 
> This patch fixes the problem:
> 
> 
> 267c267
> <       virtual int size() { return datalen_; }
> ---
> >       virtual int size() const { return datalen_; }
> 
> 
> -- 
> Lars Christensen, [email protected]
> 
>