/* For pcap_offline_read(): wait and yield between printing packets to simulate the pace packets where actually recorded.  */
void pcap_set_wait(pcap_t *p, void(*yield)(void), int wait)
/* For pcap_offline_read(): wait and yield between printing packets to simulate the pace packets where actually recorded.  */
void pcap_set_wait(pcap_t *p, void(*yield)(void), int wait)
{
  if (p)
  {
    struct pcap_dos *pd = p->priv;
    pd->wait_proc  = yield;
    p->opt.timeout = wait;
  }
}