bug 331: constify Packet::PeekHeader

This commit is contained in:
Mathieu Lacage
2008-10-10 11:20:53 +02:00
parent 32ce5ce0be
commit aea71064a4
2 changed files with 2 additions and 2 deletions

View File

@@ -200,7 +200,7 @@ Packet::RemoveHeader (Header &header)
return deserialized;
}
uint32_t
Packet::PeekHeader (Header &header)
Packet::PeekHeader (Header &header) const
{
NS_LOG_FUNCTION (this << &header);
uint32_t deserialized = header.Deserialize (m_buffer.Begin ());

View File

@@ -210,7 +210,7 @@ public:
* \param header a reference to the header to read from the internal buffer.
* \returns the number of bytes read from the packet.
*/
uint32_t PeekHeader (Header &header);
uint32_t PeekHeader (Header &header) const;
/**
* Add trailer to this packet. This method invokes the
* Trailer::GetSerializedSize and Trailer::Serialize