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

[ns] Bug in packet.h




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]