// Ipv4Header
//-----------------------------------------------------------------------------
-const int Ipv4Header::HeaderSizeInBytes = 20;
+const int Ipv4HeaderSizeInBytes = 20;
Ipv4Header::Ipv4Header()
{
{
(void) is.read(
reinterpret_cast<char*> ( header.Payload ),
- Ipv4Header::HeaderSizeInBytes
+ Ipv4HeaderSizeInBytes
);
if ( header.get_version() != 4 )
is.setstate( ios::failbit );
streamsize options_length =
(streamsize) header.get_header_length() -
- Ipv4Header::HeaderSizeInBytes;
+ Ipv4HeaderSizeInBytes;
if ( options_length < 0 || 40 < options_length )
{
is.setstate( ios::failbit );
{
(void) is.read(
reinterpret_cast<char*> ( header.Payload ) +
- Ipv4Header::HeaderSizeInBytes,
+ Ipv4HeaderSizeInBytes,
options_length
);
}