smacker: Avoid integer overflow when allocating packets