Packet ids are written as byte, not as int