change hash type from int to std::size_t (unsigned int)
iterate packet members and combine their hashes into packet hash