backport initialisation of _seq member and some static checking for ICMP packet

This commit is contained in:
Marian Krivos
2012-07-31 05:46:08 +00:00
parent 672d4758c3
commit fe0ba56dc4
2 changed files with 11 additions and 3 deletions

View File

@@ -125,8 +125,9 @@ const std::string ICMPv4PacketImpl::PARAMETER_PROBLEM_CODE[] =
};
ICMPv4PacketImpl::ICMPv4PacketImpl(int dataSize):
ICMPPacketImpl(dataSize)
ICMPv4PacketImpl::ICMPv4PacketImpl(int dataSize)
: ICMPPacketImpl(dataSize),
_seq(0)
{
initPacket();
}