Write the `broadcast{,_packet}` functions