generates arbitrary packet