Packet data: Add function to set data range.