packet size use size_t type