Change packet_size from signed to unsigned, since it never has a negative