Add packet header before sending