broadcast packet function