Prepare buffer for usage as packet-buffer.