Rewrite the packet