Match signatures of send_packet to use sock_t