Moved ICMP validation functions inside clas ICMPPacket as static functions