Use new send_packet in endpoint